Template:Infobox character: Difference between revisions
Template page
More actions
Created page with "<includeonly><!-- Template --><table class="tg-infobox floatright"><!-- -->{{Infobox image row |image = {{{image|}}} |caption = {{{caption|}}} |imageWidth = {{{imageWidth|}}} |imageHeight = {{{imageHeight|}}} }}<!-- -->{{Infobox row |colspan = 2 |header = {{{name|{{#explode:{{PAGENAME}}| (|0}}}}} |headerClass = tg-infobox-title }}<!-- -->{{Infobox row |colspan = 2 |condition = {{{born|}}}{{{died|}}}{{{education|}}}{{{style|}}}{{{images|}}}{{{location|}}}{{..." |
No edit summary |
||
| (8 intermediate revisions by the same user not shown) | |||
| Line 11: | Line 11: | ||
-->{{Infobox row | -->{{Infobox row | ||
|colspan = 2 | |colspan = 2 | ||
|header = {{{name| | |header = {{{name|{{PAGENAME}}}}} | ||
|headerClass = tg-infobox-title | |headerClass = tg-infobox-title | ||
}}<!-- | }}<!-- | ||
-->{{Infobox row | -->{{Infobox row | ||
| | |label = Player | ||
| | |data = {{{player|}}} | ||
}}<!-- | }}<!-- | ||
-->{{Infobox row | -->{{Infobox row | ||
|label = | |label = Ancestry | ||
|data = {{{ | |data = {{{ancestry|}}} | ||
}}<!-- | }}<!-- | ||
-->{{Infobox row | -->{{Infobox row | ||
|label = Class | |||
|label = | |data = {{{class|}}} | ||
|data = {{{ | |||
}}<!-- | }}<!-- | ||
-->{{Infobox row | -->{{Infobox row | ||
|label = Deity | |||
|data = {{{deity|}}} | |||
|label = | |||
|data = {{{ | |||
}}<!-- | }}<!-- | ||
--></table><!-- | --></table><!-- | ||
| Line 68: | Line 46: | ||
--><noinclude> | --><noinclude> | ||
{{Infobox character | {{Infobox character | ||
| name={{{name}}} | | name = {{{name}}} | ||
| image={{{image}}} | | image = {{{image}}} | ||
| | | caption = {{{caption}}} | ||
| | | player = {{{player}}} | ||
| | | ancestry = {{{ancestry}}} | ||
| | | class = {{{class}}} | ||
| | | deity = {{{deity}}} | ||
}} | }} | ||
==Usage== | ==Usage== | ||
<pre> | <pre> | ||
{{Infobox character | {{Infobox character | ||
| name= | |name = | ||
| image= | |image = | ||
| | |caption = | ||
| | |player = | ||
| | |ancestry = | ||
| | |class = | ||
| | |deity = | ||
}} | }} | ||
</pre> | </pre> | ||
== | ==Template Data== | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "Create an infobox on character pages", | |||
"format": "block", | |||
"params": { | "params": { | ||
"name": { | |||
"label": "Name", | |||
"description": "Name of the character", | |||
"example": "Aldric Voss", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"image": { | "image": { | ||
"label": "Image", | "label": "Image", | ||
"description": "Image of the character", | |||
"example": "Aldric Voss.jpg", | |||
"type": "wiki-file-name", | "type": "wiki-file-name", | ||
"suggested": true | "suggested": true | ||
| Line 104: | Line 90: | ||
"caption": { | "caption": { | ||
"label": "Image caption", | "label": "Image caption", | ||
"description": "Caption of the image" | "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": { | "imageWidth": { | ||
| Line 117: | Line 131: | ||
"type": "number", | "type": "number", | ||
"default": "480" | "default": "480" | ||
} | |||
}, | }, | ||
"paramOrder": [ | "paramOrder": [ | ||
| Line 133: | Line 139: | ||
"imageHeight", | "imageHeight", | ||
"caption", | "caption", | ||
" | "player", | ||
" | "ancestry", | ||
" | "class", | ||
" | "deity" | ||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
[[Category:Infobox templates|{{PAGENAME}}]] | |||
</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 |