Template:PlayerInfoBox: Difference between revisions
From Crafters
imported>Sek No edit summary |
imported>Sek No edit summary |
||
| Line 2: | Line 2: | ||
{{#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/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}}}}} | ||
<!-- 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 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"> | ||
<!-- Username --> | <!-- Username --> | ||
<div style="text-align: center; font-size: 20px; font-weight: bold"> | <div style="text-align:center; font-size:20px; font-weight:bold"> | ||
{{#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 | <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> | <span style="font-weight:bold">{{ucfirst:{{#external_value:role}}}}</span> | ||
</div> | </div> | ||
<!-- Player Image --> | <!-- Player Image --> | ||
<div style="text-align:center; object-fit:contain"> | <div style="text-align:center; 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: | <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:{{#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>]] | |||
</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: | <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> | ||
</div> | </div> | ||
<!-- 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:{{#external_value:username}}}} | {{DISPLAYTITLE:{{#external_value:username}}}} | ||
aaaaa | |||
Revision as of 21:10, 27 July 2025
Error while fetching data from URL https://crafters.one/api/v1/stats/players?player=1f61bbf9-a919-4b91-9f36-d082f7bfbf31: $2.
There was a problem during the HTTP request: 404 Not Found
Error while fetching data from URL https://crafters.one/api/v1/stats/players?player=1f61bbf9-a919-4b91-9f36-d082f7bfbf31:
<footer>
</footer>
</body>
</html>
.
Could not get URL https://crafters.one/api/v1/stats/players?player=1f61bbf9-a919-4b91-9f36-d082f7bfbf31 after 3 tries.
There was a problem during the HTTP request: 404 Not Found
Error while fetching data from URL https://crafters.one/api/v1/stats/players?player=1f61bbf9-a919-4b91-9f36-d082f7bfbf31:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Crafters.one | 404 Not Found</title>
<link rel="stylesheet" href="/inc/css/styles.css" />
<script src="https://kit.fontawesome.com/7b6780ea16.js" crossorigin="anonymous"></script>
<link rel="icon" type="image/x-icon" href="/inc/img/favicon.ico" />
</head>
<body>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Crafters.one</title>
<script src="https://kit.fontawesome.com/7b6780ea16.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="/inc/css/styles.css?v=1791897681">
<style>
/* === Header Layout === */
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 14px 6%;
background: rgba(24, 24, 24, 0.92);
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
position: sticky;
top: 0;
z-index: 100;
height: 72px;
}
.logo img {
height: 50px;
transition: transform 0.2s ease;
}
.logo img:hover {
transform: scale(1.05);
}
/* === Navigation === */
.nav-container {
display: flex;
align-items: center;
gap: 26px;
}
.nav__links {
list-style: none;
display: flex;
align-items: center;
gap: 24px;
margin: 0;
padding: 0;
}
.nav__links li a {
font-family: gpipesans, sans-serif !important;
color: #fff;
font-size: 17px;
font-weight: 500;
text-decoration: none;
display: flex;
align-items: center;
gap: 6px;
transition: color 0.25s ease, transform 0.25s ease;
}
.nav__links li a:hover {
color: #e74c3c;
}
/* === Dropdown === */
.dropdown {
position: relative;
}
.dropdown-content {
position: absolute;
top: calc(100% + 6px);
right: 0;
background: #1e1e1e;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
min-width: 210px;
opacity: 0;
visibility: hidden;
transform: translateY(-5px);
transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
z-index: 10;
}
.dropdown:hover .dropdown-content,
.dropdown-content:hover {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.dropdown::after {
content: "";
position: absolute;
bottom: -8px;
left: 0;
width: 100%;
height: 10px;
background: transparent;
}
.dropdown-content a {
color: #ddd;
font-family: gpipesans, sans-serif !important;
font-size: 15px;
text-decoration: none;
display: block;
padding: 12px 16px;
border-bottom: 1px solid #2a2a2a;
background-color: transparent;
transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
will-change: background-color, color;
}
.dropdown-content a:hover,
.dropdown-content a:hover i {
background-color: #e74c3c !important;
color: #fff !important;
opacity: 1 !important;
filter: none !important;
text-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
}
.dropdown-content a:last-child {
border-bottom: none;
}
/* === Profile Dropdown === */
.dropdown-user {
position: relative;
display: inline-block;
}
.user-info {
display: flex;
align-items: center;
gap: 10px;
background: rgba(255, 255, 255, 0.05);
border-radius: 40px;
padding: 6px 14px 6px 6px;
cursor: pointer;
transition: background 0.25s ease;
height: 46px;
}
.user-info:hover {
background: rgba(255, 255, 255, 0.12);
}
.user-info img {
width: 40px;
height: 40px;
border-radius: 50%;
}
.username {
font-family: gpipesans, sans-serif !important;
font-size: 16px !important;
color: #fff !important;
font-weight: 600 !important;
letter-spacing: 0.3px;
line-height: 1;
white-space: nowrap;
}
.dropdown-user-menu {
position: absolute;
top: calc(100% + 10px);
right: 0;
background-color: #1f1f1f;
border-radius: 10px;
box-shadow: 0 8px 20px rgba(0,0,0,0.5);
overflow: hidden;
min-width: 180px;
padding: 6px 0;
opacity: 0;
visibility: hidden;
transform: translateY(-5px);
transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
z-index: 10;
}
.dropdown-user:hover .dropdown-user-menu,
.dropdown-user-menu:hover {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.dropdown-user::after {
content: "";
position: absolute;
bottom: -8px;
left: 0
width: 100%;
height: 10px;
background: transparent;
}
.dropdown-user-menu a {
display: block;
padding: 12px 18px;
color: #eee;
font-size: 15px;
text-decoration: none;
font-family: gpipesans, sans-serif !important;
transition: background 0.2s ease;
}
.dropdown-user-menu a i {
width: 20px;
}
.dropdown-user-menu a:hover {
background-color: #e74c3c;
color: #fff;
}
/* === Login Button === */
.login-btn {
background: linear-gradient(90deg, #e74c3c, #c0392b);
color: #fff;
padding: 11px 22px;
border-radius: 40px;
border: none;
font-family: gpipesans, sans-serif !important;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
}
.login-btn:hover {
background: linear-gradient(90deg, #ff5a4a, #e74c3c);
transform: translateY(-1px);
}
/* === Announcement Bar === */
.announcement {
background: linear-gradient(90deg, #e74c3c, #c0392b);
text-align: center;
color: #fff;
padding: 8px 0;
font-family: gpipesans, sans-serif !important;
font-size: 15px;
}
@keyframes fadeIn {
from {opacity: 0; transform: translateY(-4px);}
to {opacity: 1; transform: translateY(0);}
}
</style>
</head>
<body>
<a href="#">This website is currently in BETA. Please report bugs to the Glow People.</a>
<header>
<a class="logo" href="https://crafters.one"><img src="/inc/img/logo.png" alt="Crafters.one Logo"></a>
<nav class="nav-container">
</nav>
</header>
404 Not Found
<img class="error-image" src="/inc/img/glowbob.png" alt="Steve">Could not get URL https://crafters.one/api/v1/stats/players?player=1f61bbf9-a919-4b91-9f36-d082f7bfbf31 after 3 tries.
Could not get URL https://crafters.one/api/v1/data/player_role?uuid=1f61bbf9-a919-4b91-9f36-d082f7bfbf31 after 3 tries.
?
Error: no local variable "role" has been set.
https://visage.surgeplay.com/full/500/Error: no local variable "uuid" has been set..png
Player Details
Join Date: Error: Invalid time.
Last Seen: Error: Invalid time.
Statistics
Time Played: Expression error: Unexpected < operator. Hours
Deaths: Error: no local variable "deaths" has been set.
Mob Kills: Error: no local variable "mob_kills" has been set.
Lifetime Score: Error: no local variable "lifetime_xp" has been set.
[[Category:Error: Invalid time.]] [[Category:Error: Invalid time.]]
aaaaa