Template:Infobox: Difference between revisions
No edit summary |
Secret |
||
| (302 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
< | <includeonly>{{#switch:{{{Gender|}}}|Female= [[Category:Females]]|Male= [[Category:Males]]}} | ||
< | </includeonly><infobox layout="stacked" accent-color-source="themecolor" accent-color-text-source="textcolor"> | ||
< | <title source="name"> | ||
</ | <default><span style="font-size:{{#switch:{{{font-size|}}}|big=16px|medium=14px|small=12px|#default=16px}}; line-height:120% !important; text-align: center; display: block; padding-top:2px"><big>'''{{{Name}}}'''</big><br/><span style="font-size:80%;">{{{NativeName}}}<br/></span></span></default> | ||
< | <format><span style="font-size:{{#switch:{{{font-size|}}}|big=16px|medium=14px|small=12px|#default=16px}}; line-height:120% !important; text-align: center; display: block; padding-top:2px"><big>'''{{{Name}}}'''</big><br/><span style="font-size:80%; ">{{{NativeName}}}<br/></span></span></format> | ||
</ | </title> | ||
< | <group> | ||
< | <data source="founded"><format><div style="float:left; width:4em; height:1em">{{#if:{{{onlypredecessor|}}}|[[{{{onlypredecessor}}}|←]] {{#if:{{{predicon|}}}|[[File:{{{predicon}}}-icon.png|18x18px|link={{{onlypredecessor}}}]]|<nowiki />}}|[[#before|↓]]}}</div><div style="float:right; width:4em; height:1em">{{#if: {{{onlysuccessor|}}}|{{#if:{{{nexticon|}}}| [[File:{{{nexticon}}}-icon.png|18x18px|link={{{onlysuccessor}}}]]|<nowiki />}} [[{{{onlysuccessor|}}}|→]]|{{#if:{{{successor|}}}|[[#after|↓]]| }}}}</div><center><span style="font-size: 125%; font-weight: bold; line-height:100%;>{{#if:{{{founded|}}}|{{{founded}}}|{{#if:{{{ended|}}}|<nowiki />|''Unknown lifespan''}}}}{{#if:{{{founded|}}}{{{ended|}}}| – |<nowiki />}}{{#if:{{{ended|}}}|{{{ended}}}|{{#if:{{{founded|}}}|Present|d. {{{ended}}}}}}}</span></format></data> | ||
</ | </group> | ||
< | <image source="image"><caption source="Caption"><format><center>{{{Caption}}}</center></format></caption></image> | ||
< | <data source="gallery"></data> | ||
< | <group layout="stacked"> | ||
</ | <header><center>'''General Information'''</center></header> | ||
< | <data source="Founder"><label>Founder:</label></data> | ||
< | <data source="Alias"><label>Aliases:</label></data> | ||
< | <data source="Time of Exist"><label>Time of Exist:</label></data> | ||
</ | <data source="TimeofExist"><label>Time of Exist:</label></data> | ||
< | <data source="Time"><label>Time of Exist:</label></data> | ||
< | <data source="Government"><label>Government:</label></data> | ||
< | <data source="Population"><label>Population:</label></data> | ||
</ | <data source="Land"><label>Territory Size:</label></data> | ||
< | <data source="Languages"><label>Languages:</label></data> | ||
< | <data source="Scripts"><label>Scripts:</label></data> | ||
< | <data source="Ethnicity"><label>Ethnicity:</label></data> | ||
</ | <data source="Affiliation"><label>Affiliation:</label></data> | ||
< | <data source="Religions"><label>Religions:</label></data> | ||
< | <data source="Capital"><label>Capital City:</label></data> | ||
< | <data source="Alignments"><label>Alignments:</label></data> | ||
</ | <data source="Collectives"><label>Collectives:</label></data> | ||
< | <data source="Place of Origin"><label>Place of Origin:</label></data> | ||
< | <data source="Origin"><label>Place of Origin:</label></data> | ||
< | <data source="Achievements"><label>Greatest Achievements:</label></data> | ||
</ | <data source="Diameter"><label>Diameter:</label></data> | ||
< | <data source="Mass"><label>Mass:</label></data> | ||
< | <data source="Satellites"><label>Satellites:</label></data> | ||
< | <data source="Other Gender"><label>Gender:</label></data> | ||
</ | <data source="Gender"><label>Gender:</label><format>{{#switch:{{{Gender|}}} | ||
< | |Female={{I|Female}} [[Female]] | ||
< | |Male={{I|Male}} [[Male]]}}</format></data> | ||
< | <data source="Platforms"><label>Available platforms:</label></data> | ||
</ | </group> | ||
< | <group> | ||
</ | <header><center>'''Doctrinal Information'''</center></header> | ||
< | <data source="Influenced By"><label>Influenced By:</label></data> | ||
< | <data source="Influenced"><label>Influenced:</label></data> | ||
< | <data source="Variations"><label>Variations:</label></data> | ||
</ | <data source="Notable People"><label>Notable People:</label></data> | ||
< | <data source="People"><label>Notable People:</label></data> | ||
< | <data source="Notable Examples"><label>Notable Examples:</label></data> | ||
< | <data source="Examples"><label>Notable Examples:</label></data> | ||
</ | </group> | ||
< | <group> | ||
< | <header><center>'''Relations and Opinions'''</center></header> | ||
< | <data source="Friends"><label>Friends:</label></data> | ||
</ | <data source="Enemies"><label>Enemies:</label></data> | ||
< | <data source="Likes"><label>Likes:</label></data> | ||
< | <data source="Dislikes"><label>Dislikes:</label></data> | ||
< | </group> | ||
</ | <group layout="horizontal"> | ||
< | <header><center>'''Historical Information'''</center></header> | ||
</ | <data source="Preceded"><label><div id="before"></div>Preceded By:</label></data> | ||
< | <data source="Succeeded"><label><div id="after"></div>Succeeded By:</label></data> | ||
< | </group> | ||
< | <group> | ||
< | <header><center>'''Additional Information'''</center></header> | ||
< | <data source="Bork"><label>Börk:</label></data> | ||
< | <data source="Food"><label>Food/Drink:</label></data> | ||
</ | <data source="Song"><label>Songs:</label></data> | ||
</group> | |||
<group layout="normal"> | |||
<header><center>'''Personal Information'''</center></header> | |||
<data source="PersonName"><label>Name:</label></data> | |||
<data source="Person"><label>Name:</label></data> | |||
<data source="Born"><label>Date of Birth:</label></data> | |||
<data source="Death"><label>Date of Death:</label></data> | |||
<data source="Family"><label>Family Members:</label></data> | |||
<data source="Job"><label>Occupation:</label></data> | |||
</group> | |||
<group layout="vertical"> | |||
<header><center>'''Event Information'''</center></header> | |||
<data source="Event"><label><center><big>{{{Event Name}}}</big></center></label></data> | |||
<data source="Date"><label>Date</label></data> | |||
<data source="Location"><label>Location</label></data> | |||
<data source="Type"><label>Type</label></data> | |||
<data source="Causes"><label>Causes</label></data> | |||
<group layout="horizontal" show="incomplete"> | |||
<data source="Side 1"><label>Participants</label></data> | |||
<data source="Side 2"><label>Participants</label></data> | |||
</group> | |||
<group layout="horizontal" show="incomplete"> | |||
<data source="Leaders 1"></data> | |||
<data source="Leaders 2"></data> | |||
</group> | |||
<group layout="horizontal" show="incomplete"> | |||
<data source="Weapon 1"><label>Weapons</label></data> | |||
<data source="Weapon 2"><label>Weapons</label></data> | |||
</group> | |||
<group layout="horizontal" show="incomplete"> | |||
<data source="Deaths 1"><label>Causalities</label></data> | |||
<data source="Deaths 2"><label>Causalities</label></data> | |||
</group></group> | |||
</infobox><noinclude>The '''Infobox''' [[:Category:Templates|template]] is the infobox used on all [[(List) of Characters|character]] pages. It has many parameters and is all-encompassing. | |||
< | ==Syntax== | ||
Add and remove values based on the character's nature. Below is an average infobox for a country. | |||
{{ | <pre>{{Infobox | ||
|Name | |Name= | ||
|NativeName | |NativeName= | ||
| | |founded= | ||
|image | |predicon= | ||
|Caption | |onlypredecessor= | ||
|Alias | |ended= | ||
| | |nexticon= | ||
|Government | |onlysuccessor= | ||
|Languages | |image= | ||
|Affiliation | |Caption= | ||
|Religions | |Founder= | ||
|Friends | |Alias= | ||
|Enemies | |Time= | ||
|Likes | |Government= | ||
|Dislikes | |Languages= | ||
|Preceded | |Affiliation= | ||
|Succeeded | |Religions= | ||
}} | |Capital= | ||
|Gender= | |||
|Friends= | |||
|Enemies= | |||
|Likes= | |||
|Dislikes= | |||
|Preceded= | |||
|Succeeded= | |||
|Food= | |||
|Song= | |||
|themecolor= | |||
|textcolor= | |||
}}</pre> | |||
Additional values for space entities such as planets: | |||
<pre> | |||
|Diameter= | |||
|Mass= | |||
|Satellites= | |||
</pre> | |||
Additional values for ideologies/philosophies: | |||
<pre> | |||
|Alignments= | |||
|Collectives= | |||
|Achievements= | |||
|Origin= | |||
|Influenced By= | |||
|Influenced= | |||
|Variations= | |||
|People= | |||
|Examples= | |||
</pre> | |||
Additional values if an individual is represented: | |||
<pre> | |||
|Person= | |||
|Born= | |||
|Death= | |||
|Family= | |||
|Job= | |||
</pre> | |||
Additional values if an event is represented: | |||
<pre> | |||
|Event= | |||
|Date= | |||
|Location= | |||
|Type= | |||
|Side 1= | |||
|Leaders 1= | |||
|Weapon 1= | |||
|Deaths 1= | |||
|Side 2= | |||
|Leaders 2= | |||
|Weapon 2= | |||
|Deaths 2= | |||
</pre> | |||
==Template Data== | |||
<templatedata> | |||
{ | |||
"params": { | |||
"Gender": { | |||
"description": "The character's gender, either Male or Female.", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"Name": { | |||
"description": "The character's full name, along with its icons.", | |||
"required": true, | |||
"type": "content" | |||
}, | |||
"NativeName": { | |||
"description": "The character's full name, in their native language.", | |||
"required": true, | |||
"type": "content" | |||
}, | |||
"onlypredecessor": { | |||
"description": "The character's main predecessor.", | |||
"required": true, | |||
"type": "string" | |||
}, | |||
"predicon": { | |||
"description": "The icon of the character's main predecessor.", | |||
"required": true, | |||
"type": "wiki-file-name" | |||
}, | |||
"onlysuccessor": { | |||
"description": "The character's main successor.", | |||
"type": "string" | |||
}, | |||
"nexticon": { | |||
"description": "The icon of the character's main successor.", | |||
"type": "wiki-file-name" | |||
}, | |||
"founded": { | |||
"description": "The year the character is founded.", | |||
"required": true, | |||
"type": "date" | |||
}, | |||
"ended": { | |||
"description": "The year the character ended.", | |||
"type": "date" | |||
}, | |||
"Caption": { | |||
"description": "Image's caption." | |||
}, | |||
"image": { | |||
"description": "The main infobox image, drawn by Heterodontosaurus.", | |||
"type": "wiki-file-name", | |||
"required": true | |||
}, | |||
"Alias": { | |||
"description": "Other names of the character, nicknames, or what other characters call the character.", | |||
"type": "content" | |||
}, | |||
"Succeeded": { | |||
"description": "The character's successor(s).", | |||
"type": "content" | |||
}, | |||
"Preceded": { | |||
"description": "The character's predecessor(s).", | |||
"type": "content" | |||
}, | |||
"textcolor": { | |||
"description": "The colour of the title and header text in the infobox.", | |||
"type": "number", | |||
"suggested": true | |||
}, | |||
"themecolor": { | |||
"description": "The colour of the title and header background in the infobox.", | |||
"required": true, | |||
"type": "number" | |||
}, | |||
"Founder": { | |||
"description": "The founder of the character (primarily used for countries). Formatted like (icon) (person) (birth-death)", | |||
"type": "content" | |||
}, | |||
"Government": { | |||
"description": "The character's government type. Preferably used on countries.", | |||
"type": "content" | |||
}, | |||
"Affiliation": { | |||
"description": "The character's affiliations, for countries it's usually the organizations they are in", | |||
"type": "content" | |||
}, | |||
"Languages": { | |||
"description": "Languages spoken by the character. Primarily used for countries.", | |||
"type": "content" | |||
}, | |||
"Religions": { | |||
"description": "Religions believed by the character. Primarily used for countries", | |||
"type": "content" | |||
}, | |||
"Friends": { | |||
"description": "The character's friends/allies. Ideologies/philosophies don't use this parameter, they use Likes instead.", | |||
"type": "content" | |||
}, | |||
"Enemies": { | |||
"description": "The character's enemies. Ideologies/philosophies don't use this parameter, they use Dislikes instead.", | |||
"type": "content" | |||
}, | |||
"Likes": { | |||
"description": "What the character likes, like food, hobbies, etc.", | |||
"type": "content" | |||
}, | |||
"Dislikes": { | |||
"description": "Things the character dislikes.", | |||
"type": "content" | |||
}, | |||
"Song": { | |||
"description": "Songs relating to the character, linking to another section of this wiki where the lyrics are located.", | |||
"type": "content" | |||
}, | |||
"Capital": { | |||
"description": "The character's capital city. Primarily used for countries.", | |||
"type": "content" | |||
}, | |||
"Other Gender": { | |||
"description": "If the “gender” section requires more clarification, like the case with Chris Chan.", | |||
"type": "content" | |||
}, | |||
"Land": { | |||
"description": "The land area of the country/geopolitical character.", | |||
"type": "content" | |||
}, | |||
"Population": { | |||
"description": "The current and historical population of a character (primarily countries, provinces, etc.).", | |||
"type": "content" | |||
}, | |||
"Alignments": { | |||
"description": "The alignments of ideological/philosophical characters.", | |||
"type": "content" | |||
}, | |||
"Diameter": { | |||
"description": "The diameter of space characters.", | |||
"type": "content" | |||
}, | |||
"Mass": { | |||
"description": "The mass of space characters.", | |||
"type": "content" | |||
}, | |||
"Satellites": { | |||
"description": "The satellites of space characters.", | |||
"type": "content" | |||
}, | |||
"Influenced By": { | |||
"description": "The ideologies/philosophies that influenced the ideology/philosophy character of the page.", | |||
"type": "content" | |||
}, | |||
"Influenced": { | |||
"description": "The ideologies/philosophies that the ideology/philosophy character of the page influenced.", | |||
"type": "content" | |||
}, | |||
"Variations": { | |||
"description": "Variations of the ideology/philosophy character, only applies to canon ideologies.", | |||
"type": "content" | |||
}, | |||
"Time": { | |||
"aliases": [ | |||
"TimeofExist", | |||
"Time of Exist" | |||
], | |||
"description": "Time of existence of the character.", | |||
"type": "date", | |||
"suggested": true | |||
}, | |||
"Collectives": { | |||
"description": "The collectives of philosophical characters.", | |||
"type": "content" | |||
}, | |||
"Origin": { | |||
"description": "The place of origin for ideological and philosophical characters.", | |||
"type": "content" | |||
}, | |||
" People": { | |||
"description": "The ideology/philosophy character's notable practitioners.", | |||
"type": "content" | |||
}, | |||
"Examples": { | |||
"description": "The ideology/philosophy character's notable examples (countries, organizations, etc.)", | |||
"type": "content" | |||
} | |||
}, | |||
"paramOrder": [ | |||
"Name", | |||
"NativeName", | |||
"founded", | |||
"onlypredecessor", | |||
"predicon", | |||
"ended", | |||
"onlysuccessor", | |||
"nexticon", | |||
"image", | |||
"Caption", | |||
"Founder", | |||
"Alias", | |||
"Time", | |||
"Government", | |||
"Population", | |||
"Land", | |||
"Languages", | |||
"Affiliation", | |||
"Religions", | |||
"Capital", | |||
"Gender", | |||
"Other Gender", | |||
"Diameter", | |||
"Mass", | |||
"Satellites", | |||
"Alignments", | |||
"Collectives", | |||
"Origin", | |||
"Influenced By", | |||
"Influenced", | |||
"Variations", | |||
" People", | |||
"Examples", | |||
"Friends", | |||
"Enemies", | |||
"Likes", | |||
"Dislikes", | |||
"Preceded", | |||
"Succeeded", | |||
"Song", | |||
"textcolor", | |||
"themecolor" | |||
], | |||
"description": " " | |||
} | |||
</templatedata>[[Category:Infoboxes]]</noinclude> | |||
Latest revision as of 20:00, 24 May 2026
The Infobox template is the infobox used on all character pages. It has many parameters and is all-encompassing.
Syntax
Add and remove values based on the character's nature. Below is an average infobox for a country.
{{Infobox
|Name=
|NativeName=
|founded=
|predicon=
|onlypredecessor=
|ended=
|nexticon=
|onlysuccessor=
|image=
|Caption=
|Founder=
|Alias=
|Time=
|Government=
|Languages=
|Affiliation=
|Religions=
|Capital=
|Gender=
|Friends=
|Enemies=
|Likes=
|Dislikes=
|Preceded=
|Succeeded=
|Food=
|Song=
|themecolor=
|textcolor=
}}
Additional values for space entities such as planets:
|Diameter= |Mass= |Satellites=
Additional values for ideologies/philosophies:
|Alignments= |Collectives= |Achievements= |Origin= |Influenced By= |Influenced= |Variations= |People= |Examples=
Additional values if an individual is represented:
|Person= |Born= |Death= |Family= |Job=
Additional values if an event is represented:
|Event= |Date= |Location= |Type= |Side 1= |Leaders 1= |Weapon 1= |Deaths 1= |Side 2= |Leaders 2= |Weapon 2= |Deaths 2=
Template Data
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | Name | The character's full name, along with its icons. | Content | required |
| NativeName | NativeName | The character's full name, in their native language. | Content | required |
| founded | founded | The year the character is founded. | Date | required |
| onlypredecessor | onlypredecessor | The character's main predecessor. | String | required |
| predicon | predicon | The icon of the character's main predecessor. | File | required |
| ended | ended | The year the character ended. | Date | optional |
| onlysuccessor | onlysuccessor | The character's main successor. | String | optional |
| nexticon | nexticon | The icon of the character's main successor. | File | optional |
| image | image | The main infobox image, drawn by Heterodontosaurus. | File | required |
| Caption | Caption | Image's caption. | Unknown | optional |
| Founder | Founder | The founder of the character (primarily used for countries). Formatted like (icon) (person) (birth-death) | Content | optional |
| Alias | Alias | Other names of the character, nicknames, or what other characters call the character. | Content | optional |
| Time | Time TimeofExist Time of Exist | Time of existence of the character. | Date | suggested |
| Government | Government | The character's government type. Preferably used on countries. | Content | optional |
| Population | Population | The current and historical population of a character (primarily countries, provinces, etc.). | Content | optional |
| Land | Land | The land area of the country/geopolitical character. | Content | optional |
| Languages | Languages | Languages spoken by the character. Primarily used for countries. | Content | optional |
| Affiliation | Affiliation | The character's affiliations, for countries it's usually the organizations they are in | Content | optional |
| Religions | Religions | Religions believed by the character. Primarily used for countries | Content | optional |
| Capital | Capital | The character's capital city. Primarily used for countries. | Content | optional |
| Gender | Gender | The character's gender, either Male or Female. | String | suggested |
| Other Gender | Other Gender | If the “gender” section requires more clarification, like the case with Chris Chan. | Content | optional |
| Diameter | Diameter | The diameter of space characters. | Content | optional |
| Mass | Mass | The mass of space characters. | Content | optional |
| Satellites | Satellites | The satellites of space characters. | Content | optional |
| Alignments | Alignments | The alignments of ideological/philosophical characters. | Content | optional |
| Collectives | Collectives | The collectives of philosophical characters. | Content | optional |
| Origin | Origin | The place of origin for ideological and philosophical characters. | Content | optional |
| Influenced By | Influenced By | The ideologies/philosophies that influenced the ideology/philosophy character of the page. | Content | optional |
| Influenced | Influenced | The ideologies/philosophies that the ideology/philosophy character of the page influenced. | Content | optional |
| Variations | Variations | Variations of the ideology/philosophy character, only applies to canon ideologies. | Content | optional |
| People | People | The ideology/philosophy character's notable practitioners. | Content | optional |
| Examples | Examples | The ideology/philosophy character's notable examples (countries, organizations, etc.) | Content | optional |
| Friends | Friends | The character's friends/allies. Ideologies/philosophies don't use this parameter, they use Likes instead. | Content | optional |
| Enemies | Enemies | The character's enemies. Ideologies/philosophies don't use this parameter, they use Dislikes instead. | Content | optional |
| Likes | Likes | What the character likes, like food, hobbies, etc. | Content | optional |
| Dislikes | Dislikes | Things the character dislikes. | Content | optional |
| Preceded | Preceded | The character's predecessor(s). | Content | optional |
| Succeeded | Succeeded | The character's successor(s). | Content | optional |
| Song | Song | Songs relating to the character, linking to another section of this wiki where the lyrics are located. | Content | optional |
| textcolor | textcolor | The colour of the title and header text in the infobox. | Number | suggested |
| themecolor | themecolor | The colour of the title and header background in the infobox. | Number | required |
