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
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 11: Line 11:
-->{{Infobox row
-->{{Infobox row
|colspan = 2
|colspan = 2
|header = {{{name|{{#explode:{{PAGENAME}}| (|0}}}}}
|header = {{{name|{{PAGENAME}}}}}
|headerClass = tg-infobox-title
|headerClass = tg-infobox-title
}}<!--
}}<!--
-->{{Infobox row
-->{{Infobox row
|colspan = 2
|label = Player
|condition = {{{born|}}}{{{died|}}}{{{education|}}}{{{style|}}}{{{images|}}}{{{location|}}}{{{website|}}}
|data = {{{player|}}}
|header = Biographical Information
}}<!--
}}<!--
-->{{Infobox row
-->{{Infobox row
|label = Born
|label = Ancestry
|data = {{{born|}}}
|data = {{{ancestry|}}}
}}<!--
}}<!--
-->{{Infobox row
-->{{Infobox row
    |condition = {{{died|}}}
|label = Class
|label = Died
|data = {{{class|}}}
|data = {{{died|}}}
}}<!--
}}<!--
-->{{Infobox row
-->{{Infobox row
    |condition = {{{education|}}}
|label = Deity
|label = Education
|data = {{{deity|}}}
|data = {{{education|}}}
}}<!--
-->{{Infobox row
    |condition = {{{style|}}}
|label = Style
|data = {{{style|}}}
}}<!--
-->{{Infobox row
|label = Images
|data = {{{images|}}}
}}<!--
-->{{Infobox row
    |condition = {{{location|}}}
|label = Location
|data = {{{location|}}}
}}<!--
-->{{Infobox row
    |condition = {{{website|}}}
|label = Website
|data = {{{website|}}}
}}<!--
}}<!--
--></table><!--
--></table><!--
Line 57: Line 35:
--------------
--------------
--><templatestyles src="Template:Infobox/styles.css"/><!--
--><templatestyles src="Template:Infobox/styles.css"/><!--
Param validation
----------------
-->{{#invoke:Paramvalidate|paramvalidate}}<!--
--></includeonly><!--


Documentation
Documentation
Line 62: Line 46:
--><noinclude>
--><noinclude>
{{Infobox character
{{Infobox character
| name={{{name}}}
| name = {{{name}}}
| image={{{image}}}
| image = {{{image}}}
| born={{{born}}}
| caption = {{{caption}}}
| died={{{died}}}
| player = {{{player}}}
| education={{{education}}}
| ancestry = {{{ancestry}}}
| style={{{style}}}
| class = {{{class}}}
| images={{{images}}}
| deity = {{{deity}}}
| location={{{location}}}
| website={{{website}}}
}}
}}
==Usage==
==Usage==
<pre>
<pre>
{{Infobox character
{{Infobox character
| name=
|name =  
| image=
|image =  
| born=
|caption =  
| died=
|player =  
| education=
|ancestry =  
| style=
|class =  
| images=
|deity =  
| location=
| website=
}}
}}
</pre>
</pre>


==TemplateData==
==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 98: 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 111: Line 131:
"type": "number",
"type": "number",
"default": "480"
"default": "480"
},
}
"name": {},
"born": {},
"died": {},
"education": {},
"style": {},
"images": {},
"location": {},
"website": {}
},
},
"paramOrder": [
"paramOrder": [
Line 127: Line 139:
"imageHeight",
"imageHeight",
"caption",
"caption",
"born",
"player",
"died",
"ancestry",
"education",
"class",
"style",
"deity"
"images",
"location",
"website"
]
]
}
}
</templatedata><!--
</templatedata>


Category
[[Category:Infobox templates|{{PAGENAME}}]]
--------
</noinclude>
-->[[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