Jump to content

Template:Infobox: Difference between revisions

From Topicalballs Wiki
No edit summary
Tag: Manual revert
LBMapper12 (talk | contribs)
No edit summary
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div style="text-align:{{{textalign|left}}}">
<infobox layout="stacked" accent-color-source="themecolor" accent-color-text-source="textcolor">
<infobox layout="stacked" accent-color-source="themecolor" accent-color-text-source="textcolor" theme-source="theme">
<title source="name">
<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>
    <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>
    <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>
</title>
    <group>
<group>
         <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>
         <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>
     </group>
     </group>
Line 14: Line 13:
         <data source="Founder"><label>Founder:</label></data>
         <data source="Founder"><label>Founder:</label></data>
     <data source="Alias"><label>Aliases:</label></data>
     <data source="Alias"><label>Aliases:</label></data>
    <data source="Personality"><label>Personality:</label></data>
     <data source="Time of Exist"><label>Time of Exist:</label></data>
     <data source="Time of Exist"><label>Time of Exist:</label></data>
     <data source="TimeofExist"><label>Time of Exist:</label></data>
     <data source="TimeofExist"><label>Time of Exist:</label></data>
Line 28: Line 28:
         <data source="Mass"><label>Mass:</label></data>
         <data source="Mass"><label>Mass:</label></data>
         <data source="Satellites"><label>Satellites:</label></data>
         <data source="Satellites"><label>Satellites:</label></data>
     <data source="Gender"><label>Gender:</label><format>{{#switch:{{{Gender|}}}
     <data source="Gender"><label>Gender:</label></data>
|Female={{I|Female}} [[Female]]
    </group>
|Male={{I|Male}} [[Male]]}}</format></data>
</group>
     <group collapse="open">
     <group collapse="open">
     <header><center>Ideological Information</center></header>
     <header><center>Ideological Information</center></header>
Line 49: Line 47:
     <data source="Drink"><label>Favorite Drink:</label></data>
     <data source="Drink"><label>Favorite Drink:</label></data>
</group>
</group>
<group collapse="open">
<group layout="horizontal">
    <header><center>Historical Information</center></header>
    <header><center>Historical Information</center></header>
     <data source="Preceded"><label><div id="before"></div>Preceded By:</label></data>
     <data source="Preceded"><label><div id="before"></div>Preceded By:</label></data>
     <data source="Succeeded"><label><div id="after"></div>Succeeded By:</label></data>
     <data source="Succeeded"><label><div id="after"></div>Succeeded By:</label></data>
</group>
</group>
<group collapse="open">
<group>
    <header><center>Additional Information</center></header>
    <header><center>Additional Information</center></header>
     <data source="Bork"><label>Börk:</label></data>
     <data source="Bork"><label>Börk:</label></data>
     <data source="Song"><label>Song:</label></data>
     <data source="Song"><label>Song:</label></data>
</group>
</group>
     <group collapse="open">
     <group layout="normal">
    <header><center>Personal Information</center></header>
    <header><center>Personal Information</center></header>
     <data source="PersonName"><label>Name:</label></data>
     <data source="PersonName"><label>Name:</label></data>
Line 67: Line 65:
     <data source="Job"><label>Occupation:</label></data>
     <data source="Job"><label>Occupation:</label></data>
</group>
</group>
</infobox>
</infobox><noinclude>[[Category:Infoboxes]]<templatedata>
</div>
{
<noinclude>
"params": {
"Gender": {
"description": "The character's gender, either Male or Female."
},
"Name": {
"description": "The character's full name, along with its icons.",
"required": true
},
"NativeName": {
"description": "The character's full name, in their native language.",
"required": true
},
"onlypredecessor": {
"description": "The character's main predecessor.",
"required": true
},
"predicon": {
"description": "The icon of the character's main predecessor.",
"required": true
},
"onlysuccessor": {
"description": "The character's main successor."
},
"nexticon": {
"description": "The icon of the character's main successor."
},
"founded": {
"description": "The year the character is founded.",
"required": true
},
"ended": {
"description": "The year the character ended."
},
"Caption": {
"description": "Image's caption."
},
"image": {
"description": "The main infobox image, drawn by Heterodontosaurus.",
"suggested": true,
"type": "wiki-file-name",
"required": true
},
"Alias": {
"description": "Other names of the character."
},
"Personality": {
"description": "The character's personality."
},
"Succeeded": {
"description": "The character's successor(s)."
},
"Preceded": {
"description": "The character's predecessor(s)."
},
"textcolor": {
"description": "The colour of the title and header text in the infobox.",
"required": true
},
"themecolor": {
"description": "The colour of the title and header background in the infobox.",
"required": true
},
"Founder": {
"description": "The founder of the character. Formatted like (icon) (person) (birth-death)"
},
"Time of Exist": {
"description": "Time of existence of the character.",
"suggested": true,
"aliases": [
"TimeofExist"
]
},
"Government": {
"description": "The character’s government type. Preferably used on countries."
},
"Affiliation": {
"description": "The character’s affiliations, for countries it’s usually the organizations they are in"
},
"Languages": {
"description": "Languages spoken by the character. Primarily used for countries."
},
"Religions": {
"description": "Religions believed by the character. Primarily used for countries"
},
"Friends": {
"description": "The character’s friends/allies. Ideologies don’t use this parameter, they use Likes instead."
},
"Enemies": {
"description": "The character’s enemies. Ideologies don’t use this parameter, they use Dislikes instead."
},
"Likes": {
"description": "What the character likes, like food, hobbies, etc."
},
"Dislikes": {
"description": "What the character dislikes."
},
"Song": {
"description": "Songs relating to the character, linking to another section of this wiki where the lyrics are located."
},
"Capital": {
"description": "The character’s capital city. Primarily used for countries."
}
},
"paramOrder": [
"Name",
"NativeName",
"founded",
"onlypredecessor",
"predicon",
"ended",
"onlysuccessor",
"nexticon",
"image",
"Caption",
"Founder",
"Alias",
"Personality",
"Time of Exist",
"Government",
"Languages",
"Affiliation",
"Religions",
"Capital",
"Gender",
"Friends",
"Enemies",
"Likes",
"Dislikes",
"Preceded",
"Succeeded",
"Song",
"textcolor",
"themecolor"
],
"description": "The infobox you use for all the character pages. Warning: editing from this infobox in visual edit mode adds some unnecessary code that mess up the page. Make sure to remove it before you save."
}
</templatedata></noinclude>
<!-- COPY AND PASTE ME IN THE DESCRIPTION for countryballs
<!-- COPY AND PASTE ME IN THE DESCRIPTION for countryballs
{{CountryInfo
{{CountryInfo

Latest revision as of 10:46, 24 December 2024

The infobox you use for all the character pages. Warning: editing from this infobox in visual edit mode adds some unnecessary code that mess up the page. Make sure to remove it before you save.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
NameName

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

Unknownrequired
NativeNameNativeName

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

Unknownrequired
foundedfounded

The year the character is founded.

Unknownrequired
onlypredecessoronlypredecessor

The character's main predecessor.

Unknownrequired
prediconpredicon

The icon of the character's main predecessor.

Unknownrequired
endedended

The year the character ended.

Unknownoptional
onlysuccessoronlysuccessor

The character's main successor.

Unknownoptional
nexticonnexticon

The icon of the character's main successor.

Unknownoptional
imageimage

The main infobox image, drawn by Heterodontosaurus.

Filerequired
CaptionCaption

Image's caption.

Unknownoptional
FounderFounder

The founder of the character. Formatted like (icon) (person) (birth-death)

Unknownoptional
AliasAlias

Other names of the character.

Unknownoptional
PersonalityPersonality

The character's personality.

Unknownoptional
Time of ExistTime of Exist TimeofExist

Time of existence of the character.

Unknownsuggested
GovernmentGovernment

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

Unknownoptional
LanguagesLanguages

Languages spoken by the character. Primarily used for countries.

Unknownoptional
AffiliationAffiliation

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

Unknownoptional
ReligionsReligions

Religions believed by the character. Primarily used for countries

Unknownoptional
CapitalCapital

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

Unknownoptional
GenderGender

The character's gender, either Male or Female.

Unknownoptional
FriendsFriends

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

Unknownoptional
EnemiesEnemies

The character’s enemies. Ideologies don’t use this parameter, they use Dislikes instead.

Unknownoptional
LikesLikes

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

Unknownoptional
DislikesDislikes

What the character dislikes.

Unknownoptional
PrecededPreceded

The character's predecessor(s).

Unknownoptional
SucceededSucceeded

The character's successor(s).

Unknownoptional
SongSong

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

Unknownoptional
textcolortextcolor

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

Unknownrequired
themecolorthemecolor

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

Unknownrequired