Template:Infobox Character: Difference between revisions

From Pactoria Wiki
Jump to navigation Jump to search
m Typo
Added template data
Line 1: Line 1:
<includeonly>
<includeonly>
{{Infobox
{{Infobox
| above = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}{{#if:{{{native_name|}}}|<br><span style="font-weight:normal;">''{{{native_name}}}''</span>}}
| 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 = {{{language|}}}
| 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


An infobox template for displaying information about characters.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

The character's name

Stringrequired
Primary Imageimage

Name of the character's portrait file

Example
Character Portrait.png
Stringsuggested
Image Captioncaption

Brief description of the image's content

Example
This Character in 2026 AD
Stringoptional
Image Descriptionalt

Alt text for image description

Stringoptional
Aliasesaliases

Aliases of the character. This can include noble titles, nicknames and so on

Example
"Duke of Salamander"
Stringoptional
Nationalitynationality

The nation the character is from

Example
Chimeria
Stringoptional
Affiliationaffiliation

Any type of organization (army, mercenaries, guilds...) the character is part of.

Example
Pactoria Trading Guild
Stringoptional
Official Religionreligion

The nation's official religion

Example
TCodeism
Contentoptional
Spoken Languageslanguages

List of spoken languages by the character

Example
Rosean<br>Pactorian<br>etc...
Contentoptional
Originorigin

Culture or ethnicity the character comes from

Example
Amerandian
Stringoptional
Racerace

Race the character belongs to

Example
Human
Stringoptional
Ageage

The character's age

Example
19
Stringoptional
Birthdaybirthday

The character's birth day

Example
November 19th, 1912
Stringoptional
Gendergender

The character's gender

Example
Male
Stringoptional
Heightheight

The character's height. Both metric and imperial units are recommended

Example
175cm or 5'9
Stringoptional
Weightweight

The character's weight. Both metric and imperial units are recommended

Example
70kg or 154.32lb
Stringoptional
Hair colorhair_color

The character's hair color

Example
Dark brown
Stringoptional
Eye coloreye_color

The character's eye color

Example
Hazel
Stringoptional
In-game nameingame_name

The player's in-game name (IGN) in Minecraft

Example
silverpg017
Stringoptional
Discord Usernamediscord

The player's discord username

Example
silverpg017
Stringoptional
Join Datejoin_date

The date the player joined Pactoria

Example
January 1st, 2025
Stringoptional