Template:Nation: Difference between revisions

From Kerbal Powers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(15 intermediate revisions by 2 users not shown)
Line 2: Line 2:
   
 
<includeonly>{{Infobox/begin}}
 
<includeonly>{{Infobox/begin}}
{{Infobox/Header|title={{{nation}}}|subtitle={{{localized_name}}}}}
+
{{Infobox/Header|title={{#if:{{{full_name|}}}|{{{full_name|}}}|{{PAGENAME}}}}|subtitle={{#if:{{{localized_name|}}}|{{{localized_name|}}}|}}}}
{{Infobox/Illustration|file=[[File:{{{flag}}}]]|caption={{{flagdesc|}}}}}
+
{{Infobox/Illustration|file={{#if:{{{flag|}}}|[[File:{{{flag}}}]]|}}|caption={{{flagdesc|}}}}}
 
{{Infobox/Item|key=Motto|value={{{motto|}}}}}
 
{{Infobox/Item|key=Motto|value={{{motto|}}}}}
{{Infobox/Item|key=Full name|value={{{full_name}}}}}
+
{{Infobox/Item|key=Common Name|value={{{nation|}}}}}
 
{{Infobox/Item|key=Anthem|value={{{anthem|}}}}}
 
{{Infobox/Item|key=Anthem|value={{{anthem|}}}}}
{{Infobox/Illustration|file=[[File:{{{map}}}|400px]]|caption={{{mapdesc|}}}}}
+
{{Infobox/Sound Item|value={{{anthem_MP3|}}}}}
{{Infobox/Item|key=Denonym|value={{{denonym|}}}}}
+
{{Infobox/Illustration|file={{#if:{{{map|}}}|[[File:{{{map}}}]]|}}|caption={{{mapdesc|}}}}}
{{Infobox/Item|key=Official languages|value={{{languages}}}}}
+
{{Infobox/Item|key=Demonym|value={{{denonym|}}}}}
{{Infobox/Item|key=Currency|value={{{currency}}}}}
+
{{Infobox/Item|key=Official languages|value={{{languages|}}}}}
 
{{Infobox/Item|key=[[Currency]]|value={{{currency|}}}}}
 
{{Infobox/SectionHeader|section=Politics}}
 
{{Infobox/SectionHeader|section=Politics}}
{{Infobox/Item|key=Capital|value={{{capital|}}}}}
+
{{Infobox/Item|key=Capital|value={{{capital}}}}}
{{Infobox/Item|key=Government|value={{{government}}}}}
+
{{Infobox/Item|key=Government|value={{{government|}}}}}
 
{{Infobox/Item|key=Foundation|value={{{foundation}}}}}
 
{{Infobox/Item|key=Foundation|value={{{foundation}}}}}
{{Infobox/Item|key={{{leader_title|Leader}}}|value={{{leader}}}}}
+
{{Infobox/Item|key={{#if:={{{leader_title|}}}|{{{leader_title|}}}|Leader}}|value={{{leader|}}}}}
{{Infobox/Item|key={{{pm_title|Prime Minister}}}|value={{{pm_name|}}}}}
 
 
{{Infobox/Item|key=Preceded by|value={{{predecessor|}}}}}
 
{{Infobox/Item|key=Preceded by|value={{{predecessor|}}}}}
 
{{Infobox/Item|key=Followed by|value={{{successor|}}}}}
 
{{Infobox/Item|key=Followed by|value={{{successor|}}}}}
 
{{Infobox/SectionHeader|section=Demography}}
 
{{Infobox/SectionHeader|section=Demography}}
{{Infobox/Item|key=Ethnicities|value={{{ethnicity}}}}}
+
{{Infobox/Item|key=Ethnicities|value={{{ethnicity|}}}}}
{{Infobox/Item|key=Population|value={{{population}}}}}
+
{{Infobox/Item|key=Population|value={{{population|}}}}}
{{Infobox/Item|key=Area|value={{{area|}}}}}
+
{{Infobox/Item|key=Area|value={{#if:{{{area|}}}|{{{area}}} km²|}}}}
 
{{Infobox/end}}</includeonly>
 
{{Infobox/end}}</includeonly>
   
 
<noinclude>
 
<noinclude>
{{Infobox/begin}}
+
{{Nation}}
  +
{{Infobox/Header|title={{{nation}}}|subtitle={{{localized_name}}}}}
 
  +
{{Nation
{{Infobox/Illustration|file=[[File:KP dark.png]]|caption={{{flagdesc}}}}}
 
  +
|nation = {{PAGENAME}}|localized_name = [localized_name]
{{Infobox/Item|key=Motto|value={{{motto}}}}}
 
  +
|flag = KP dark.png
{{Infobox/Item|key=Full name|value={{{full_name}}}}}
 
  +
|flagdesc = [flagdesc]
{{Infobox/Item|key=Anthem|value={{{anthem}}}}}
 
  +
|motto = "[motto]"
{{Infobox/Illustration|file=[[File:KP dark.png]]|caption={{{mapdesc}}}}}
 
  +
|full_name = [full_name]
{{Infobox/Item|key=Denonym|value={{{denonym}}}}}
 
  +
|anthem = [anthem]
{{Infobox/Item|key=Official languages|value={{{languages}}}}}
 
  +
|anthem_MP3 = Helicopter-helicopter-parakofer-parakofer.mp3
{{Infobox/SectionHeader|section=Politics}}
 
  +
|map = KP dark.png
{{Infobox/Item|key=Capital City|value={{{capital}}}}}
 
  +
|mapdesc = [mapdesc]
{{Infobox/Item|key=Government|value={{{government}}}}}
 
  +
|denonym = [word used in reference to populace]
{{Infobox/Item|key=Foundation|value={{{foundation}}}}}
 
  +
|languages = [languages spoken]
{{Infobox/Item|key={{{leader_title}}}|value={{{leader}}}}}
 
  +
|capital = [capital city]
{{Infobox/Item|key={{{pm_title}}}|value={{{pm_name}}}}}
 
  +
|currency = [currency]
{{Infobox/Item|key=Preceded by|value={{{predecessor}}}}}
 
  +
|government = [government_type]
{{Infobox/Item|key=Followed by|value={{{successor}}}}}
 
  +
|foundation = [foundation(year)]
{{Infobox/SectionHeader|section=Demography}}
 
  +
|leader_title = [leader_title]|leader = [leader]
{{Infobox/Item|key=Ethnicities|value={{{ethnicity}}}}}
 
  +
|predecessor = [predecessor]
{{Infobox/Item|key=Population|value={{{population}}}}}
 
  +
|successor = [successor]
{{Infobox/Item|key=Area|value={{{area}}}}}
 
  +
|ethnicity = [ethnicity %]
{{Infobox/end}}
 
  +
|population = [population]
  +
|area = [area]
  +
}}
  +
 
[[Category:Infoboxes]]
 
[[Category:Infoboxes]]
 
[[Category:Templates]]
 
[[Category:Templates]]
Line 191: Line 195:
 
"type": "date",
 
"type": "date",
 
"required": true
 
"required": true
  +
},
  +
"anthem_MP3": {
  +
"label": "Anthem Sound File",
  +
"example": "song.mp3",
  +
"type": "wiki-file-name"
 
}
 
}
 
},
 
},
Line 203: Line 212:
 
"full_name",
 
"full_name",
 
"anthem",
 
"anthem",
  +
"anthem_MP3",
 
"map",
 
"map",
 
"mapdesc",
 
"mapdesc",

Latest revision as of 15:40, 13 June 2024



Nation

Politics
Capital {{{capital}}}
Foundation {{{foundation}}}
Demography


[full_name]
[localized_name]
KP dark.png
[flagdesc]
Motto "[motto]"
Common Name Nation
Anthem [anthem]
KP dark.png
[mapdesc]
Demonym [word used in reference to populace]
Official languages [languages spoken]
Currency [currency]
Politics
Capital [capital city]
Government [government_type]
Foundation [foundation(year)]
[leader_title] [leader]
Preceded by [predecessor]
Followed by [successor]
Demography
Ethnicities [ethnicity %]
Population [population]
Area [area] km²

Infobox for Nations

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Nation namenation

no description

Auto value
{{PAGENAME}}
Stringrequired
Localized namelocalized_name

The nation's name in its main language

Stringsuggested
Flagflag

no description

Filerequired
Flag descriptionflagdesc

A short description of the flag's features

Stringsuggested
Mottomotto

The nation's motto, if any

Stringsuggested
Full namefull_name

The full version of the nation's name

Stringrequired
Anthemanthem

The nation's current anthem, if any

Stringsuggested
Anthem Sound Fileanthem_MP3

no description

Example
song.mp3
Fileoptional
Mapmap

A map of the nation with its main features

Filerequired
Map descriptionmapdesc

An optional commentary about the map

Stringsuggested
Denonymdenonym

The qualificative used to refer to inhabitants of this nation

Stringoptional
Official languageslanguages

Languages spoken in the nation

Stringrequired
National Currencycurrency

Name of the currency used in the nation

Stringrequired
Capital Citycapital

The Nations seat(s) of government

Stringoptional
Governmentgovernment

The current type of government in place

Stringrequired
Foundationfoundation

When the nation was founded

Daterequired
Leader titleleader_title

The title used for the nation's leader (eg, President)

Default
Leader
Auto value
Leader
Stringoptional
Leaderleader

The current leader in place

Auto value
Stringoptional
Secondary leader titlepm_title

The nation's secondary leader's title, eg, Prime Minister

Default
Prime Minister
Auto value
Prime Minister
Stringoptional
Secondary leader's namepm_name

The secondary leader's (Prime Minister) name

Auto value
Stringoptional
Predecessorpredecessor

The nation(s) which preceded the current one, either by inheritance or by area.

Stringoptional
Successorsuccessor

The nation(s) which succeeded to this one, if any.

Unknownoptional
Ethnicityethnicity

The main ethnicities represented in the nation's population

Stringrequired
Populationpopulation

The current population figure

Numberrequired
Areaarea

The area of all territorial possessions owned by the nation

Numberoptional