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
Line 8: Line 8:
|imageWidth = {{{imageWidth|}}}
|imageWidth = {{{imageWidth|}}}
|imageHeight = {{{imageHeight|}}}
|imageHeight = {{{imageHeight|}}}
}}<!--
-->{{Infobox row
|colspan = 2
|data = {{{people|}}}
|dataClass = tg-infobox-subtitle
}}<!--
}}<!--
-->{{Infobox row
-->{{Infobox row
Line 16: Line 21:
-->{{Infobox row
-->{{Infobox row
|colspan = 2
|colspan = 2
|condition = {{{born|}}}{{{died|}}}{{{education|}}}{{{style|}}}{{{images|}}}{{{location|}}}{{{website|}}}
|header = {{{script|}}}
|header = Biographical Information
|headerClass = tg-infobox-subtitle
}}<!--
}}<!--
-->{{Infobox row
-->{{Infobox row
|label = Born
|colspan = 2
|data = {{{born|}}}
|condition = {{{othernames|}}}{{{titles|}}}{{{position|}}}{{{location|}}}{{{affiliation|}}}{{{language|}}}{{{birth|}}}{{{birthlocation|}}}{{{death|}}}{{{deathlocation|}}}{{{age|}}}{{{sailedwest|}}}{{{sailedfrom|}}}{{{pronun|}}}{{{notablefor|}}}
|header = Biographical Information
}}<!--
}}<!--
-->{{Infobox row
-->{{Infobox row
    |condition = {{{died|}}}
|label = Pronunciation
|label = Died
|data = {{{pronun|}}}
|data = {{{died|}}}
}}<!--
}}<!--
-->{{Infobox row
-->{{Infobox row
    |condition = {{{education|}}}
|label = Other names
|label = Education
|data = {{{othernames|}}}
|data = {{{education|}}}
}}<!--
}}<!--
-->{{Infobox row
-->{{Infobox row
    |condition = {{{style|}}}
|label = Titles
|label = Style
|data = {{{titles|}}}
|data = {{{style|}}}
}}<!--
}}<!--
-->{{Infobox row
-->{{Infobox row
|label = Images
|label = Position
|data = {{{images|}}}
|data = {{{position|}}}
}}<!--
}}<!--
-->{{Infobox row
-->{{Infobox row
    |condition = {{{location|}}}
|label = Location
|label = Location
|data = {{{location|}}}
|data = {{{location|}}}
}}<!--
}}<!--
-->{{Infobox row
-->{{Infobox row
    |condition = {{{website|}}}
|label = Affiliation
|label = Website
|data = {{{affiliation|}}}
|data = {{{website|}}}
}}<!--
-->{{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 57: Line 172:
--------------
--------------
--><templatestyles src="Template:Infobox/styles.css"/><!--
--><templatestyles src="Template:Infobox/styles.css"/><!--
Param validation
----------------
-->{{#invoke:Paramvalidate|paramvalidate}}<!--
--></includeonly><!--


Documentation
Documentation
-------------
-------------
--><noinclude>
--><noinclude>
{{Infobox character
{{infobox character
| name={{{name}}}
| name={{{name}}}
| script={{{script}}}
| people={{{people}}}
| image={{{image}}}
| image={{{image}}}
| born={{{born}}}
| caption={{{caption}}}
| died={{{died}}}
| pronun={{{pronun}}}
| education={{{education}}}
| othernames={{{othernames}}}
| style={{{style}}}
| titles={{{titles}}}
| images={{{images}}}
| position={{{position}}}
| location={{{location}}}
| location={{{location}}}
| website={{{website}}}
| 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}}}
}}
}}
==Usage==
==Usage==
<pre>
<pre>
{{Infobox character
{{Infobox character
| name=
|name =
| image=
|script =
| born=
|people =  
| died=
|image =  
| education=
|caption =  
| style=
|pronun =  
| images=
|othernames =  
| location=
|titles =  
| website=
|position =  
|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><!--


==TemplateData==
Category
--------
-->[[Category:Infobox templates|{{PAGENAME}}]]<!--
-->
== Template Data ==
<templatedata>
<templatedata>
{
{
Line 93: Line 272:
"image": {
"image": {
"label": "Image",
"label": "Image",
"description": "Image of the character",
"example": "Jenny Dolfen - Frodo Baggins.jpg",
"type": "wiki-file-name",
"type": "wiki-file-name",
"suggested": true
"suggested": true
Line 98: Line 279:
"caption": {
"caption": {
"label": "Image caption",
"label": "Image caption",
"description": "Caption of the image"
"description": "Caption of the image",
"example": "\"Frodo Baggins\" by [[Jenny Dolfen]]",
"type": "string",
"suggested": true
},
"people": {
"label": "People",
"example": "[[Hobbits|Hobbit]]",
"type": "string",
"suggested": true
},
},
"name": {
"label": "Name",
"description": "Name of the character",
"example": "Frodo Baggins",
"type": "string",
"required": true
},
"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 111: Line 340:
"type": "number",
"type": "number",
"default": "480"
"default": "480"
},
}
"name": {},
"born": {},
"died": {},
"education": {},
"style": {},
"images": {},
"location": {},
"website": {}
},
},
"description": "Create an infobox on character pages",
"format": "block",
"paramOrder": [
"paramOrder": [
"name",
"name",
"people",
"image",
"image",
"imageWidth",
"imageWidth",
"imageHeight",
"imageHeight",
"caption",
"caption",
"born",
"othernames",
"died",
"titles",
"education",
"position",
"style",
"images",
"location",
"location",
"website"
"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><!--
</templatedata></noinclude>
 
Category
--------
-->[[Category:Infobox templates|{{PAGENAME}}]]<!--
--></noinclude>

Revision as of 10:38, 27 June 2026

Template:Infobox ribbon row
[[File:{{{image}}}|320x480px|thumb|center|{{{caption}}}]]
{{{people}}}
{{{name}}}
{{{script}}}
Biographical Information
Pronunciation{{{pronun}}}
Other names{{{othernames}}}
Titles{{{titles}}}
Position{{{position}}}
Location{{{location}}}
Affiliation{{{affiliation}}}
Language{{{language}}}
Birth{{{birth}}}
{{{birthlocation}}}
Rule{{{rule}}}
Death{{{death}}} (aged {{{age}}})
{{{deathlocation}}}
Notable for{{{notablefor}}}
Family
House{{{house}}}
Family{{{family}}}
Parentage{{{parentage}}}
Siblings{{{siblings}}}
Spouse{{{spouse}}}
Children{{{children}}}
Physical Description
Gender{{{gender}}}
Height{{{height}}}
Hair colour{{{hair}}}
Eye colour{{{eyes}}}
Clothing{{{clothing}}}
Weaponry{{{weapons}}}
Steed{{{steed}}}
Audio
{{{audio}}}
{{{audiocaption}}}
Timeline
{{{timeline}}}

Usage

{{Infobox character
|name = 
|script = 
|people = 
|image = 
|caption = 
|pronun = 
|othernames = 
|titles = 
|position = 
|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 = 
}}

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
Frodo Baggins
Stringrequired
Peoplepeople

no description

Example
[[Hobbits|Hobbit]]
Stringsuggested
Imageimage

Image of the character

Example
Jenny Dolfen - Frodo Baggins.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

Example
"Frodo Baggins" by [[Jenny Dolfen]]
Stringsuggested
othernamesothernames

no description

Unknownoptional
titlestitles

no description

Unknownoptional
positionposition

no description

Unknownoptional
locationlocation

no description

Unknownoptional
affiliationaffiliation

no description

Unknownoptional
languagelanguage

no description

Unknownoptional
birthbirth

no description

Unknownoptional
birthlocationbirthlocation

no description

Unknownoptional
deathdeath

no description

Unknownoptional
deathlocationdeathlocation

no description

Unknownoptional
ageage

no description

Unknownoptional
sailedwestsailedwest

no description

Unknownoptional
sailedfromsailedfrom

no description

Unknownoptional
pronunpronun

no description

Unknownoptional
notablefornotablefor

no description

Unknownoptional
rulerule

no description

Unknownoptional
househouse

no description

Unknownoptional
familyfamily

no description

Unknownoptional
parentageparentage

no description

Unknownoptional
siblingssiblings

no description

Unknownoptional
spousespouse

no description

Unknownoptional
childrenchildren

no description

Unknownoptional
gendergender

no description

Unknownoptional
heightheight

no description

Unknownoptional
hairhair

no description

Unknownoptional
eyeseyes

no description

Unknownoptional
clothingclothing

no description

Unknownoptional
weaponsweapons

no description

Unknownoptional
steedsteed

no description

Unknownoptional
gallerygallery

no description

Unknownoptional
audioaudio

no description

Unknownoptional
audiocaptionaudiocaption

no description

Unknownoptional