Template:Infobox Player: Difference between revisions
updated field names to remove dashes |
Add season 6 |
||
| (10 intermediate revisions by 2 users not shown) | |||
| Line 16: | Line 16: | ||
| ministerrole = Infrastructure & Gravel | | ministerrole = Infrastructure & Gravel | ||
| assumedoffice = 12th March 2024 | | assumedoffice = 12th March 2024 | ||
| | | precededby = CreeperCarl | ||
}}{{#cargo_declare: | |||
_table=player_data | |||
| username=Page | |||
| seasonjoined=String | |||
| nationality=String | |||
| discord=String | |||
| alias=String | |||
| quote=Text | |||
| favouriteitem=String | |||
| favouriteblock=String | |||
| ministerrole=String | |||
| assumedoffice=Date | |||
| precededby=String | |||
}}</noinclude> | |||
<includeonly> | |||
{{#cargo_store: | |||
_table=player_data | |||
| username={{{username|}}} | |||
| seasonjoined={{{seasonjoined|}}} | |||
| nationality={{{nationality|}}} | |||
| discord={{{discord|}}} | |||
| alias={{{alias|}}} | |||
| quote={{{quote|}}} | |||
| favouriteitem={{{favouriteitem|}}} | |||
| favouriteblock={{{favouriteblock|}}} | |||
| ministerrole={{{ministerrole|}}} | |||
| assumedoffice={{{assumedoffice|}}} | |||
| precededby={{{precededby|}}} | |||
}} | }} | ||
</ | <templatestyles src="Template:Infobox Player/styles.css" /> | ||
{{#invoke:Infobox Player|infobox}} | {{#invoke:Infobox Player|infobox}} | ||
</includeonly> | </includeonly> | ||
| Line 50: | Line 77: | ||
"label": "Season Joined", | "label": "Season Joined", | ||
"description": "The player's first season", | "description": "The player's first season", | ||
"example": " | "example": "Season 4", | ||
"type": "string", | "type": "string", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"Season 1", | "[[Season 1]]", | ||
"Season 2", | "[[Season 2]]", | ||
"Season 3", | "[[Season 3]]", | ||
"Season 4", | "[[Season 4]]", | ||
"Season V" | "[[Season V]]", | ||
"[[Season 6]]" | |||
], | ], | ||
"suggested": true | "suggested": true | ||
| Line 99: | Line 127: | ||
"label": "Assumed Office", | "label": "Assumed Office", | ||
"description": "The date the player assumed office", | "description": "The date the player assumed office", | ||
"example": " | "example": "June 20, 2025", | ||
"type": "date", | "type": "date", | ||
"suggested": true | "suggested": true | ||
| Line 109: | Line 137: | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | |||
"uuid": { | |||
"label": "UUID", | |||
"description": "The player's UUID", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"629018ce3d944233861f0446f5f2e67c" | |||
] | |||
} | } | ||
}, | }, | ||
| Line 114: | Line 150: | ||
"paramOrder": [ | "paramOrder": [ | ||
"username", | "username", | ||
"uuid", | |||
"seasonjoined", | "seasonjoined", | ||
"nationality", | "nationality", | ||
Latest revision as of 18:38, 29 December 2025
Usage
Place this on any player’s page to display the infobox. Just replace the example values in the code block below with your own.
Example
| BlockKnight32 | |
|---|---|
| |
| Biography | |
| Username | BlockKnight32 |
| Alias | The Brickster |
| Season Joined | Season 3 |
| Nationality | Canadian |
| Discord | blocky#4096 |
| Personality | |
| Quote | "If in doubt, dig straight down." |
| Favourite Item | Diamond Shovel |
| Favourite Block | Mossy Cobblestone |
| Government | |
| Minister Role | Infrastructure & Gravel |
| Assumed Office | 12th March 2024 |
| Preceded By | CreeperCarl |
This template defines the table "player_data". View table.
An infobox displaying key attributes related to an individual player's profile.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Username | username | The player's Minecraft username
| String | required |
| UUID | uuid | The player's UUID
| String | optional |
| Season Joined | seasonjoined | The player's first season
| String | suggested |
| Nationality | nationality | The player's nationality or nationalities
| String | suggested |
| Discord | discord | The player's discord username
| String | suggested |
| Aliases | alias | The player's aliases
| String | suggested |
| Quote | quote | The player's known quote
| String | suggested |
| Favourite Item | favouriteitem | The player's favourite item
| String | suggested |
| Favourite Block | favouriteblock | The player's favourite block
| String | suggested |
| Minister Role | ministerrole | The player's active minister role
| String | suggested |
| Assumed Office | assumedoffice | The date the player assumed office
| Date | suggested |
| Preceded By | precededby | The previous minister before the player
| String | suggested |