Difference between revisions of "Template:Character"
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
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
|