Template:Infobox Character: Difference between revisions
Silverpg017 (talk | contribs) m Typo |
Silverpg017 (talk | contribs) m Added residence, death date, death place and birth place |
||
| (2 intermediate revisions by the same user not shown) | |||
| 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 43: | Line 43: | ||
| data11 = {{{birthday|}}} | | data11 = {{{birthday|}}} | ||
| label12 = <div style="text-align: left;"> | | label12 = <div style="text-align: left;">Birthplace</div> | ||
| data12 = {{{ | | data12 = {{{residence|}}} | ||
| label13 = <div style="text-align: left;"> | | label13 = <div style="text-align: left;">Gender</div> | ||
| data13 = {{{ | | data13 = {{{gender|}}} | ||
| label14 = <div style="text-align: left;"> | | label14 = <div style="text-align: left;">Residence</div> | ||
| data14 = {{{ | | data14 = {{{residence|}}} | ||
| label15 = <div style="text-align: left;"> | | label15 = <div style="text-align: left;">Height</div> | ||
| data15 = {{{ | | data15 = {{{height|}}} | ||
| label16 = <div style="text-align: left;"> | | label16 = <div style="text-align: left;">Weight</div> | ||
| data16 = {{{ | | data16 = {{{weight|}}} | ||
| | | label17 = <div style="text-align: left;">Hair color</div> | ||
| data17 = {{{hair_color|}}} | |||
| label18 = <div style="text-align: left;"> | | label18 = <div style="text-align: left;">Eye color</div> | ||
| data18 = {{{ | | data18 = {{{eye_color|}}} | ||
| label19 = <div style="text-align: left;"> | | label19 = <div style="text-align: left;">Death</div> | ||
| data19 = {{{ | | data19 = {{{death|}}} | ||
| label20 = <div style="text-align: left;">Join date</div> | | label20 = <div style="text-align: left;">Deathplace</div> | ||
| | | data20 = {{{deathplace|}}} | ||
| header21 = Player information | |||
| label22 = <div style="text-align: left;">Ingame name</div> | |||
| data22 = {{{ingame_name|}}} | |||
| label23 = <div style="text-align: left;">Discord</div> | |||
| data23 = {{{discord|}}} | |||
| label24 = <div style="text-align: left;">Join date</div> | |||
| data24 = {{{join_date|}}} | |||
}} | }} | ||
</includeonly> | </includeonly> | ||
<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": "Alternative Image Text", | |||
"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" | |||
}, | |||
"birthplace": { | |||
"label": "Birthplace", | |||
"description": "The character's birthplace", | |||
"type": "string", | |||
"example": "City of Amerand" | |||
}, | |||
"gender": { | |||
"label": "Gender", | |||
"description": "The character's gender", | |||
"type": "string", | |||
"example": "Male" | |||
}, | |||
"residence": { | |||
"label": "Residence", | |||
"description": "The character's residence place", | |||
"type": "string", | |||
"example": "Amerand's Townhall" | |||
}, | |||
"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" | |||
}, | |||
"death": { | |||
"label": "Death date", | |||
"description": "The character's date of death", | |||
"type": "string", | |||
"example": "January 2nd, 2029" | |||
}, | |||
"deathplace": { | |||
"label": "Deathplace", | |||
"description": "The character's deathplace", | |||
"type": "string", | |||
"example": "City of Amerand" | |||
}, | |||
"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", | |||
"birthplace", | |||
"gender", | |||
"residence", | |||
"height", | |||
"weight", | |||
"hair_color", | |||
"eye_color", | |||
"death", | |||
"deathplace", | |||
"ingame_name", | |||
"discord", | |||
"join_date" | |||
], | |||
"format": "block" | |||
} | |||
</templatedata> | |||
</noinclude> | </noinclude> | ||
<includeonly>{{#ifeq:{{NAMESPACE}}|doc|[[Category:Characters]]}}</includeonly> | <includeonly>{{#ifeq:{{NAMESPACE}}|doc|[[Category:Characters]]}}</includeonly> | ||
Latest revision as of 21:29, 29 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}}} |
Birthplace | {{{residence}}} |
Gender | {{{gender}}} |
Residence | {{{residence}}} |
Height | {{{height}}} |
Weight | {{{weight}}} |
Hair color | {{{hair_color}}} |
Eye color | {{{eye_color}}} |
Death | {{{death}}} |
Deathplace | {{{deathplace}}} |
| 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 |
| Alternative Image Text | 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 |
| Birthplace | birthplace | The character's birthplace
| String | optional |
| Gender | gender | The character's gender
| String | optional |
| Residence | residence | The character's residence place
| 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 |
| Death date | death | The character's date of death
| String | optional |
| Deathplace | deathplace | The character's deathplace
| 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 |