Template:PlayerCard: Difference between revisions

From Crafters Wiki
Jump to navigation Jump to search
(Created page with "<!-- API CALLS FOR DATA--> <span style="display:none"> {{#get_web_data:url=https://crafters.one/api/v1/stats/players?player={{{uuid|1f61bbf9-a919-4b91-9f36-d082f7bfbf31}}}}}{{#get_web_data:url=https://crafters.one/api/v1/data/player_role?uuid={{{uuid|1f61bbf9-a919-4b91-9f36-d082f7bfbf31}}}}} </span> <!-- Main container for info box --> <div class="detail-box" style="float:right; border-style:solid; border-width:4px; border-color:{{{border-color|#647c8c}}}; text-align:ce...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- API CALLS FOR DATA-->
<!-- API CALLS FOR DATA-->
<span style="display:none">
<span style="display:none">
{{#get_web_data:url=https://crafters.one/api/v1/stats/players?player={{{uuid|1f61bbf9-a919-4b91-9f36-d082f7bfbf31}}}}}{{#get_web_data:url=https://crafters.one/api/v1/data/player_role?uuid={{{uuid|1f61bbf9-a919-4b91-9f36-d082f7bfbf31}}}}}
{{#get_web_data:url=https://crafters.one/api/v1/data/player_role?uuid={{{uuid|1f61bbf9-a919-4b91-9f36-d082f7bfbf31}}}}}
</span>
</span>


<!-- Main container for info box -->
<!-- Main container for info box -->
<div class="detail-box" style="float:right; border-style:solid; border-width:4px; border-color:{{{border-color|#647c8c}}}; text-align:center; width:25%; max-width:200px; min-width:200px">
<div style="float:right; border-style:solid; border-width:3px; border-color: {{{border-color|black}}}; max-width:200px; min-width:200px; display: flex; flex-direction: column; gap:0px">
 
<!-- Username -->
<!-- Username -->
<div style="text-align:center; font-size:20px; font-weight:bold; vertical-align:center">
<div style="display: flex; align-items: center; justify-content: center; text-align: center; font-size:20px; font-weight:bold">
{{#external_value:username|?}}
{{#external_value:username|?}}
</div>
<!-- Role -->
<div style="text-align:center; background-color:{{RoleColor|role={{#external_value:role}}|uuid={{#external_value:uuid}}}}; color:black; margin:0px 0.5em">
<span style="font-weight:bold">{{ucfirst:{{#external_value:role}}}}</span>
</div>
</div>


Line 22: Line 16:
</div>
</div>


<!-- Role -->
<div style="display: flex; align-items: center; justify-content: center; text-align: center; background-color:{{RoleColor|role={{#external_value:role}}|uuid={{#external_value:uuid}}}}; color:black; margin:4px 4px; height: 26px; font-weight:bold">
{{ucfirst:{{#external_value:role}}}}
</div>
</div>


<!-- Categories -->
</div>
[[Category:Players]]
[[Category:{{#time:F | @{{#expr:{{#external_value:join_date}}/1000}} }}]]
[[Category:{{#time:Y | @{{#expr:{{#external_value:join_date}}/1000}} }}]]
{{#ifeq:{{#external_value:role}}|volunteer|[[Category:Volunteers]]|}}
{{#ifeq:{{#external_value:role}}|glow-person|[[Category:Glow Person]]|}}

Latest revision as of 18:22, 29 July 2025

Sek

1f61bbf9-a919-4b91-9f36-d082f7bfbf31.png

Volunteer