Template:Infobox character: Difference between revisions
Template page
More actions
No edit summary |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
| Line 113: | Line 67: | ||
}} | }} | ||
</pre> | </pre> | ||
==Template Data== | |||
<templatedata> | |||
{ | |||
"description": "Create an infobox on character pages", | |||
"format": "block", | |||
"params": { | |||
"name": { | |||
"label": "Name", | |||
"description": "Name of the character", | |||
"example": "Aldric Voss", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"image": { | |||
"label": "Image", | |||
"description": "Image of the character", | |||
"example": "Aldric Voss.jpg", | |||
"type": "wiki-file-name", | |||
"suggested": true | |||
}, | |||
"caption": { | |||
"label": "Image caption", | |||
"description": "Caption of the image", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"player": { | |||
"label": "Player", | |||
"description": "Player controlling this character, if a PC", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"ancestry": { | |||
"label": "Ancestry", | |||
"description": "Ancestry of the character", | |||
"example": "[[Human]]", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"class": { | |||
"label": "Class", | |||
"description": "Class of the character", | |||
"example": "[[Fighter]]", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"deity": { | |||
"label": "Deity", | |||
"description": "Deity worshipped by the character", | |||
"example": "[[Pharasma]]", | |||
"type": "string" | |||
}, | |||
"imageWidth": { | |||
"label": "Image width", | |||
"description": "Optional override for image width in px", | |||
"type": "number", | |||
"default": "320" | |||
}, | |||
"imageHeight": { | |||
"label": "Image height", | |||
"description": "Optional override for image height in px", | |||
"type": "number", | |||
"default": "480" | |||
} | |||
}, | |||
"paramOrder": [ | |||
"name", | |||
"image", | |||
"imageWidth", | |||
"imageHeight", | |||
"caption", | |||
"player", | |||
"ancestry", | |||
"class", | |||
"deity" | |||
] | |||
} | |||
</templatedata> | |||
[[Category:Infobox templates|{{PAGENAME}}]] | [[Category:Infobox templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 13:56, 27 June 2026
| [[File:{{{image}}}|320x480px|thumb|center|{{{caption}}}]] | |
| {{{name}}} | |
|---|---|
| Player | {{{player}}} |
| Ancestry | {{{ancestry}}} |
| Class | {{{class}}} |
| Deity | {{{deity}}} |
Usage
{{Infobox character
|name =
|image =
|caption =
|player =
|ancestry =
|class =
|deity =
}}
Template Data
Create an infobox on character pages
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | Name of the character
| String | required |
| Image | image | Image of the character
| File | suggested |
| Image width | imageWidth | Optional override for image width in px
| Number | optional |
| Image height | imageHeight | Optional override for image height in px
| Number | optional |
| Image caption | caption | Caption of the image | String | suggested |
| Player | player | Player controlling this character, if a PC | String | suggested |
| Ancestry | ancestry | Ancestry of the character
| String | suggested |
| Class | class | Class of the character
| String | suggested |
| Deity | deity | Deity worshipped by the character
| String | optional |