Template:Nation: Difference between revisions
No edit summary |
mNo edit summary |
||
(25 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | <templatestyles src="Nation/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=Motto|value={{{motto|}}}}} |
{{Infobox/Item|key=Motto|value={{{motto|}}}}} |
||
− | {{Infobox/Item|key= |
+ | {{Infobox/Item|key=Common Name|value={{{nation|}}}}} |
{{Infobox/Item|key=Anthem|value={{{anthem|}}}}} |
{{Infobox/Item|key=Anthem|value={{{anthem|}}}}} |
||
− | {{Infobox/ |
+ | {{Infobox/Sound Item|value={{{anthem_MP3|}}}}} |
− | {{Infobox/ |
+ | {{Infobox/Illustration|file={{#if:{{{map|}}}|[[File:{{{map}}}]]|}}|caption={{{mapdesc|}}}}} |
− | {{Infobox/Item|key= |
+ | {{Infobox/Item|key=Demonym|value={{{denonym|}}}}} |
− | {{Infobox/Item|key= |
+ | {{Infobox/Item|key=Official languages|value={{{languages|}}}}} |
⚫ | |||
{{Infobox/SectionHeader|section=Politics}} |
{{Infobox/SectionHeader|section=Politics}} |
||
− | {{Infobox/Item|key= |
+ | {{Infobox/Item|key=Capital|value={{{capital}}}}} |
⚫ | |||
{{Infobox/Item|key=Foundation|value={{{foundation}}}}} |
{{Infobox/Item|key=Foundation|value={{{foundation}}}}} |
||
− | {{Infobox/Item|key={{{leader_title| |
+ | {{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> |
||
− | {{ |
+ | {{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 |
||
⚫ | |||
+ | |mapdesc = [mapdesc] |
||
− | {{Infobox/Item|key=Foundation|value={{{foundation}}}}} |
||
+ | |denonym = [word used in reference to populace] |
||
− | {{Infobox/Item|key={{{leader_title}}}|value={{{leader}}}}} |
||
+ | |languages = [languages spoken] |
||
− | {{Infobox/Item|key={{{pm_title}}}|value={{{pm_name}}}}} |
||
+ | |capital = [capital city] |
||
− | {{Infobox/Item|key=Preceded by|value={{{predecessor}}}}} |
||
+ | |currency = [currency] |
||
− | {{Infobox/Item|key=Followed by|value={{{successor}}}}} |
||
+ | |government = [government_type] |
||
− | {{Infobox/SectionHeader|section=Demography}} |
||
+ | |foundation = [foundation(year)] |
||
− | {{Infobox/Item|key=Ethnicities|value={{{ethnicity}}}}} |
||
+ | |leader_title = [leader_title]|leader = [leader] |
||
− | {{Infobox/Item|key=Population|value={{{population}}}}} |
||
+ | |predecessor = [predecessor] |
||
− | {{Infobox/Item|key=Area|value={{{area}}}}} |
||
+ | |successor = [successor] |
||
− | {{Infobox/Item|key=Capital City|value={{{capital}}}}} |
||
+ | |ethnicity = [ethnicity %] |
||
− | {{Infobox/end}} |
||
+ | |population = [population] |
||
+ | |area = [area] |
||
+ | }} |
||
+ | |||
[[Category:Infoboxes]] |
[[Category:Infoboxes]] |
||
[[Category:Templates]] |
[[Category:Templates]] |
||
Line 54: | Line 60: | ||
"label": "Nation name", |
"label": "Nation name", |
||
"type": "string", |
"type": "string", |
||
− | "required": true |
+ | "required": true, |
+ | "autovalue": "{{PAGENAME}}" |
||
}, |
}, |
||
"localized_name": { |
"localized_name": { |
||
Line 114: | Line 121: | ||
"required": true |
"required": true |
||
}, |
}, |
||
− | "currency": { |
+ | "currency": { |
"label": "National Currency", |
"label": "National Currency", |
||
"description": "Name of the currency used in the nation", |
"description": "Name of the currency used in the nation", |
||
Line 188: | Line 195: | ||
"type": "date", |
"type": "date", |
||
"required": true |
"required": true |
||
+ | }, |
||
+ | "anthem_MP3": { |
||
+ | "label": "Anthem Sound File", |
||
+ | "example": "song.mp3", |
||
+ | "type": "wiki-file-name" |
||
} |
} |
||
}, |
}, |
||
− | "description": "Infobox for |
+ | "description": "Infobox for Nations", |
"format": "block", |
"format": "block", |
||
"paramOrder": [ |
"paramOrder": [ |
||
Line 200: | Line 212: | ||
"full_name", |
"full_name", |
||
"anthem", |
"anthem", |
||
+ | "anthem_MP3", |
||
"map", |
"map", |
||
"mapdesc", |
"mapdesc", |
||
Line 205: | Line 218: | ||
"languages", |
"languages", |
||
"currency", |
"currency", |
||
⚫ | |||
"government", |
"government", |
||
"foundation", |
"foundation", |
||
Line 215: | Line 229: | ||
"ethnicity", |
"ethnicity", |
||
"population", |
"population", |
||
− | "area" |
+ | "area" |
⚫ | |||
] |
] |
||
} |
} |
Latest revision as of 15:40, 13 June 2024
Nation
|
|||||
---|---|---|---|---|---|
Politics | |||||
Capital | {{{capital}}} | ||||
Foundation | {{{foundation}}} | ||||
Demography |
[full_name]
[localized_name]
|
|||||
---|---|---|---|---|---|
[flagdesc] | |||||
Motto | "[motto]" | ||||
Common Name | Nation | ||||
Anthem | [anthem] | ||||
[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
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 |
Motto | motto | The nation's motto, if any | String | suggested |
Full name | full_name | The full version of the nation's name | String | required |
Anthem | anthem | The nation's current anthem, if any | String | suggested |
Anthem Sound File | anthem_MP3 | no description
| File | 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 |
Denonym | denonym | The qualificative used to refer to inhabitants of this nation | String | optional |
Official languages | languages | Languages spoken in the nation | String | required |
National Currency | currency | Name of the currency used in the nation | String | required |
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 |
Leader title | leader_title | The title used for the nation's leader (eg, President)
| String | optional |
Leader | leader | The current leader in place
| String | optional |
Secondary leader title | pm_title | The nation's secondary leader's title, eg, Prime Minister
| String | optional |
Secondary leader's name | pm_name | The secondary leader's (Prime Minister) name
| String | optional |
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 |
Ethnicity | ethnicity | The main ethnicities represented in the nation's population | String | required |
Population | population | The current population figure | Number | required |
Area | area | The area of all territorial possessions owned by the nation | Number | optional |