Template:PlayerInfoBox: Difference between revisions
From Crafters
imported>Sek No edit summary |
imported>Sek No edit summary |
||
| Line 1: | Line 1: | ||
<!-- API CALLS FOR DATA --> | <!-- API CALLS FOR DATA --> | ||
{{#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}}}}} | ||
| Line 33: | Line 32: | ||
{{#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 0px 0.5em">Statistics</div> | ||
<!-- Time Played --> | <!-- Time Played --> | ||
<div> | <div> | ||
| Line 42: | Line 39: | ||
{{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> | ||
| Line 48: | Line 44: | ||
{{formatnum:{{#external_value:deaths}}}} | {{formatnum:{{#external_value:deaths}}}} | ||
</div> | </div> | ||
<!-- Mob Kills --> | <!-- Mob Kills --> | ||
<div> | <div> | ||
| Line 54: | Line 49: | ||
{{formatnum:{{#external_value:mob_kills}}}} | {{formatnum:{{#external_value:mob_kills}}}} | ||
</div> | </div> | ||
<!-- Lifetime Score --> | <!-- Lifetime Score --> | ||
<div> | <div> | ||
| Line 60: | Line 54: | ||
{{formatnum:{{#external_value:lifetime_xp}}}} | {{formatnum:{{#external_value:lifetime_xp}}}} | ||
</div> | </div> | ||
</div> | </div> | ||
<!-- Categories --> | <!-- Categories --> | ||
[[Category:Players]] | [[Category:Players]] | ||
| Line 69: | Line 61: | ||
{{#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]] |}} | ||
Revision as of 21:03, 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=1791918019">
<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.]]