Template:MinorNation: Difference between revisions

From Kerbal Powers Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
  +
<templatestyles src="MinorNation/styles.css" />
  +
  +
 
<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={{{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/Illustration|file={{{map}}}|caption={{{mapdesc|}}}}}
 
 
{{Infobox/Item|key=Denonym|value={{{denonym|}}}}}
 
{{Infobox/Item|key=Denonym|value={{{denonym|}}}}}
{{Infobox/Item|key=Official languages|value={{{languages}}}}}
+
{{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}}}}}
+
{{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}}
+
{{MinorNation}}
  +
{{Infobox/Header|title={{{nation}}}|subtitle={{{localized_name}}}}}
 
  +
{{MinorNation
{{Infobox/Illustration|file=[[File:KP dark.png]]|caption={{{flagdesc}}}}}
 
  +
|nation = [name]|localized_name = [localized_name]
{{Infobox/Item|key=Full name|value={{{full_name}}}}}
 
  +
|flag = KP dark.png
{{Infobox/Illustration|file=[[File:KP dark.png]]|caption={{{mapdesc}}}}}
 
  +
|flagdesc = [flagdesc]
{{Infobox/Item|key=Denonym|value={{{denonym}}}}}
 
  +
|full_name = [full_name]
{{Infobox/Item|key=Official languages|value={{{languages}}}}}
 
  +
|denonym = [word used in reference to populace]
{{Infobox/SectionHeader|section=Politics}}
 
  +
|map = KP dark.png
{{Infobox/Item|key=Capital City|value={{{capital}}}}}
 
  +
|mapdesc = [mapdesc]
{{Infobox/Item|key=Government|value={{{government}}}}}
 
  +
|capital = [capital]
{{Infobox/Item|key=Foundation|value={{{foundation}}}}}
 
  +
|government = [government_type]
{{Infobox/Item|key=Preceded by|value={{{predecessor}}}}}
 
  +
|foundation = [foundation(year)]
{{Infobox/Item|key=Followed by|value={{{successor}}}}}
 
  +
|predecessor = [predecessor]
{{Infobox/SectionHeader|section=Demography}}
 
  +
|successor = [successor]
{{Infobox/Item|key=Population|value={{{population}}}}}
 
  +
|population = [population]
{{Infobox/Item|key=Area|value={{{area}}}}}
 
  +
|area = [area]
{{Infobox/end}}
 
  +
}}
  +
 
[[Category:Infoboxes]]
 
[[Category:Infoboxes]]
 
[[Category:Templates]]
 
[[Category:Templates]]
Line 43: Line 48:
 
"label": "Nation name",
 
"label": "Nation name",
 
"type": "string",
 
"type": "string",
"required": true
+
"required": true,
  +
"autovalue": "{{PAGENAME}}",
  +
"default": "{{PAGENAME}}"
 
},
 
},
 
"localized_name": {
 
"localized_name": {
Line 67: Line 74:
 
"type": "string",
 
"type": "string",
 
"required": true
 
"required": true
 
},
 
"denonym": {
 
"label": "Denonym",
 
"description": "The qualificative used to refer to inhabitants of this nation",
 
"type": "string"
 
},
 
},
 
"map": {
 
"map": {
Line 79: Line 91:
 
"type": "string",
 
"type": "string",
 
"suggested": true
 
"suggested": true
},
 
"denonym": {
 
"label": "Denonym",
 
"description": "The qualificative used to refer to inhabitants of this nation",
 
"type": "string"
 
},
 
"languages": {
 
"label": "Official languages",
 
"description": "Languages spoken in the nation",
 
"type": "string",
 
"required": true
 
 
},
 
},
 
"predecessor": {
 
"predecessor": {
Line 137: Line 138:
 
"flagdesc",
 
"flagdesc",
 
"full_name",
 
"full_name",
 
"denonym",
 
"map",
 
"map",
 
"mapdesc",
 
"mapdesc",
"denonym",
 
"languages",
 
 
"capital",
 
"capital",
 
"government",
 
"government",

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