Template:Infobox: Difference between revisions

From Heterodontosaurus Balls
No edit summary
Secret
 
(302 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<table class="infobox" style="float:right;text-align: left; width: 250px; font-size: 100%; border-radius:1px; border: 1px black solid; overflow:hidden;" >
<includeonly>{{#switch:{{{Gender|}}}|Female= [[Category:Females]]|Male= [[Category:Males]]}}
<tr>
</includeonly><infobox layout="stacked" accent-color-source="themecolor" accent-color-text-source="textcolor">
<th bgcolor=#67A19C class="infobox-title" colspan="2" style="text-align: center; width: 250px; font-size: 1em; "><b>{{{Name}}}</b></th >
<title source="name">
</tr>
    <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>
<td bgcolor=#67A19C class="infobox-subtitle" colspan="2" style="text-align: center; font-size:small;"><i><span>{{{NativeName}}}</span></i></td>
    <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>
</tr>
</title>
<tr>
<group>
<th bgcolor=#B3DBD8 class="infobox-subtitle" colspan="2" style="text-align: center; font-size:small;" >{{{YearExist}}}</th>
        <data source="founded"><format><div style="float:left; width:4em; height:1em">{{#if:{{{onlypredecessor|}}}|[[{{{onlypredecessor}}}|←]]&nbsp;{{#if:{{{predicon|}}}|[[File:{{{predicon}}}-icon.png|18x18px|link={{{onlypredecessor}}}]]|<nowiki />}}|[[#before|↓]]}}</div><div style="float:right; width:4em; height:1em">{{#if: {{{onlysuccessor|}}}|{{#if:{{{nexticon|}}}|&nbsp;&nbsp;&nbsp;[[File:{{{nexticon}}}-icon.png|18x18px|link={{{onlysuccessor}}}]]|<nowiki />}}&nbsp;[[{{{onlysuccessor|}}}|→]]|{{#if:{{{successor|}}}|[[#after|↓]]|&nbsp;}}}}</div><center><span style="font-size: 125%; font-weight: bold; line-height:100%;>{{#if:{{{founded|}}}|{{{founded}}}|{{#if:{{{ended|}}}|<nowiki />|''Unknown lifespan''}}}}{{#if:{{{founded|}}}{{{ended|}}}|&nbsp;–&nbsp;|<nowiki />}}{{#if:{{{ended|}}}|{{{ended}}}|{{#if:{{{founded|}}}|Present|d.&nbsp;{{{ended}}}}}}}</span></format></data>
</tr>
    </group>
<tr>
<image source="image"><caption source="Caption"><format><center>{{{Caption}}}</center></format></caption></image>
<tr>
    <data source="gallery"></data>
<td bgcolor=#eef7f6 class="infobox-image" colspan="2" "text-align: center;">{{{image}}}</td>
<group layout="stacked">
</tr>
    <header><center>'''General Information'''</center></header>
<th <td bgcolor=#eef7f6 class="infobox-subtitle" colspan="2" style="text-align: center; font-size:small;"><i><span>{{{Caption}}}</span></i></td></th>
        <data source="Founder"><label>Founder:</label></data>
<tr>
    <data source="Alias"><label>Aliases:</label></data>
<th class="infobox-subtitle" colspan="2" style="text-align: center; min-width:15em;" bgcolor=#67A19C>General Infomation</th>
    <data source="Time of Exist"><label>Time of Exist:</label></data>
</tr>
    <data source="TimeofExist"><label>Time of Exist:</label></data>
<tr>
    <data source="Time"><label>Time of Exist:</label></data>
<td bgcolor=#B3DBD8 class="infoboxtd1strow">'''Alias''':</td>
    <data source="Government"><label>Government:</label></data>
<td bgcolor=#B3DBD8>{{{Alias}}}</td>
    <data source="Population"><label>Population:</label></data>
</tr>
    <data source="Land"><label>Territory Size:</label></data>
<tr>
        <data source="Languages"><label>Languages:</label></data>
<td class="infoboxtd1strow" bgcolor=#B3DBD8>'''Time of Exist''':</td>
        <data source="Scripts"><label>Scripts:</label></data>
<td bgcolor=#B3DBD8>{{{TimeofExist}}}</td>
        <data source="Ethnicity"><label>Ethnicity:</label></data>
</tr>
        <data source="Affiliation"><label>Affiliation:</label></data>
<tr>
    <data source="Religions"><label>Religions:</label></data>
<td bgcolor=#B3DBD8 class="infoboxtd1strow">'''Government''':</td>
        <data source="Capital"><label>Capital City:</label></data>
<td bgcolor=#B3DBD8>{{{Government}}}</td>
        <data source="Alignments"><label>Alignments:</label></data>
</tr>
        <data source="Collectives"><label>Collectives:</label></data>
<tr>
        <data source="Place of Origin"><label>Place of Origin:</label></data>
<td bgcolor=#B3DBD8 class="infoboxtd1strow">'''Languages''':</td>
        <data source="Origin"><label>Place of Origin:</label></data>
<td bgcolor=#B3DBD8>{{{Languages}}}</td>
        <data source="Achievements"><label>Greatest Achievements:</label></data>
</tr>
        <data source="Diameter"><label>Diameter:</label></data>
<tr>
        <data source="Mass"><label>Mass:</label></data>
<td bgcolor=#B3DBD8 class="infoboxtd1strow">'''Affiliation''':</td>
        <data source="Satellites"><label>Satellites:</label></data>
<td bgcolor=#B3DBD8>{{{Affiliation}}}</td>
    <data source="Other Gender"><label>Gender:</label></data>
</tr>
    <data source="Gender"><label>Gender:</label><format>{{#switch:{{{Gender|}}}
<tr>
|Female={{I|Female}} [[Female]]
<td class="infoboxtd1strow" bgcolor=#B3DBD8>'''Religions''':</td>
|Male={{I|Male}} [[Male]]}}</format></data>
<td bgcolor=#B3DBD8>{{{Religions}}}</td>
        <data source="Platforms"><label>Available platforms:</label></data>
</tr>
</group>
<th class="infobox-subtitle" colspan="2" style="text-align: center; min-width:15em;" bgcolor=#67A19C>Relations & Opinions</th>
    <group>
</tr>
    <header><center>'''Doctrinal Information'''</center></header>
<tr>
    <data source="Influenced By"><label>Influenced By:</label></data>
<td bgcolor=#B3DBD8 class="infoboxtd1strow">'''Friends''':</td>
    <data source="Influenced"><label>Influenced:</label></data>
<td bgcolor=#B3DBD8>{{{Friends}}}</td>
    <data source="Variations"><label>Variations:</label></data>
</tr>
    <data source="Notable People"><label>Notable People:</label></data>
<tr>
    <data source="People"><label>Notable People:</label></data>
<td class="infoboxtd1strow" bgcolor=#B3DBD8>'''Enemies''':</td>
    <data source="Notable Examples"><label>Notable Examples:</label></data>
<td bgcolor=#B3DBD8>{{{Enemies}}}</td>
    <data source="Examples"><label>Notable Examples:</label></data>
</tr>
</group>
<tr>
    <group>
<td bgcolor=#B3DBD8 class="infoboxtd1strow">'''Likes''':</td>
    <header><center>'''Relations and Opinions'''</center></header>
<td bgcolor=#B3DBD8><span class="species">{{{Likes}}}</span></td>
    <data source="Friends"><label>Friends:</label></data>
</tr>
    <data source="Enemies"><label>Enemies:</label></data>
<tr>
    <data source="Likes"><label>Likes:</label></data>
<td class="infoboxtd1strow" bgcolor=#B3DBD8>'''Dislikes''':</td>
    <data source="Dislikes"><label>Dislikes:</label></data>
<td bgcolor=#B3DBD8>{{{Dislikes}}}</td>
</group>
</tr>
<group layout="horizontal">
<th class="infobox-subtitle" colspan="2" style="text-align: center; min-width:15em;" bgcolor=#67A19C>Historical Infomation</th>
    <header><center>'''Historical Information'''</center></header>
</tr>
    <data source="Preceded"><label><div id="before"></div>Preceded By:</label></data>
<td class="infoboxtd1strow" bgcolor=#B3DBD8>'''Preceded By''':</td>
    <data source="Succeeded"><label><div id="after"></div>Succeeded By:</label></data>
<td bgcolor=#B3DBD8>{{{Preceded}}}</td>
</group>
<tr>
<group>
<td class="infoboxtd1strow" bgcolor=#B3DBD8>'''Succeeded By''':</td>
    <header><center>'''Additional Information'''</center></header>
<td bgcolor=#B3DBD8>{{{Succeeded}}}</td>
    <data source="Bork"><label>Börk:</label></data>
<tr>
    <data source="Food"><label>Food/Drink:</label></data>
</table>
    <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.


<noinclude>
==Syntax==
<!-- COPY AND PASTE ME IN THE DESCRIPTION
Add and remove values based on the character's nature. Below is an average infobox for a country.
{{CountryInfo
<pre>{{Infobox
|Name           =
|Name=
|NativeName     =
|NativeName=
|YearExist      =
|founded=
|image           =
|predicon=
|Caption         =
|onlypredecessor=
|Alias           =
|ended=
|TimeofExist    =
|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

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
NameName

The character's full name, along with its icons.

Contentrequired
NativeNameNativeName

The character's full name, in their native language.

Contentrequired
foundedfounded

The year the character is founded.

Daterequired
onlypredecessoronlypredecessor

The character's main predecessor.

Stringrequired
prediconpredicon

The icon of the character's main predecessor.

Filerequired
endedended

The year the character ended.

Dateoptional
onlysuccessoronlysuccessor

The character's main successor.

Stringoptional
nexticonnexticon

The icon of the character's main successor.

Fileoptional
imageimage

The main infobox image, drawn by Heterodontosaurus.

Filerequired
CaptionCaption

Image's caption.

Unknownoptional
FounderFounder

The founder of the character (primarily used for countries). Formatted like (icon) (person) (birth-death)

Contentoptional
AliasAlias

Other names of the character, nicknames, or what other characters call the character.

Contentoptional
TimeTime TimeofExist Time of Exist

Time of existence of the character.

Datesuggested
GovernmentGovernment

The character's government type. Preferably used on countries.

Contentoptional
PopulationPopulation

The current and historical population of a character (primarily countries, provinces, etc.).

Contentoptional
LandLand

The land area of the country/geopolitical character.

Contentoptional
LanguagesLanguages

Languages spoken by the character. Primarily used for countries.

Contentoptional
AffiliationAffiliation

The character's affiliations, for countries it's usually the organizations they are in

Contentoptional
ReligionsReligions

Religions believed by the character. Primarily used for countries

Contentoptional
CapitalCapital

The character's capital city. Primarily used for countries.

Contentoptional
GenderGender

The character's gender, either Male or Female.

Stringsuggested
Other GenderOther Gender

If the “gender” section requires more clarification, like the case with Chris Chan.

Contentoptional
DiameterDiameter

The diameter of space characters.

Contentoptional
MassMass

The mass of space characters.

Contentoptional
SatellitesSatellites

The satellites of space characters.

Contentoptional
AlignmentsAlignments

The alignments of ideological/philosophical characters.

Contentoptional
CollectivesCollectives

The collectives of philosophical characters.

Contentoptional
OriginOrigin

The place of origin for ideological and philosophical characters.

Contentoptional
Influenced ByInfluenced By

The ideologies/philosophies that influenced the ideology/philosophy character of the page.

Contentoptional
InfluencedInfluenced

The ideologies/philosophies that the ideology/philosophy character of the page influenced.

Contentoptional
VariationsVariations

Variations of the ideology/philosophy character, only applies to canon ideologies.

Contentoptional
People People

The ideology/philosophy character's notable practitioners.

Contentoptional
ExamplesExamples

The ideology/philosophy character's notable examples (countries, organizations, etc.)

Contentoptional
FriendsFriends

The character's friends/allies. Ideologies/philosophies don't use this parameter, they use Likes instead.

Contentoptional
EnemiesEnemies

The character's enemies. Ideologies/philosophies don't use this parameter, they use Dislikes instead.

Contentoptional
LikesLikes

What the character likes, like food, hobbies, etc.

Contentoptional
DislikesDislikes

Things the character dislikes.

Contentoptional
PrecededPreceded

The character's predecessor(s).

Contentoptional
SucceededSucceeded

The character's successor(s).

Contentoptional
SongSong

Songs relating to the character, linking to another section of this wiki where the lyrics are located.

Contentoptional
textcolortextcolor

The colour of the title and header text in the infobox.

Numbersuggested
themecolorthemecolor

The colour of the title and header background in the infobox.

Numberrequired