Template:Infobox Player: Difference between revisions
Template page
More languages
More actions
Content deleted Content added
Added the initial template |
Added TemplateData |
||
Line 1: | Line 1: | ||
{{Infobox |
<includeonly>{{Infobox |
||
|name = |
|name = |
||
|bodystyle = |
|bodystyle = |
||
Line 6: | Line 6: | ||
|image = {{{imageurl|}}} |
|image = {{{imageurl|}}} |
||
|imagestyle = |
|imagestyle = |
||
|caption = {{{ |
|caption = {{{imagecaption|}}} |
||
|captionstyle = |
|captionstyle = |
||
|datastyle = |
|datastyle = |
||
Line 20: | Line 20: | ||
|label6 = Nationality |
|label6 = Nationality |
||
|data6 = {{{nationality|}}} |
|data6 = {{{nationality|}}} |
||
|label7 = |
|label7 = Birthday |
||
|data7 = {{#if:{{{birthdayyear|}}}{{{birthdaymonth|}}}{{{birthdayday|}}} |
|data7 = {{#if:{{{birthdayyear|}}}{{{birthdaymonth|}}}{{{birthdayday|}}} |
||
| {{#formatdate:{{{birthdayyear}}}-{{#switch:{{#sub:{{lc:{{{birthdaymonth}}}}}|0|3}} |
| {{#formatdate:{{{birthdayyear}}}-{{#switch:{{#sub:{{lc:{{{birthdaymonth}}}}}|0|3}} |
||
Line 42: | Line 42: | ||
|label10 = Staff member |
|label10 = Staff member |
||
|data10 = {{#ifeq:{{lc:{{{moderator|}}}}}|yes|[[Moderator]][[Category:Moderators|{{uc:{{{minecraftname|}}}}}]]|{{#ifeq:{{lc:{{{admin|}}}}}|yes|[[Admin]][[Category:Admins|{{uc:{{{minecraftname|}}}}}]]|}}}} |
|data10 = {{#ifeq:{{lc:{{{moderator|}}}}}|yes|[[Moderator]][[Category:Moderators|{{uc:{{{minecraftname|}}}}}]]|{{#ifeq:{{lc:{{{admin|}}}}}|yes|[[Admin]][[Category:Admins|{{uc:{{{minecraftname|}}}}}]]|}}}} |
||
}}</includeonly> |
|||
⚫ | |||
<noinclude><templatedata> |
|||
{ |
|||
"description": "Infobox for displaying information about a player", |
|||
"params": { |
|||
"minecraftname": { |
|||
"label": "Minecraft Name", |
|||
"description": "The player's Minecraft username. Defaults to the page name if not provided", |
|||
"type": "string", |
|||
"required": false |
|||
}, |
|||
"imageurl": { |
|||
"label": "Image URL", |
|||
"description": "A wiki-URL to a picture of the player", |
|||
"type": "string", |
|||
"required": true |
|||
}, |
|||
"imagecaption": { |
|||
"label": "Caption", |
|||
"description": "Caption for the image", |
|||
"type": "string", |
|||
"required": false |
|||
}, |
|||
"preferredname": { |
|||
"label": "Alias", |
|||
"description": "Preferred or alternative name(s) the player goes by", |
|||
"type": "string", |
|||
"required": false |
|||
}, |
|||
"gender": { |
|||
"label": "Gender", |
|||
"description": "The person's gender.", |
|||
"type": "string", |
|||
"required": false |
|||
}, |
|||
"pronouns": { |
|||
"label": "Pronouns", |
|||
"description": "The person's preferred pronouns", |
|||
"type": "string", |
|||
"required": false |
|||
}, |
|||
"location": { |
|||
"label": "Location", |
|||
"description": "Country/city/location where the player is currently located.", |
|||
"type": "string", |
|||
"required": false |
|||
}, |
|||
"nationality": { |
|||
"label": "Nationality", |
|||
"description": "The player's nationality", |
|||
"type": "string", |
|||
"required": false |
|||
}, |
|||
"birthdayyear": { |
|||
"label": "Birthday Year", |
|||
"description": "Year the person was born", |
|||
"type": "number", |
|||
"required": false |
|||
}, |
|||
"birthdaymonth": { |
|||
"label": "Birthday Month", |
|||
"description": "Month the person was born (e.g., Jan, Feb, etc. or numeric)", |
|||
"type": "string", |
|||
"required": false |
|||
}, |
|||
"birthdayday": { |
|||
"label": "Birthday Day", |
|||
"description": "Day of the month the person was born", |
|||
"type": "number", |
|||
"required": false |
|||
}, |
|||
"residence": { |
|||
"label": "Resides in", |
|||
"description": "Place of residence in Terrafirma", |
|||
"type": "string", |
|||
"required": false |
|||
}, |
|||
"moderator": { |
|||
"label": "Moderator Status", |
|||
"description": "Set to 'yes' if the player is a Moderator", |
|||
"type": "string", |
|||
"required": false |
|||
}, |
|||
"admin": { |
|||
"label": "Admin Status", |
|||
"description": "Set to 'yes' if the player is an Admin", |
|||
"type": "string", |
|||
"required": false |
|||
} |
|||
} |
|||
⚫ | |||
</templatedata></noinclude> |
Revision as of 00:28, 3 August 2025
Infobox for displaying information about a player
Parameter | Description | Type | Status | |
---|---|---|---|---|
Minecraft Name | minecraftname | The player's Minecraft username. Defaults to the page name if not provided | String | optional |
Image URL | imageurl | A wiki-URL to a picture of the player | String | required |
Caption | imagecaption | Caption for the image | String | optional |
Alias | preferredname | Preferred or alternative name(s) the player goes by | String | optional |
Gender | gender | The person's gender. | String | optional |
Pronouns | pronouns | The person's preferred pronouns | String | optional |
Location | location | Country/city/location where the player is currently located. | String | optional |
Nationality | nationality | The player's nationality | String | optional |
Birthday Year | birthdayyear | Year the person was born | Number | optional |
Birthday Month | birthdaymonth | Month the person was born (e.g., Jan, Feb, etc. or numeric) | String | optional |
Birthday Day | birthdayday | Day of the month the person was born | Number | optional |
Resides in | residence | Place of residence in Terrafirma | String | optional |
Moderator Status | moderator | Set to 'yes' if the player is a Moderator | String | optional |
Admin Status | admin | Set to 'yes' if the player is an Admin | String | optional |