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
Tags: Manual revert Reverted
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 11: Line 11:
-->{{Infobox row
-->{{Infobox row
|colspan = 2
|colspan = 2
|data = {{{people|}}}
|header = {{{name|{{PAGENAME}}}}}
|dataClass = tg-infobox-subtitle
}}<!--
-->{{Infobox row
|colspan = 2
|header = {{{name|{{#explode:{{PAGENAME}}| (|0}}}}}
|headerClass = tg-infobox-title
|headerClass = tg-infobox-title
}}<!--
}}<!--
-->{{Infobox row
-->{{Infobox row
|colspan = 2
|label = Player
|header = {{{script|}}}
|data = {{{player|}}}
|headerClass = tg-infobox-subtitle
}}<!--
-->{{Infobox row
|colspan = 2
|condition = {{{othernames|}}}{{{titles|}}}{{{position|}}}{{{location|}}}{{{affiliation|}}}{{{language|}}}{{{birth|}}}{{{birthlocation|}}}{{{death|}}}{{{deathlocation|}}}{{{age|}}}{{{sailedwest|}}}{{{sailedfrom|}}}{{{pronun|}}}{{{notablefor|}}}
|header = Biographical Information
}}<!--
-->{{Infobox row
|label = Pronunciation
|data = {{{pronun|}}}
}}<!--
}}<!--
-->{{Infobox row
-->{{Infobox row
|label = Other names
|label = Ancestry
|data = {{{othernames|}}}
|data = {{{ancestry|}}}
}}<!--
}}<!--
-->{{Infobox row
-->{{Infobox row
|label = Titles
|label = Class
|data = {{{titles|}}}
|data = {{{class|}}}
}}<!--
}}<!--
-->{{Infobox row
-->{{Infobox row
|label = Position
|label = Deity
|data = {{{position|}}}
|data = {{{deity|}}}
}}<!--
}}<!--
-->{{Infobox row
|label = Location
|data = {{{location|}}}
}}<!--
-->{{Infobox row
|label = Affiliation
|data = {{{affiliation|}}}
}}<!--
-->{{Infobox row
|label = Language
|data = {{{language|}}}
}}<!--
-->{{Infobox row
|label = Birth
|data = {{{birth|}}}{{#if:{{{birthlocation|}}}|<br>{{{birthlocation|}}}}}
}}<!--
-->{{Infobox row
|label = Rule
|data = {{{rule|}}}
}}<!--
-->{{Infobox row
|label = {{#if:{{{sailedwest|}}}|Sailed west|Death}}
|data = {{#if:{{{death|}}}{{{sailedwest|}}}|{{{death|}}}{{{sailedwest|}}}{{#if:{{{age|}}}|&nbsp;(aged {{{age}}})}}<br>{{{deathlocation|}}}{{{sailedfrom|}}}|{{{sailedfrom|}}}{{{deathlocation|}}}{{#if:{{{age|}}}|&nbsp;(aged {{{age}}})}}}}
}}<!--
-->{{Infobox row
|label = Notable for
|data = {{{notablefor|}}}
}}<!--
-->{{Infobox row
|colspan = 2
|condition = {{{house|}}}{{{family|}}}{{{parentage|}}}{{{siblings|}}}{{{spouse|}}}{{{children|}}}
|header = Family
}}<!--
-->{{Infobox row
|label = House
|data = {{{house|}}}
}}<!--
-->{{Infobox row
|label = Family
|data = {{{family|}}}
}}<!--
-->{{Infobox row
|label = Parentage
|data = {{{parentage|}}}
}}<!--
-->{{Infobox row
|label = Siblings
|data = {{{siblings|}}}
}}<!--
-->{{Infobox row
|label = Spouse
|data = {{{spouse|}}}
}}<!--
-->{{Infobox row
|label = Children
|data = {{{children|}}}
}}<!--
-->{{Infobox row
|colspan = 2
|condition = {{{gender|}}}{{{height|}}}{{{hair|}}}{{{eyes|}}}{{{clothing|}}}{{{weapons|}}}{{{steed|}}}
|header = Physical Description
}}<!--
-->{{Infobox row
|label = Gender
|data = {{{gender|}}}
}}<!--
-->{{Infobox row
|label = Height
|data = {{{height|}}}
}}<!--
-->{{Infobox row
|label = Hair colour
|data = {{{hair|}}}
}}<!--
-->{{Infobox row
|label = Eye colour
|data = {{{eyes|}}}
}}<!--
-->{{Infobox row
|label = Clothing
|data = {{{clothing|}}}
}}<!--
-->{{Infobox row
|label = Weaponry
|data = {{{weapons|}}}
}}<!--
-->{{Infobox row
|label = Steed
|data = {{{steed|}}}
}}<!--
-->{{Infobox row
|label = Gallery
|data = {{#ifexist:Category:Images of {{{gallery|{{PAGENAME}}}}}|[[:Category:Images of {{{gallery|{{PAGENAME}}}}}|Images of {{{gallery|{{{name|{{#explode:{{PAGENAME}}| (|0}}}}}}}}]]}}
}}<!--
-->{{Infobox row
|colspan = 2
|condition = {{{audio|}}}
|header = Audio
}}<!--
-->{{Infobox row
|colspan = 2
|data = {{{audio|}}}
|dataClass = tg-infobox-caption
}}<!--
-->{{Infobox row
|colspan = 2
|data = {{{audiocaption|}}}
|dataClass = tg-infobox-caption
}}<!--
-->{{Infobox row
|colspan = 2
|condition = {{{audio|}}}
|header = Timeline
}}<!--
-->{{Infobox row
|colspan = 2
|data = {{{timeline|}}}
}}<!--
-->{{Infobox ribbon row
|color = {{{ribboncolor|}}}
|id = {{{ribbonid|}}}
}}<!--
--></table><!--
--></table><!--


Line 182: Line 45:
-------------
-------------
--><noinclude>
--><noinclude>
{{infobox character
{{Infobox character
| name={{{name}}}
| name = {{{name}}}
| script={{{script}}}
| image = {{{image}}}
| people={{{people}}}
| caption = {{{caption}}}
| image={{{image}}}
| player = {{{player}}}
| caption={{{caption}}}
| ancestry = {{{ancestry}}}
| pronun={{{pronun}}}
| class = {{{class}}}
| othernames={{{othernames}}}
| deity = {{{deity}}}
| titles={{{titles}}}
| position={{{position}}}
| location={{{location}}}
| affiliation={{{affiliation}}}
| language={{{language}}}
| birth={{{birth}}}
| birthlocation={{{birthlocation}}}
| rule={{{rule}}}
| death={{{death}}}
| deathlocation={{{deathlocation}}}
| age={{{age}}}
| notablefor={{{notablefor}}}
| house={{{house}}}
| family={{{family}}}
| parentage={{{parentage}}}
| siblings={{{siblings}}}
| spouse={{{spouse}}}
| children={{{children}}}
| gender={{{gender}}}
| height={{{height}}}
| hair={{{hair}}}
| eyes={{{eyes}}}
| clothing={{{clothing}}}
| weapons={{{weapons}}}
| steed={{{steed}}}
| audio={{{audio}}}
| audiocaption={{{audiocaption}}}
| timeline={{{timeline}}}
}}
}}


Line 224: Line 59:
{{Infobox character
{{Infobox character
|name =  
|name =  
|script =
|people =
|image =  
|image =  
|caption =  
|caption =  
|pronun =  
|player =  
|othernames =  
|ancestry =  
|titles =  
|class =  
|position =
|deity =  
|location =
|affiliation =
|language =
|birth =
|birthlocation =
|rule =
|death =
|deathlocation =
|age =
|notablefor =
|house =
|family =
|parentage =
|siblings =
|spouse =
|children =
|gender =
|height =
|hair =
|eyes =
|clothing =
|weapons =
|steed =
|audio =
|audiocaption =
|timeline =
|gallery =  
}}
}}
</pre><!--
</pre>


Category
==Template Data==
--------
-->[[Category:Infobox templates|{{PAGENAME}}]]<!--
-->
== 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",
"description": "Image of the character",
"example": "Jenny Dolfen - Frodo Baggins.jpg",
"example": "Aldric Voss.jpg",
"type": "wiki-file-name",
"type": "wiki-file-name",
"suggested": true
"suggested": true
Line 280: Line 91:
"label": "Image caption",
"label": "Image caption",
"description": "Caption of the image",
"description": "Caption of the image",
"example": "\"Frodo Baggins\" by [[Jenny Dolfen]]",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"people": {
"player": {
"label": "People",
"label": "Player",
"example": "[[Hobbits|Hobbit]]",
"description": "Player controlling this character, if a PC",
"type": "string",
"suggested": true
},
"ancestry": {
"label": "Ancestry",
"description": "Ancestry of the character",
"example": "[[Human]]",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"name": {
"class": {
"label": "Name",
"label": "Class",
"description": "Name of the character",
"description": "Class of the character",
"example": "Frodo Baggins",
"example": "[[Fighter]]",
"type": "string",
"type": "string",
"required": true
"suggested": true
},
"deity": {
"label": "Deity",
"description": "Deity worshipped by the character",
"example": "[[Pharasma]]",
"type": "string"
},
},
"othernames": {},
"titles": {},
"position": {},
"location": {},
"affiliation": {},
"language": {},
"birth": {},
"birthlocation": {},
"death": {},
"deathlocation": {},
"age": {},
"sailedwest": {},
"sailedfrom": {},
"pronun": {},
"notablefor": {},
"rule": {},
"house": {},
"family": {},
"parentage": {},
"siblings": {},
"spouse": {},
"children": {},
"gender": {},
"height": {},
"hair": {},
"eyes": {},
"clothing": {},
"weapons": {},
"steed": {},
"gallery": {},
"audio": {},
"audiocaption": {},
"imageWidth": {
"imageWidth": {
"label": "Image width",
"label": "Image width",
Line 342: Line 133:
}
}
},
},
"description": "Create an infobox on character pages",
"format": "block",
"paramOrder": [
"paramOrder": [
"name",
"name",
"people",
"image",
"image",
"imageWidth",
"imageWidth",
"imageHeight",
"imageHeight",
"caption",
"caption",
"othernames",
"player",
"titles",
"ancestry",
"position",
"class",
"location",
"deity"
"affiliation",
"language",
"birth",
"birthlocation",
"death",
"deathlocation",
"age",
"sailedwest",
"sailedfrom",
"pronun",
"notablefor",
"rule",
"house",
"family",
"parentage",
"siblings",
"spouse",
"children",
"gender",
"height",
"hair",
"eyes",
"clothing",
"weapons",
"steed",
"gallery",
"audio",
"audiocaption"
]
]
}
}
</templatedata></noinclude>
</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

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