Template:MinorNation: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
(26 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={{{ |
+ | {{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= |
+ | {{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/ |
+ | {{Infobox/Illustration|file={{#if:{{{map|}}}|[[File:{{{map}}}]]|}}|caption={{{mapdesc|}}}}} |
− | {{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=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}} |
+ | {{Infobox/end}} |
+ | </includeonly> |
||
<noinclude> |
<noinclude> |
||
− | {{ |
+ | {{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 44: | 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 68: | Line 74: | ||
"type": "string", |
"type": "string", |
||
"required": true |
"required": true |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
}, |
}, |
||
"map": { |
"map": { |
||
Line 80: | Line 91: | ||
"type": "string", |
"type": "string", |
||
"suggested": true |
"suggested": true |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
− | }, |
||
− | "languages": { |
||
− | "label": "Official languages", |
||
− | "description": "Languages spoken in the nation", |
||
− | "type": "string", |
||
− | "required": true |
||
}, |
}, |
||
"predecessor": { |
"predecessor": { |
||
Line 138: | Line 138: | ||
"flagdesc", |
"flagdesc", |
||
"full_name", |
"full_name", |
||
⚫ | |||
"map", |
"map", |
||
"mapdesc", |
"mapdesc", |
||
⚫ | |||
− | "languages", |
||
"capital", |
"capital", |
||
"government", |
"government", |
Latest revision as of 02:34, 3 November 2022
MinorNation
|
|||||
---|---|---|---|---|---|
Politics | |||||
Capital | {{{capital}}} | ||||
Foundation | {{{foundation}}} | ||||
Demography |
Infobox for Minor Nations
Parameter | Description | Type | Status | |
---|---|---|---|---|
Nation name | nation | no description
| String | required |
Localized name | localized_name | The nation's name in its main language | String | suggested |
Flag | flag | no description | File | required |
Flag description | flagdesc | A short description of the flag's features | String | suggested |
Full name | full_name | The full version of the nation's name | String | required |
Denonym | denonym | The qualificative used to refer to inhabitants of this nation | String | optional |
Map | map | A map of the nation with its main features | File | required |
Map description | mapdesc | An optional commentary about the map | String | suggested |
Capital City | capital | The Nations seat(s) of government | String | optional |
Government | government | The current type of government in place | String | required |
Foundation | foundation | When the nation was founded | Date | required |
Predecessor | predecessor | The nation(s) which preceded the current one, either by inheritance or by area. | String | optional |
Successor | successor | The nation(s) which succeeded to this one, if any. | Unknown | optional |
Population | population | The current population figure | Number | required |
Area | area | The area of all territorial possessions owned by the nation | Number | optional |