Template:Infobox character: Difference between revisions
More actions
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 | ||
| | |header = {{{script|}}} | ||
| | |headerClass = tg-infobox-subtitle | ||
}}<!-- | }}<!-- | ||
-->{{Infobox row | -->{{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 | -->{{Infobox row | ||
|label = Pronunciation | |||
|label = | |data = {{{pronun|}}} | ||
|data = {{{ | |||
}}<!-- | }}<!-- | ||
-->{{Infobox row | -->{{Infobox row | ||
|label = Other names | |||
|label = | |data = {{{othernames|}}} | ||
|data = {{{ | |||
}}<!-- | }}<!-- | ||
-->{{Infobox row | -->{{Infobox row | ||
|label = Titles | |||
|label = | |data = {{{titles|}}} | ||
|data = {{{ | |||
}}<!-- | }}<!-- | ||
-->{{Infobox row | -->{{Infobox row | ||
|label = | |label = Position | ||
|data = {{{ | |data = {{{position|}}} | ||
}}<!-- | }}<!-- | ||
-->{{Infobox row | -->{{Infobox row | ||
|label = Location | |label = Location | ||
|data = {{{location|}}} | |data = {{{location|}}} | ||
}}<!-- | }}<!-- | ||
-->{{Infobox row | -->{{Infobox row | ||
|label = Affiliation | |||
|label = | |data = {{{affiliation|}}} | ||
|data = {{{ | }}<!-- | ||
-->{{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|}}}| (aged {{{age}}})}}<br>{{{deathlocation|}}}{{{sailedfrom|}}}|{{{sailedfrom|}}}{{{deathlocation|}}}{{#if:{{{age|}}}| (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 | ||
| name={{{name}}} | | name={{{name}}} | ||
| script={{{script}}} | |||
| people={{{people}}} | |||
| image={{{image}}} | | image={{{image}}} | ||
| | | caption={{{caption}}} | ||
| | | pronun={{{pronun}}} | ||
| | | othernames={{{othernames}}} | ||
| | | titles={{{titles}}} | ||
| | | position={{{position}}} | ||
| location={{{location}}} | | 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}}} | |||
}} | }} | ||
==Usage== | ==Usage== | ||
<pre> | <pre> | ||
{{Infobox character | {{Infobox character | ||
| name= | |name = | ||
| image= | |script = | ||
| | |people = | ||
| | |image = | ||
| | |caption = | ||
| | |pronun = | ||
| | |othernames = | ||
| location= | |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 = | |||
}} | }} | ||
</pre> | </pre><!-- | ||
== | 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" | ||
} | |||
}, | }, | ||
"description": "Create an infobox on character pages", | |||
"format": "block", | |||
"paramOrder": [ | "paramOrder": [ | ||
"name", | "name", | ||
"people", | |||
"image", | "image", | ||
"imageWidth", | "imageWidth", | ||
"imageHeight", | "imageHeight", | ||
"caption", | "caption", | ||
" | "othernames", | ||
" | "titles", | ||
" | "position", | ||
"location", | "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" | |||
] | ] | ||
} | } | ||
</templatedata | </templatedata></noinclude> | ||
Revision as of 10:38, 27 June 2026
| [[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
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | Name of the character
| String | required |
| People | people | no description
| String | suggested |
| 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 |
| othernames | othernames | no description | Unknown | optional |
| titles | titles | no description | Unknown | optional |
| position | position | no description | Unknown | optional |
| location | location | no description | Unknown | optional |
| affiliation | affiliation | no description | Unknown | optional |
| language | language | no description | Unknown | optional |
| birth | birth | no description | Unknown | optional |
| birthlocation | birthlocation | no description | Unknown | optional |
| death | death | no description | Unknown | optional |
| deathlocation | deathlocation | no description | Unknown | optional |
| age | age | no description | Unknown | optional |
| sailedwest | sailedwest | no description | Unknown | optional |
| sailedfrom | sailedfrom | no description | Unknown | optional |
| pronun | pronun | no description | Unknown | optional |
| notablefor | notablefor | no description | Unknown | optional |
| rule | rule | no description | Unknown | optional |
| house | house | no description | Unknown | optional |
| family | family | no description | Unknown | optional |
| parentage | parentage | no description | Unknown | optional |
| siblings | siblings | no description | Unknown | optional |
| spouse | spouse | no description | Unknown | optional |
| children | children | no description | Unknown | optional |
| gender | gender | no description | Unknown | optional |
| height | height | no description | Unknown | optional |
| hair | hair | no description | Unknown | optional |
| eyes | eyes | no description | Unknown | optional |
| clothing | clothing | no description | Unknown | optional |
| weapons | weapons | no description | Unknown | optional |
| steed | steed | no description | Unknown | optional |
| gallery | gallery | no description | Unknown | optional |
| audio | audio | no description | Unknown | optional |
| audiocaption | audiocaption | no description | Unknown | optional |