Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox character: Difference between revisions

Template page
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><!--
Template
--><table class="tg-infobox floatright"><!--
-->{{Infobox image row
|image = {{{image|}}}
|caption = {{{caption|}}}
|imageWidth = {{{imageWidth|}}}
|imageHeight = {{{imageHeight|}}}
}}<!--
-->{{Infobox row
|colspan = 2
|header = {{{name|{{PAGENAME}}}}}
|headerClass = tg-infobox-title
}}<!--
-->{{Infobox row
|label = Player
|data = {{{player|}}}
}}<!--
-->{{Infobox row
|label = Ancestry
|data = {{{ancestry|}}}
}}<!--
-->{{Infobox row
|label = Class
|data = {{{class|}}}
}}<!--
-->{{Infobox row
|label = Deity
|data = {{{deity|}}}
}}<!--
--></table><!--
TemplateStyles
--------------
--><templatestyles src="Template:Infobox/styles.css"/><!--
Param validation
----------------
-->{{#invoke:Paramvalidate|paramvalidate}}<!--
--></includeonly><!--
Documentation
-------------
--><noinclude>
<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

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

Name of the character

Example
Aldric Voss
Stringrequired
Imageimage

Image of the character

Example
Aldric Voss.jpg
Filesuggested
Image widthimageWidth

Optional override for image width in px

Default
320
Numberoptional
Image heightimageHeight

Optional override for image height in px

Default
480
Numberoptional
Image captioncaption

Caption of the image

Stringsuggested
Playerplayer

Player controlling this character, if a PC

Stringsuggested
Ancestryancestry

Ancestry of the character

Example
[[Human]]
Stringsuggested
Classclass

Class of the character

Example
[[Fighter]]
Stringsuggested
Deitydeity

Deity worshipped by the character

Example
[[Pharasma]]
Stringoptional