Jump to content

📢 Please make sure to read our Style Guide before editing. For questions, suggestions, or technical issues, please contact Noah.

Template:Infobox Player: Difference between revisions

From CrabCraft Wiki
Update list of seasons
Not sure how exactly this works, but added 'Date Joined' and 'Left Office'
 
(9 intermediate revisions by 2 users not shown)
Line 6: Line 6:


{{Infobox Player
{{Infobox Player
| username         = BlockKnight32
| username       = BlockKnight32
| seasonjoined    = Season 3
| seasonjoined    = Season 3
| nationality     = Canadian
| datejoined      = 11th March 2024
| discord         = blocky#4096
| nationality     = Canadian
| alias           = The Brickster
| discord         = blocky#4096
| quote           = "If in doubt, dig straight down."
| alias           = The Brickster
| quote           = "If in doubt, dig straight down."
| favouriteitem  = Diamond Shovel
| favouriteitem  = Diamond Shovel
| favouriteblock  = Mossy Cobblestone
| favouriteblock  = Mossy Cobblestone
| ministerrole    = Infrastructure & Gravel
| ministerrole    = Infrastructure & Gravel
| assumedoffice  = 12th March 2024
| assumedoffice  = 12th March 2024
| leftoffice      = 13th March 2024
| precededby      = CreeperCarl
| precededby      = CreeperCarl
}}{{#cargo_declare:
  _table=player_data
  | username=Page
  | seasonjoined=String
  | datejoined=Date
  | nationality=String
  | discord=String
  | alias=String
  | quote=Text
  | favouriteitem=String
  | favouriteblock=String
  | ministerrole=String
  | assumedoffice=Date
  | leftoffice=Date
  | precededby=String
}}</noinclude>
<includeonly>
{{#cargo_store:
  _table=player_data
  | username={{{username|}}}
  | seasonjoined={{{seasonjoined|}}}
  | datejoined={{{datejoined|}}}
  | nationality={{{nationality|}}}
  | discord={{{discord|}}}
  | alias={{{alias|}}}
  | quote={{{quote|}}}
  | favouriteitem={{{favouriteitem|}}}
  | favouriteblock={{{favouriteblock|}}}
  | ministerrole={{{ministerrole|}}}
  | assumedoffice={{{assumedoffice|}}}
  | leftoffice={{{leftoffice|}}}
  | precededby={{{precededby|}}}
}}
}}
</noinclude>
<templatestyles src="Template:Infobox Player/styles.css" />
<includeonly>
{{#invoke:Infobox Player|infobox}}
{{#invoke:Infobox Player|infobox}}
</includeonly>
</includeonly>
Line 53: Line 86:
"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 1]]"
"[[Season 6]]",
                "[[Season 7]]"
],
],
"suggested": true
"suggested": true
        },
        "datejoined": {
            "label": "Date Joined",
            "description": "Date the player joined for the first time",
            "example": "July 28, 2025",
            "type": "date",
            "suggested": true
},
},
"alias": {
"alias": {
"label": "Aliases",
    "label": "Aliases",
"description": "The player's aliases",
"description": "The player's aliases",
"example": "Noah",
"example": "Noah",
Line 100: Line 141:
"label": "Assumed Office",
"label": "Assumed Office",
"description": "The date the player assumed office",
"description": "The date the player assumed office",
"example": "20th June 2025",
"example": "June 20, 2025",
"type": "date",
"suggested": true
        },
"leftoffice": {
"label": "Left Office",
"description": "The date the player left office",
"example": "August 15, 2025",
"type": "date",
"type": "date",
"suggested": true
"suggested": true
Line 110: Line 158:
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
"uuid": {
"label": "UUID",
"description": "The player's UUID",
"type": "string",
"suggestedvalues": [
"629018ce3d944233861f0446f5f2e67c"
]
}
}
},
},
Line 115: Line 171:
"paramOrder": [
"paramOrder": [
"username",
"username",
"uuid",
"seasonjoined",
"seasonjoined",
        "datejoined",
"nationality",
"nationality",
"discord",
"discord",
Line 124: Line 182:
"ministerrole",
"ministerrole",
"assumedoffice",
"assumedoffice",
        "leftoffice",
"precededby"
"precededby"
]
]

Latest revision as of 08:30, 27 July 2026

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
110.png
Biography
Username BlockKnight32
Alias The Brickster
Season Joined Season 3
Date Joined 11th March 2024
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
Left Office 13th 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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Usernameusername

The player's Minecraft username

Example
AuroraFlight
Stringrequired
UUIDuuid

The player's UUID

Suggested values
629018ce3d944233861f0446f5f2e67c
Stringoptional
Season Joinedseasonjoined

The player's first season

Suggested values
[[Season 1]] [[Season 2]] [[Season 3]] [[Season 4]] [[Season V]] [[Season 6]] [[Season 7]]
Example
Season 4
Stringsuggested
Date Joineddatejoined

Date the player joined for the first time

Example
July 28, 2025
Datesuggested
Nationalitynationality

The player's nationality or nationalities

Example
British
Stringsuggested
Discorddiscord

The player's discord username

Example
immaxm
Stringsuggested
Aliasesalias

The player's aliases

Example
Noah
Stringsuggested
Quotequote

The player's known quote

Example
"To be, or not to be, that is the question."
Stringsuggested
Favourite Itemfavouriteitem

The player's favourite item

Example
Iron Pickaxe
Stringsuggested
Favourite Blockfavouriteblock

The player's favourite block

Example
Glowstone
Stringsuggested
Minister Roleministerrole

The player's active minister role

Example
Media and Communications
Stringsuggested
Assumed Officeassumedoffice

The date the player assumed office

Example
June 20, 2025
Datesuggested
Left Officeleftoffice

The date the player left office

Example
August 15, 2025
Datesuggested
Preceded Byprecededby

The previous minister before the player

Example
SirIncognito
Stringsuggested