Template:PlayerInfoBox: Difference between revisions

From Crafters Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- API CALLS FOR DATA -->
<!-- API CALLS FOR DATA + SET DISPLAY TITLE -->
{{#get_web_data:url=https://crafters.one/api/v1/stats/players?player={{{uuid|30deaf56-ae70-4e41-907c-dcc95b8b5ba8}}}}}
<span style="display:none">
{{#get_web_data:url=https://crafters.one/api/v1/data/player_role?uuid={{{uuid|30deaf56-ae70-4e41-907c-dcc95b8b5ba8}}}}}
{{#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}}}}}{{DISPLAYTITLE:{{#external_value:username}}}}
= {{#external_value:username|Unknown Player}} =
</span>
__FORCETOC__
<!-- 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:400px; min-width: 308px">
<div style="float:right; border-style:solid; border-width:4px; border-color:{{{border-color|#647c8c}}}; text-align:center; width:25%; max-width:400px; min-width:308px; display: flex; flex-direction: column; gap:0px">
 
<!-- Username -->
<!-- Username -->
<div style="text-align: center; font-size: 20px; font-weight: bold">
<div style="text-align:center; font-size:20px; font-weight:bold; vertical-align:center">
{{#external_value:username|?}}
{{#external_value:username|?}}
</div>
</div>
<!-- Role -->
<!-- Role -->
<div style="text-align: center; background-color: {{RoleColor|role={{#external_value:role}}|uuid={{#external_value:uuid}}}}; color: black; margin: 0px 0.5em 0px 0.5em>
<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">
<span style="font-weight: bold">{{ucfirst: {{#external_value:role}}}}</span>
{{ucfirst:{{#external_value:role}}}}
</div>
</div>
<!-- Player Image -->
<!-- Player Image -->
<div style="text-align:center; object-fit:contain">
<div style="object-fit:contain">
https://visage.surgeplay.com/full/500/{{#external_value:uuid}}.png
https://visage.surgeplay.com/full/500/{{#external_value:uuid}}.png
</div>
</div>
<!-- Player Details Header -->
<!-- Player Details Header -->
<div style="text-align: center; background-color:#9abed6;color: black; margin: 0px 0.5em 0px 0.5em">Player Details</div>
<div style="text-align:center; background-color:#9abed6; color:black; margin:0px 0.5em">Player Details</div>
<!-- Player Numbers and Wheel-->
 
<!-- Player Numbers and Wheel -->
<div style="padding:0px">
<div style="padding:0px">
[[PlayerNumber:{{formatnum:{{#expr:{{formatnum:{{#external_value:number|1}}|R}}-1 }}}}|<span style="font-size:24px; vertical-align: center">←</span>]] [[PlayerNumber:{{#external_value:number|0}}|'''Player:''' # {{#external_value:number|?}}]] [[PlayerNumber:{{formatnum:{{#expr:{{formatnum:{{#external_value:number|1}}|R}}+1 }}}}|<span style="font-size:24px; vertical-align: center">→</span>]]
[[PlayerNumber:{{formatnum:{{#expr:{{formatnum:{{#external_value:number|1}}|R}}-1}}}}|<span style="font-size:24px; vertical-align:center">←</span>]]
[[PlayerNumber:{{formatnum:{{#external_value:number|0}}}}|'''Player:''' # {{formatnum:{{#external_value:number|?}}}}]]
[[PlayerNumber:{{formatnum:{{#expr:{{formatnum:{{#external_value:number|1}}|R}}+1}}}}|<span style="font-size:24px; vertical-align:center">→</span>]]
</div>
</div>
<!-- Join Date -->
<!-- Join Date -->
<div>  
<div>
<span style="font-weight: bold">Join Date:</span>  
<span style="font-weight:bold">Join Date:</span>
{{#time:F j, Y | @{{#expr:{{#external_value:join_date}} / 1000}} }}  
{{#time:F j, Y | @{{#expr:{{#external_value:join_date}}/1000}} }}
</div>
</div>
<!-- Last Seen -->
<!-- Last Seen -->
<div>  
<div>
<span style="font-weight: bold">Last Seen:</span>  
<span style="font-weight:bold">Last Seen:</span>
{{#time:F j, Y | @{{#expr:{{#external_value:last_seen}} / 1000}} }}  
{{#time:F j, Y | @{{#expr:{{#external_value:last_seen}}/1000}} }}
</div>
</div>


<!-- Statistics Header -->
<!-- Statistics Header -->
<div style="text-align: center; background-color:#9c887b;color: black; margin: 0px 0.5em 0px 0.5em">Statistics</div>
<div style="text-align:center; background-color:#9c887b; color:black; margin:0px 0.5em">Statistics</div>


<!-- Time Played -->
<!-- Time Played -->
<div>  
<div>
<span style="font-weight: bold">Time Played:</span>  
<span style="font-weight:bold">Time Played:</span>
{{formatnum:{{#expr:ceil({{#external_value:play_time}} / 60 / 60 )}}}} Hours
{{formatnum:{{#expr:ceil({{#external_value:play_time}}/60/60)}}}} Hours
</div>
</div>


<!-- Deaths -->
<!-- Deaths -->
<div>  
<div>
<span style="font-weight: bold">Deaths:</span>  
<span style="font-weight:bold">Deaths:</span>
{{formatnum:{{#external_value:deaths}}}}
{{formatnum:{{#external_value:deaths}}}}
</div>
</div>


<!-- Mob Kills -->
<!-- Mob Kills -->
<div>  
<div>
<span style="font-weight: bold">Mob Kills:</span>  
<span style="font-weight:bold">Mob Kills:</span>
{{formatnum:{{#external_value:mob_kills}}}}
{{formatnum:{{#external_value:mob_kills}}}}
</div>
</div>


<!-- Lifetime Score -->
<!-- Lifetime Score -->
<div>  
<div>
<span style="font-weight: bold">Lifetime Score:</span>  
<span style="font-weight:bold">Lifetime Score:</span>
{{formatnum:{{#external_value:lifetime_xp}}}}
{{formatnum:{{#external_value:lifetime_xp}}}}
</div>
</div>
Line 65: Line 75:
<!-- Categories -->
<!-- Categories -->
[[Category:Players]]
[[Category:Players]]
[[Category:{{#time:F | @{{#expr:{{#external_value:join_date}} / 1000}} }}]]
[[Category:{{#time:F | @{{#expr:{{#external_value:join_date}}/1000}} }}]]
[[Category:{{#time:Y | @{{#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}}|volunteer|[[Category:Volunteers]]|}}
{{#ifeq: {{#external_value:role}} | glow-person | [[Category:Glow Person]] |}}
{{#ifeq:{{#external_value:role}}|glow-person|[[Category:Glow Person]]|}}
 
{{DISPLAYTITLE:<span style="position: absolute; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px);">{{FULLPAGENAME}}</span>}}

Latest revision as of 05:42, 7 August 2025

Sek

Volunteer

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

Player Details

Join Date: January 28, 2021

Last Seen: April 1, 2026

Statistics

Time Played: 299 Hours

Deaths: 13

Mob Kills: 7,005

Lifetime Score: 30,140