Difference between revisions of "Template:Character"

From The Kingkiller Chronicle Wiki
Jump to navigation Jump to search
(Allow the character type to be added automatically)
(Add TemplateData)
Line 52: Line 52:
 
<noinclude>
 
<noinclude>
 
{{/doc}}
 
{{/doc}}
 +
{{TemplateData|<templatedata>
 +
{
 +
"params": {
 +
"image": {
 +
"label": "Character image",
 +
"description": "File link to the character image",
 +
"example": "[[File:MainPage-Kvothe.jpg]]",
 +
"type": "wiki-file-name"
 +
},
 +
"fullname": {
 +
"label": "Full name",
 +
"description": "Full name of the character",
 +
"example": "Kvothe, son of Arliden",
 +
"type": "string"
 +
},
 +
"gender": {
 +
"label": "Gender",
 +
"description": "Character's gender",
 +
"example": "Male",
 +
"type": "string",
 +
"required": true
 +
},
 +
"status": {
 +
"label": "Status",
 +
"description": "Character's status",
 +
"example": "Alive",
 +
"required": true,
 +
"type": "string"
 +
},
 +
"eyecolor": {
 +
"label": "Eye color",
 +
"description": "Character's eye color",
 +
"example": "Green",
 +
"type": "string"
 +
},
 +
"haircolor": {
 +
"label": "Hair color",
 +
"description": "Character's hair color",
 +
"example": "Red",
 +
"type": "string"
 +
},
 +
"type": {
 +
"label": "Type",
 +
"description": "Type of character: Major/Minor",
 +
"example": "Major",
 +
"type": "string"
 +
}
 +
},
 +
"description": "Creates an infobox for Character pages",
 +
"format": "block"
 +
}
 +
</templatedata>}}
 
</noinclude>
 
</noinclude>

Revision as of 20:55, 15 December 2018


Template:Character/doc

Data

Show/hide template's data

The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date.

Creates an infobox for Character pages

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Character imageimage

File link to the character image

Example
[[File:MainPage-Kvothe.jpg]]
Fileoptional
Full namefullname

Full name of the character

Example
Kvothe, son of Arliden
Stringoptional
Gendergender

Character's gender

Example
Male
Stringrequired
Statusstatus

Character's status

Example
Alive
Stringrequired
Eye coloreyecolor

Character's eye color

Example
Green
Stringoptional
Hair colorhaircolor

Character's hair color

Example
Red
Stringoptional
Typetype

Type of character: Major/Minor

Example
Major
Stringoptional