Template:Infobox Character: Difference between revisions
Silverpg017 (talk | contribs) m Typo |
Silverpg017 (talk | contribs) Added template data |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{Infobox | {{Infobox | ||
| above = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}} | | above = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}} | ||
| autoheaders = y | | autoheaders = y | ||
| Line 26: | Line 26: | ||
| data5 = {{{religion|}}} | | data5 = {{{religion|}}} | ||
| label6 = <div style="text-align: left;">Language</div> | | label6 = <div style="text-align: left;">Language/s</div> | ||
| data6 = {{{ | | data6 = {{{languages|}}} | ||
| label7 = <div style="text-align: left;">Origin</div> | | label7 = <div style="text-align: left;">Origin</div> | ||
| Line 72: | Line 72: | ||
<noinclude> | <noinclude> | ||
{{documentation}} | {{documentation}} | ||
<templatedata> | |||
{ | |||
"description": "An infobox template for displaying information about characters.", | |||
"params": { | |||
"name": { | |||
"label": "Name", | |||
"description": "The character's name", | |||
"type": "string", | |||
"required": true, | |||
"suggested": true | |||
}, | |||
"image": { | |||
"label": "Primary Image", | |||
"description": "Name of the character's portrait file", | |||
"type": "string", | |||
"example": "Character Portrait.png", | |||
"suggested": true | |||
}, | |||
"alt": { | |||
"label": "Image Description", | |||
"description": "Alt text for image description", | |||
"type": "string" | |||
}, | |||
"caption": { | |||
"label": "Image Caption", | |||
"description": "Brief description of the image's content", | |||
"type": "string", | |||
"example": "This Character in 2026 AD" | |||
}, | |||
"aliases": { | |||
"label": "Aliases", | |||
"description": "Aliases of the character. This can include noble titles, nicknames and so on", | |||
"type": "string", | |||
"example": "\"Duke of Salamander\"" | |||
}, | |||
"nationality": { | |||
"label": "Nationality", | |||
"description": "The nation the character is from", | |||
"type": "string", | |||
"example": "Chimeria" | |||
}, | |||
"affiliation": { | |||
"label": "Affiliation", | |||
"description": "Any type of organization (army, mercenaries, guilds...) the character is part of.", | |||
"type": "string", | |||
"example": "Pactoria Trading Guild" | |||
}, | |||
"religion": { | |||
"label": "Official Religion", | |||
"description": "The nation's official religion", | |||
"type": "content", | |||
"example": "TCodeism" | |||
}, | |||
"languages": { | |||
"label": "Spoken Languages", | |||
"description": "List of spoken languages by the character", | |||
"type": "content", | |||
"example": "Rosean<br>Pactorian<br>etc..." | |||
}, | |||
"origin": { | |||
"label": "Origin", | |||
"description": "Culture or ethnicity the character comes from", | |||
"type": "string", | |||
"example": "Amerandian" | |||
}, | |||
"race": { | |||
"label": "Race", | |||
"description": "Race the character belongs to", | |||
"type": "string", | |||
"example": "Human" | |||
}, | |||
"age": { | |||
"label": "Age", | |||
"description": "The character's age", | |||
"type": "string", | |||
"example": "19" | |||
}, | |||
"birthday": { | |||
"label": "Birthday", | |||
"description": "The character's birth day", | |||
"type": "string", | |||
"example": "November 19th, 1912" | |||
}, | |||
"gender": { | |||
"label": "Gender", | |||
"description": "The character's gender", | |||
"type": "string", | |||
"example": "Male" | |||
}, | |||
"height": { | |||
"label": "Height", | |||
"description": "The character's height. Both metric and imperial units are recommended", | |||
"type": "string", | |||
"example": "175cm or 5'9" | |||
}, | |||
"weight": { | |||
"label": "Weight", | |||
"description": "The character's weight. Both metric and imperial units are recommended", | |||
"type": "string", | |||
"example": "70kg or 154.32lb" | |||
}, | |||
"hair_color": { | |||
"label": "Hair color", | |||
"description": "The character's hair color", | |||
"type": "string", | |||
"example": "Dark brown" | |||
}, | |||
"eye_color": { | |||
"label": "Eye color", | |||
"description": "The character's eye color", | |||
"type": "string", | |||
"example": "Hazel" | |||
}, | |||
"ingame_name": { | |||
"label": "In-game name", | |||
"description": "The player's in-game name (IGN) in Minecraft", | |||
"type": "string", | |||
"example": "silverpg017" | |||
}, | |||
"discord": { | |||
"label": "Discord Username", | |||
"description": "The player's discord username", | |||
"type": "string", | |||
"example": "silverpg017" | |||
}, | |||
"join_date": { | |||
"label": "Join Date", | |||
"description": "The date the player joined Pactoria", | |||
"type": "string", | |||
"example": "January 1st, 2025" | |||
} | |||
}, | |||
"paramOrder": [ | |||
"name", | |||
"image", | |||
"caption", | |||
"alt", | |||
"aliases", | |||
"nationality", | |||
"affiliation", | |||
"religion", | |||
"languages", | |||
"origin", | |||
"race", | |||
"age", | |||
"birthday", | |||
"gender", | |||
"height", | |||
"weight", | |||
"hair_color", | |||
"eye_color", | |||
"ingame_name", | |||
"discord", | |||
"join_date" | |||
], | |||
"format": "block" | |||
} | |||
</templatedata> | |||
</noinclude> | </noinclude> | ||
<includeonly>{{#ifeq:{{NAMESPACE}}|doc|[[Category:Characters]]}}</includeonly> | <includeonly>{{#ifeq:{{NAMESPACE}}|doc|[[Category:Characters]]}}</includeonly> | ||
Revision as of 10:51, 15 March 2026
Usage
To use this template in an article, copy and paste the code below and fill it. Some spaces can be left blank and they won't show up on the final infobox. If you are using source editor, you can press on 'Show preview' to see a preview of your infobox.
Full
| {{{name}}} | |
|---|---|
| [[File:{{{image}}}|frameless|border|center|alt={{{alt}}}|upright=1]] {{{caption}}} | |
| Biographical information | |
Aliases | {{{aliases}}} |
Nationality | {{{nationality}}} |
Affiliation | {{{affiliation}}} |
Religion | {{{religion}}} |
Language/s | {{{languages}}} |
Origin | {{{origin}}} |
| Personal information | |
Race | {{{race}}} |
Age | {{{age}}} |
Birthday | {{{birthday}}} |
Gender | {{{gender}}} |
Height | {{{height}}} |
Weight | {{{weight}}} |
Hair color | {{{hair_color}}} |
Eye color | {{{eye_color}}} |
| Player information | |
Ingame name | {{{ingame_name}}} |
Discord | {{{discord}}} |
Join date | {{{join_date}}} |
{{Infobox Character
| name =
| image =
| caption =
| alt =
| aliases =
| nationality =
| affiliation =
| religion =
| languages =
| origin =
| race =
| age =
| birthday =
| birthplace =
| gender =
| residence =
| height =
| weight =
| hair_color =
| eye_color =
| death =
| deathplace =
| ingame_name =
| discord =
| join_date =
}}
An infobox template for displaying information about characters.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | The character's name | String | required |
| Primary Image | image | Name of the character's portrait file
| String | suggested |
| Image Caption | caption | Brief description of the image's content
| String | optional |
| Image Description | alt | Alt text for image description | String | optional |
| Aliases | aliases | Aliases of the character. This can include noble titles, nicknames and so on
| String | optional |
| Nationality | nationality | The nation the character is from
| String | optional |
| Affiliation | affiliation | Any type of organization (army, mercenaries, guilds...) the character is part of.
| String | optional |
| Official Religion | religion | The nation's official religion
| Content | optional |
| Spoken Languages | languages | List of spoken languages by the character
| Content | optional |
| Origin | origin | Culture or ethnicity the character comes from
| String | optional |
| Race | race | Race the character belongs to
| String | optional |
| Age | age | The character's age
| String | optional |
| Birthday | birthday | The character's birth day
| String | optional |
| Gender | gender | The character's gender
| String | optional |
| Height | height | The character's height. Both metric and imperial units are recommended
| String | optional |
| Weight | weight | The character's weight. Both metric and imperial units are recommended
| String | optional |
| Hair color | hair_color | The character's hair color
| String | optional |
| Eye color | eye_color | The character's eye color
| String | optional |
| In-game name | ingame_name | The player's in-game name (IGN) in Minecraft
| String | optional |
| Discord Username | discord | The player's discord username
| String | optional |
| Join Date | join_date | The date the player joined Pactoria
| String | optional |