Template:MinorNation: Difference between revisions

From Kerbal Powers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 3: Line 3:
   
 
<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=Full name|value={{{full_name}}}}}
+
{{Infobox/Item|key=Common Name|value={{{nation|}}}}}
{{Infobox/Item|key=Denonym|value={{{denonym}}}}}
+
{{Infobox/Item|key=Denonym|value={{{denonym|}}}}}
{{Infobox/Illustration|file=[[File:{{{map}}}|300px|class=notpageimage]]|caption={{{mapdesc}}}}}
+
{{Infobox/Illustration|file={{#if:{{{map|}}}|[[File:{{{map}}}]]|}}|caption={{{mapdesc|}}}}}
 
{{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=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=Population|value={{{population}}} Million}}
+
{{Infobox/Item|key=Population|value={{{population|}}}}}
{{Infobox/Item|key=Area|value={{{area}}} km²}}
+
{{Infobox/Item|key=Area|value={{#if:{{{area|}}}|{{{area}}} km²|}}}}
 
{{Infobox/end}}
 
{{Infobox/end}}
 
</includeonly>
 
</includeonly>
   
 
<noinclude>
 
<noinclude>
  +
{{MinorNation}}
  +
 
{{MinorNation
 
{{MinorNation
 
|nation = [name]|localized_name = [localized_name]
|nation = {{PAGENAME}}
 
|localized_name = [localized_name]
 
 
|flag = KP dark.png
 
|flag = KP dark.png
 
|flagdesc = [flagdesc]
 
|flagdesc = [flagdesc]
 
|full_name = [full_name]
 
|full_name = [full_name]
|denonym= [word used in reference to populace]
+
|denonym = [word used in reference to populace]
 
|map = KP dark.png
 
|map = KP dark.png
 
|mapdesc = [mapdesc]
 
|mapdesc = [mapdesc]
Line 48: Line 49:
 
"type": "string",
 
"type": "string",
 
"required": true,
 
"required": true,
"autovalue": "{{PAGENAME}}"
+
"autovalue": "{{PAGENAME}}",
 
"default": "{{PAGENAME}}"
 
},
 
},
 
"localized_name": {
 
"localized_name": {

Latest revision as of 02:34, 3 November 2022




MinorNation

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




[full_name]
[localized_name]
KP dark.png
[flagdesc]
Common Name [name]
Denonym [word used in reference to populace]
KP dark.png
[mapdesc]
Politics
Capital [capital]
Government [government_type]
Foundation [foundation(year)]
Preceded by [predecessor]
Followed by [successor]
Demography
Population [population]
Area [area] km²

Infobox for Minor Nations

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Nation namenation

no description

Default
{{PAGENAME}}
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
Full namefull_name

The full version of the nation's name

Stringrequired
Denonymdenonym

The qualificative used to refer to inhabitants of this nation

Stringoptional
Mapmap

A map of the nation with its main features

Filerequired
Map descriptionmapdesc

An optional commentary about the map

Stringsuggested
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
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
Populationpopulation

The current population figure

Numberrequired
Areaarea

The area of all territorial possessions owned by the nation

Numberoptional