Template:Infobox Player: Difference between revisions
m testing category |
Add season 6 |
||
| (14 intermediate revisions by 2 users not shown) | |||
| Line 6: | Line 6: | ||
{{Infobox Player | {{Infobox Player | ||
| username | | username = BlockKnight32 | ||
| | | seasonjoined = Season 3 | ||
| nationality = | | nationality = Canadian | ||
| discord = | | discord = blocky#4096 | ||
| | | alias = The Brickster | ||
| quote = "If in doubt, dig straight down." | |||
| favouriteitem = Diamond Shovel | |||
| favouriteblock = Mossy Cobblestone | |||
| ministerrole = Infrastructure & Gravel | |||
| 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 22: | Line 55: | ||
"username": { | "username": { | ||
"label": "Username", | "label": "Username", | ||
"description": " | "description": "The player's Minecraft username", | ||
"example": "AuroraFlight", | "example": "AuroraFlight", | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true | ||
}, | }, | ||
"nationality": { | "nationality": { | ||
| Line 45: | Line 64: | ||
"description": "The player's nationality or nationalities", | "description": "The player's nationality or nationalities", | ||
"example": "British", | "example": "British", | ||
"type": "string" | "type": "string", | ||
"suggested": true | |||
}, | }, | ||
"discord": { | "discord": { | ||
| Line 53: | Line 73: | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | |||
"seasonjoined": { | |||
"label": "Season Joined", | |||
"description": "The player's first season", | |||
"example": "Season 4", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"[[Season 1]]", | |||
"[[Season 2]]", | |||
"[[Season 3]]", | |||
"[[Season 4]]", | |||
"[[Season V]]", | |||
"[[Season 6]]" | |||
], | |||
"suggested": true | |||
}, | |||
"alias": { | |||
"label": "Aliases", | |||
"description": "The player's aliases", | |||
"example": "Noah", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"quote": { | |||
"label": "Quote", | |||
"description": "The player's known quote", | |||
"example": "\"To be, or not to be, that is the question.\"", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"favouriteitem": { | |||
"label": "Favourite Item", | |||
"description": "The player's favourite item", | |||
"example": "Iron Pickaxe", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"favouriteblock": { | |||
"label": "Favourite Block", | |||
"description": "The player's favourite block", | |||
"example": "Glowstone", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"ministerrole": { | |||
"label": "Minister Role", | |||
"description": "The player's active minister role", | |||
"example": "Media and Communications", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"assumedoffice": { | |||
"label": "Assumed Office", | |||
"description": "The date the player assumed office", | |||
"example": "June 20, 2025", | |||
"type": "date", | |||
"suggested": true | |||
}, | |||
"precededby": { | |||
"label": "Preceded By", | |||
"description": "The previous minister before the player", | |||
"example": "SirIncognito", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"uuid": { | |||
"label": "UUID", | |||
"description": "The player's UUID", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"629018ce3d944233861f0446f5f2e67c" | |||
] | |||
} | } | ||
}, | }, | ||
"description": "An infobox | "description": "An infobox displaying key attributes related to an individual player's profile.", | ||
"paramOrder": [ | |||
"username", | |||
"uuid", | |||
"seasonjoined", | |||
"nationality", | |||
"discord", | |||
"alias", | |||
"quote", | |||
"favouriteitem", | |||
"favouriteblock", | |||
"ministerrole", | |||
"assumedoffice", | |||
"precededby" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
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 |