Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox Player: Difference between revisions

Template page
More languages
Added TemplateData
No edit summary
 
(28 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{Infobox
<includeonly>{{Skeleton Infobox
|name        =  
|name        =  
|bodystyle    =  
|bodystyle    =  
|title        = {{{minecraftname|{{PAGENAME}}}}}
|title        = {{{minecraftname|{{PAGENAME}}}}}
|titlestyle  =  
|titlestyle  =  
|image       = {{{imageurl|}}}
|image = {{#if:{{{imageurl|}}}
| [[File:{{{imageurl}}}|300px]]
| <div class="autogenerated-skin">https://render.crafty.gg/3d/full/{{{minecraftname|}}}?width=600&height=900&x=-20&y=10&z=50.png</div>
}}
|imagestyle  =  
|imagestyle  =  
|caption      = {{{imagecaption|}}}
|caption      = {{{imagecaption|}}}
Line 22: Line 25:
|label7  = Birthday
|label7  = Birthday
|data7  = {{#if:{{{birthdayyear|}}}{{{birthdaymonth|}}}{{{birthdayday|}}}
|data7  = {{#if:{{{birthdayyear|}}}{{{birthdaymonth|}}}{{{birthdayday|}}}
             | {{#formatdate:{{{birthdayyear}}}-{{#switch:{{#sub:{{lc:{{{birthdaymonth}}}}}|0|3}}
             | {{#formatdate:{{{birthdayday}}}.{{#switch:{{#sub:{{lc:{{{birthdaymonth}}}}}|0|3}}
               | jan = 01
               | jan = 01
               | feb = 02
               | feb = 02
Line 36: Line 39:
               | dec = 12
               | dec = 12
               | {{padleft:{{{birthdaymonth}}}|2}}
               | {{padleft:{{{birthdaymonth}}}|2}}
               }}-{{{birthdayday}}}}}}}
               }}.{{{birthdayyear}}}}}}}
|header8 = Moxiecraft
|header8 = Moxiecraft
|label9 = Resides in
|label9 = Resides in
Line 42: Line 45:
|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>
}}
[[Category:Players]]</includeonly>
<noinclude><templatedata>
<noinclude><templatedata>
{
{
  "description": "Infobox for displaying information about a player",
"description": "Infobox for displaying information about a player",
  "params": {
"params": {
    "minecraftname": {
"minecraftname": {
      "label": "Minecraft Name",
"label": "Minecraft Name",
      "description": "The player's Minecraft username. Defaults to the page name if not provided",
"description": "The player's Minecraft username",
      "type": "string",
"type": "string",
      "required": false
"required": true
    },
},
    "imageurl": {
"imageurl": {
      "label": "Image URL",
"label": "Image",
      "description": "A wiki-URL to a picture of the player",
"description": "Filename of a picture of a player",
      "type": "string",
"type": "wiki-file-name",
      "required": true
"autovalue": "",
    },
"suggested": true
    "imagecaption": {
},
      "label": "Caption",
"imagecaption": {
      "description": "Caption for the image",
"label": "Caption",
      "type": "string",
"description": "Caption for the image",
      "required": false
"type": "string",
    },
"required": false
    "preferredname": {
},
      "label": "Alias",
"preferredname": {
      "description": "Preferred or alternative name(s) the player goes by",
"label": "Alias",
      "type": "string",
"description": "Preferred or alternative name(s) the player goes by",
      "required": false
"type": "string",
    },
"required": false
    "gender": {
},
      "label": "Gender",
"gender": {
      "description": "The person's gender.",
"label": "Gender",
      "type": "string",
"description": "The person's gender.",
      "required": false
"type": "string",
    },
"required": false
    "pronouns": {
},
      "label": "Pronouns",
"pronouns": {
      "description": "The person's preferred pronouns",
"label": "Pronouns",
      "type": "string",
"description": "The person's preferred pronouns",
      "required": false
"type": "string",
    },
"required": false
    "location": {
},
      "label": "Location",
"location": {
      "description": "Country/city/location where the player is currently located.",
"label": "Location",
      "type": "string",
"description": "Country/city/location where the player is currently located.",
      "required": false
"type": "string",
    },
"required": false
    "nationality": {
},
      "label": "Nationality",
"nationality": {
      "description": "The player's nationality",
"label": "Nationality",
      "type": "string",
"description": "The player's nationality",
      "required": false
"type": "string",
    },
"required": false
    "birthdayyear": {
},
      "label": "Birthday Year",
"birthdayyear": {
      "description": "Year the person was born",
"label": "Birthday Year",
      "type": "number",
"description": "Year the person was born",
      "required": false
"type": "number",
    },
"required": false,
    "birthdaymonth": {
"autovalue": "XXXX",
      "label": "Birthday Month",
"suggested": true
      "description": "Month the person was born (e.g., Jan, Feb, etc. or numeric)",
},
      "type": "string",
"birthdaymonth": {
      "required": false
"label": "Birthday Month",
    },
"description": "Month the person was born (e.g., Jan, Feb, etc. or numeric)",
    "birthdayday": {
"type": "string",
      "label": "Birthday Day",
"required": false,
      "description": "Day of the month the person was born",
"autovalue": "XX",
      "type": "number",
"suggested": true
      "required": false
},
    },
"birthdayday": {
    "residence": {
"label": "Birthday Day",
      "label": "Resides in",
"description": "Day of the month the person was born",
      "description": "Place of residence in Terrafirma",
"type": "number",
      "type": "string",
"required": false,
      "required": false
"autovalue": "XX",
    },
"suggested": true
    "moderator": {
},
      "label": "Moderator Status",
"residence": {
      "description": "Set to 'yes' if the player is a Moderator",
"label": "Resides in",
      "type": "string",
"description": "Place of residence in Terrafirma",
      "required": false
"type": "string",
    },
"required": false
    "admin": {
},
      "label": "Admin Status",
"moderator": {
      "description": "Set to 'yes' if the player is an Admin",
"label": "Moderator Status",
      "type": "string",
"description": "Set to 'yes' if the player is a Moderator",
      "required": false
"type": "string",
    }
"required": false
  }
},
"admin": {
"label": "Admin Status",
"description": "Set to 'yes' if the player is an Admin",
"type": "string",
"required": false
}
},
"paramOrder": [
"minecraftname",
"imageurl",
"imagecaption",
"preferredname",
"gender",
"pronouns",
"location",
"nationality",
"birthdayday",
"birthdaymonth",
"birthdayyear",
"residence",
"moderator",
"admin"
]
}
}
</templatedata></noinclude>
</templatedata></noinclude>

Latest revision as of 20:24, 29 July 2026

Infobox for displaying information about a player

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Minecraft Nameminecraftname

The player's Minecraft username

Stringrequired
Imageimageurl

Filename of a picture of a player

Auto value
Filesuggested
Captionimagecaption

Caption for the image

Stringoptional
Aliaspreferredname

Preferred or alternative name(s) the player goes by

Stringoptional
Gendergender

The person's gender.

Stringoptional
Pronounspronouns

The person's preferred pronouns

Stringoptional
Locationlocation

Country/city/location where the player is currently located.

Stringoptional
Nationalitynationality

The player's nationality

Stringoptional
Birthday Daybirthdayday

Day of the month the person was born

Auto value
XX
Numbersuggested
Birthday Monthbirthdaymonth

Month the person was born (e.g., Jan, Feb, etc. or numeric)

Auto value
XX
Stringsuggested
Birthday Yearbirthdayyear

Year the person was born

Auto value
XXXX
Numbersuggested
Resides inresidence

Place of residence in Terrafirma

Stringoptional
Moderator Statusmoderator

Set to 'yes' if the player is a Moderator

Stringoptional
Admin Statusadmin

Set to 'yes' if the player is an Admin

Stringoptional