Template:Planet

From Gephqua

(Difference between revisions)
Line 1: Line 1:
 +
<div style="float: right; margin: 0 0 1em 1em; width: auto; text-align: center; font-size: 90%; font-family: lucida grande, sans-serif; line-height: 1.4em;">
 +
<div style="border: 1px solid #ccd2d9; width: 24em; background: #f9f9f9; text-align: left; padding: 0.5em 1em 0.5em 1em; text-align: center;">
 +
{| style="background: transparent; text-align: left; table-layout: auto; border-collapse: collapse; padding: 0; font-size: 100%; width:100%" cellspacing="0" cellpadding="0"
 +
|+ style="margin-left: inherit; font-size: 135%; padding-bottom: 0.5em; line-height: 1.1em;" |
 +
'''{{{name<includeonly>|{{PAGENAME}}</includeonly>}}}'''{{#IF:{{{name_en|{{{common_name|<noinclude>*</noinclude>}}}}}}|<br/>
 +
'''''{{{name_en<includeonly>|{{{common_name}}}</includeonly>}}}'''''|}}
 +
{{#IF:{{{Timeline|{{{timeline|<noinclude>*</noinclude>}}}}}}|<span style="font-size:60%;"><br
 +
/>Timeline: [[{{{Timeline<includeonly>|{{{timeline}}}</includeonly>}}}]]</span>|}}
 +
| align="center" colspan="2" style="background:#ccd2d9" |
 +
{| style="text-align: center; margin: 0 auto; background: none;"
 +
{{#IF:{{{flag|{{{no_flag}}}}}}|{{#IF:{{{CoA|{{{coa|{{{seal|{{{no_CoA}}}}}}}}}}}}|<!--
 +
-->{{!}}[[Image:{{{flag|no flag.svg}}}|{{{flag_width|120px}}}{{!}}{{{flag_alt|Flag {{{of|of}}} {{{name_short|{{{common_name|{{{name_en|{{{name|{{PAGENAME}}}}}}}}}}}}}}}}}]]
 +
{{!}}[[Image:{{{CoA|{{{coa|{{{seal|no coa.svg}}}}}}}}}|{{{coa_width|{{{seal_width|80px}}}}}}{{!}}{{{coa_alt|{{#IF:{{{seal|}}}|Seal|Coat of Arms}} {{{of|of}}} {{{name_short|{{{common_name|{{{name_en|{{{name|{{PAGENAME}}}}}}}}}}}}}}}}}]]
 +
{{!|tr}}
 +
{{!}}{{{flag_caption|Flag {{{of|of}}} {{{name_short|{{{name_en|{{{name|{{PAGENAME}}}}}}}}}}}}}}
 +
{{!}}{{{coa_caption|{{#IF:{{{seal|}}}|Seal|Coat of Arms}} {{{of|of}}} {{{name_short|{{{name_en|{{{common_name|{{{name|{{PAGENAME}}}}}}}}}}}}}}}}}
 +
{{!|tr}}<!--
 +
-->|<!--
 +
-->{{!}}colspan="2"{{!}}[[Image:{{{flag|no flag.svg}}}|{{{flag_width|180px}}}{{!}}{{{flag_alt|Flag {{{of|of}}} {{{name_short|{{{common_name|{{{name_en|{{{name|{{PAGENAME}}}}}}}}}}}}}}}}}]]<br/>{{{flag_caption|Flag {{{of|of}}} {{{name_short|{{{common_name|{{{name_en|{{{name|{{PAGENAME}}}}}}}}}}}}}}}}}}}
 +
{{!|tr}}<!--
 +
-->|}}
 +
{{#IF:{{{map|<noinclude>*</noinclude>}}}|<!--
 +
-->{{!}}colspan="2"{{!}}[[Image:{{{map|LocationWorld.png}}}|{{{map_width|220px}}}|{{{map_alt|Location {{{of|of}}} {{{name_short|{{{common_name|{{{name_en|{{{name|{{PAGENAME}}}}}}}}}}}}}}}}}]]<br/>{{{map_caption|Location {{{of|of}}} {{{name_short|{{{common_name|{{{name_en|{{{name|{{PAGENAME}}}}}}}}}}}}}}}}}}}
 +
{{!|tr}}<!--
 +
-->|}}
 +
|}
 +
{{#IF:{{{motto|<noinclude>*</noinclude>}}}|<!--
 +
-->Motto: ''{{{motto}}}''{{#IF:{{{motto_en|<noinclude>*</noinclude>}}}|<br/><!--
 +
-->({{{motto_lang<includeonly>|{{{language|{{{lang_official|{{{language}}}}}}}}}</includeonly>}}}: {{{motto_en}}})<!--
 +
-->|}}<!--
 +
-->|}}
 +
{{!|tr}}
 +
{{#IF:{{{capital|<noinclude>*</noinclude>}}}|<!--
 +
-->
 +
{{!top}}'''Capital:'''
 +
{{!top}}{{{capital}}}
 +
{{!|tr}}<!--
 +
-->|}}
 +
{{#IF:{{{city_largest|<noinclude>*</noinclude>}}}|<!--
 +
-->
 +
{{!}}'''Largest city:'''
 +
{{!}}{{{city_largest}}}
 +
{{!|tr}}<!--
 +
-->|}}
 +
{{#IF:{{{city_other|<noinclude>*</noinclude>}}}|<!--
 +
-->
 +
{{!}}'''Other cities:'''
 +
{{!}}{{{city_other}}}
 +
{{!|tr}}<!--
 +
-->|}}
 +
{{#IF:{{{language_other|{{{lang_other|{{{lang_others|<noinclude>*</noinclude>}}}}}}}}}|<!--
 +
-->
 +
{{!top}}'''Language:'''<br/>&nbsp;  official:
 +
{{!top}}&nbsp;<br/>{{{language<includeonly>|{{{lang_official}}}</includeonly>}}}
 +
{{!|tr}}
 +
{{!}}&nbsp; Other languages:
 +
{{!}}{{{language_other<includeonly>|{{{lang_other|{{{lang_others}}}}}}</includeonly>}}}
 +
{{!|tr}}<!--
 +
-->|{{#IF:{{{language|{{{lang_official|}}}}}}|<!--
 +
-->
 +
{{!top}}'''Language:'''
 +
{{!top}}{{{language<includeonly>|{{{lang_official}}}</includeonly>}}}
 +
{{!|tr}}
 +
<!--
 +
-->|}}}}
 +
{{#IF:{{{religion_other|{{{oreligion|<noinclude>*</noinclude>}}}}}}|<!--
 +
-->
 +
{{!top}}'''Religion:'''<br/>&nbsp; main:
 +
{{!top}}&nbsp;<br/>{{{religion}}}
 +
{{!|tr}}
 +
{{!}}&nbsp; Other religions:
 +
{{!}}{{{religion_other<includeonly>|{{{oreligion}}}</includeonly>}}}
 +
{{!|tr}}<!--
 +
-->|{{#IF:{{{religion|}}}|<!--
 +
-->
 +
{{!top}}'''Religion:'''
 +
{{!top}}{{{religion}}}
 +
{{!|tr}}
 +
<!--
 +
-->|}}}}
 +
{{#IF:{{{ethnic_other|{{{oreligion|<noinclude>*</noinclude>}}}}}}|<!--
 +
-->
 +
{{!top}}'''Ethnic groups:'''<br/>&nbsp; main:
 +
{{!top}}&nbsp;<br/>{{{ethnic_group}}}
 +
{{!|tr}}
 +
{{!}}&nbsp; other:
 +
{{!}}{{{ethnic_other}}}
 +
{{!|tr}}<!--
 +
-->|{{#IF:{{{ethnic_group|}}}|<!--
 +
-->
 +
{{!top}}'''Ethnic group:'''
 +
{{!top}}{{{ethnic_group}}}
 +
{{!|tr}}
 +
<!--
 +
-->|}}}}
 +
{{#IF:{{{regime|<noinclude>*</noinclude>}}}|<!--
 +
-->
 +
{{!top}}'''Type of government:'''
 +
{{!top}}{{{regime}}}
 +
{{!|tr}}
 +
{{#IF:{{{governing_body|<noinclude>*</noinclude>}}}|<!--
 +
-->
 +
{{!}}&nbsp; government:
 +
{{!}}{{{governing_body}}}
 +
{{!|tr}}<!--
 +
-->|}}<!--
 +
-->|<!--
 +
-->
 +
{{#IF:{{{governing_body|<noinclude>*</noinclude>}}}|<!--
 +
-->
 +
{{!top}}'''Government:'''
 +
{{!top}}{{{governing_body}}}
 +
{{!|tr}}<!--
 +
-->|}}<!--
 +
-->}}
 +
{{#IF:{{{HoStitle|{{{hos_title|{{{leader1|{{{leader|<noinclude>*</noinclude>}}}}}}}}}}}}|<!--
 +
-->
 +
{{!top}}'''{{#IF:{{{HoSlist|{{{Timeline|{{{timeline|{{{no_HoSlist}}}}}}}}}}}}|[[{{{HoSlist|List of {{{hos_title_pl|{{{HoStitle|{{{hos_title|{{{leader1|{{{leader|Heads of State}}}}}}}}}}}}s}}} {{{of|of}}} {{{name_short|{{{common_name|{{{name_en|{{{name|{{PAGENAME}}}}}}}}}}}}}} ({{{Timeline|{{{timeline|OTL}}}}}})}}}|{{{HoStitle<includeonly>|{{{hos_title|{{{leader1|{{{leader}}}}}}}}}</includeonly>}}}]]|{{{HoStitle|{{{hos_title|{{{leader1|{{{leader}}}}}}}}}}}}}}:'''
 +
{{!top}}{{{HoSname<includeonly>|{{{hos_name|{{{leader1_name|{{{leader_name|}}}}}}}}}</includeonly>}}}
 +
{{!|tr}}
 +
{{#IF:{{{royal_house|}}}|
 +
{{!}}&nbsp; {{{royal_house_title|Royal house}}}:
 +
{{!}}{{{royal_house}}}
 +
{{!|tr}}|}}
 +
{{#IF:{{{HoS2title|{{{hos2_title|}}}}}}|
 +
{{!}}'''{{#IF:{{{HoS2list|{{{Timeline|{{{timeline|{{{no_HoS2list}}}}}}}}}}}}|[[{{{HoS2list|List of {{{hos2_title_pl|{{{HoS2title|{{{hos2_title|Vice-Heads of State}}}}}}s}}} {{{of|of}}} {{{name_short|{{{common_name|{{{name_en|{{{name|{{PAGENAME}}}}}}}}}}}}}} ({{{Timeline|{{{timeline|OTL}}}}}})}}}|{{{HoS2title<includeonly>|{{{hos2_title}}}</includeonly>}}}]]|{{{HoS2title|{{{hos2_title}}}}}}}}:'''
 +
{{!}}{{{HoS2name|{{{hos2_name|}}}}}}
 +
{{!|tr}}|}}
 +
{{#IF:{{{CoGtitle|{{{cog_title|{{{leader2|{{{Cname|<noinclude>*</noinclude>}}}}}}}}}}}}|<!--
 +
-->
 +
{{!}}'''{{#IF:{{{CoGlist|{{{Timeline|{{{timeline|{{{no_CoGlist}}}}}}}}}}}}|[[{{{CoGlist|List of {{{cog_title_pl|{{{CoGtitle|{{{cog_title|{{{leader2|Chiefs of Government}}}}}}}}}s}}} {{{of|of}}} {{{name_short|{{{common_name|{{{name_en|{{{name|{{PAGENAME}}}}}}}}}}}}}} ({{{Timeline|{{{timeline|OTL}}}}}})}}}|{{{CoGtitle<includeonly>|{{{cog_title|{{{leader2}}}}}}</includeonly>}}}]]|{{{CoGtitle<includeonly>|{{{cog_title|{{{leader2|Chief of Government}}}}}}</includeonly>}}}}}:'''
 +
{{!}}{{{CoGname<includeonly>|{{{cog_name|{{{leader2_name|{{{Cname|}}}}}}}}}</includeonly>}}}
 +
{{!|tr}}<!--
 +
-->|}}<!--
 +
-->|{{#IF:{{{CoGtitle|{{{cog_title|{{{leader2|<noinclude>*</noinclude>}}}}}}}}}|<!--
 +
-->
 +
{{!top}}'''{{{CoGtitle<includeonly>|{{{cog_title|{{{leader2}}}}}}</includeonly>}}}:'''
 +
{{!top}}{{{CoGname<includeonly>|{{{cog_name|{{{leader2_name|}}}}}}</includeonly>}}}
 +
{{!|tr}}<!--
 +
-->|}}}}
 +
{{#IF:{{{area|<noinclude>*</noinclude>}}}|<!--
 +
-->
 +
{{!top}}'''Area:'''
 +
{{!top}}{{{area}}}&nbsp;{{{area_unit|km²}}}
 +
{{!|tr}}<!--
 +
-->|}}
 +
{{#IF:{{{population|<noinclude>*</noinclude>}}}|<!--
 +
-->
 +
{{!top}}'''Population:'''
 +
{{!top}}{{{population}}}&nbsp;{{{pop_unit|inh.}}}
 +
{{!|tr}}<!--
 +
-->|}}
 +
{{#IF:{{{est_date|<noinclude>*</noinclude>}}}|<!--
 +
-->
 +
{{!top}}'''Established:'''
 +
{{!top}}{{{est_date}}}
 +
{{!|tr}}<!--
 +
-->|}}
 +
{{#IF:{{{ind_from|<noinclude>*</noinclude>}}}|<!--
 +
-->
 +
{{!top}}'''Independence:'''
 +
{{!top}}from {{{ind_from}}}
 +
{{!|tr}}<!--
 +
-->
 +
{{#IF:{{{ind_date|<noinclude>*</noinclude>}}}|<!--
 +
-->
 +
{{!}}&nbsp; declared:
 +
{{!}}{{{ind_date}}}
 +
{{!|tr}}<!--
 +
-->|}}
 +
<!--
 +
-->
 +
{{#IF:{{{ind_rec|<noinclude>*</noinclude>}}}|<!--
 +
-->
 +
{{!}}&nbsp; recognized:
 +
{{!}}{{{ind_rec}}}
 +
{{!|tr}}<!--
 +
-->|}}
 +
<!--
 +
-->|{{#IF:{{{ind_date|}}}|<!--
 +
-->
 +
{{!top}}'''Independence:'''
 +
{{!top}}{{{ind_date}}}
 +
{{!|tr}}<!--
 +
-->|}}}}
 +
{{#IF:{{{currency|<noinclude>*</noinclude>}}}|<!--
 +
-->
 +
{{!top}}'''Currency:'''
 +
{{!top}}{{{currency}}}
 +
{{!|tr}}<!--
 +
-->|}}
 +
{{#IF:{{{organizations|{{{orgs|<noinclude>*</noinclude>}}}}}}|<!--
 +
-->
 +
{{!top}}'''{{{orgs_cap|Organizations}}}:'''
 +
{{!top}}{{{organizations<includeonly>|{{{orgs}}}</includeonly>}}}
 +
{{!|tr}}<!--
 +
-->|}}
 +
|}
 +
</div>
 +
</div>
<noinclude>
<noinclude>
-
This template is to be used on [[:category:terrain|terrain/planet]] pages as well as [[:category:terrain concepts|terrain/planet concept]] pages:
 
== Usage ==
== Usage ==
-
  <nowiki>{{Planet</nowiki>
+
  <nowiki>{{</nowiki>NationInfo
-
  | name          =  
+
  |''field1''=value1
-
  | creator      = author, just plain text
+
  |''field2''=value2
-
| image        = just the file name, leave blank if none (optional)
+
   ...
-
| inhabitants  = what creature(s)/flora live here? (optional)
+
  }}
-
| location      = what [[solar system]] does this exist within? (optional)
+
where ''field1'', ''field2'', etc. ar the name of the fields.
-
| solarposition = order in position from the star/distance from star (optional)
+
-
| percentwater  = percent of planet that's water (optional)
+
-
| daylength    = in [[Earth (Concept)|Earth]] hours (optional)
+
-
| yearlength   = in [[Earth (Concept)|Earth]] days (optional)
+
-
  | size          = how big is it, perhaps compared to [[Earth (Concept)|Earth]]? (optional)
+
-
<nowiki>}}</nowiki>
+
-
== Example input ==
+
-
<pre>{{Planet
+
-
| name          = Cattor
+
-
| creator      = Maxis
+
-
| image        = Spacestatus.jpg
+
-
| inhabitants  = Orlop, Bonzo, Judder
+
-
| solarposition = Unknown
+
-
| percentwater  = Over 75%
+
-
| size          =
+
-
}}</pre>
+
-
== Example output ==
+
-
{{Planet
+
-
| name         = Cattor
+
-
| creator      = Maxis
+
-
| image        = Spacestatus.jpg
+
-
| inhabitants  = Orlop, Bonzo, Judder
+
-
| solarposition = Unknown
+
-
| percentwater  = Over 75%
+
-
| size          =
+
-
}}
+
-
{{-}}
+
-
[[Category:Content infobox templates|{{PAGENAME}}]]</noinclude><includeonly>{{infobox2
+
Fields are any keyword in the table enclosed by {{{''triple bracers''}}}, as well as the following fields:
-
| background = #ffefdd
+
 
-
| border    = #f4b734
+
;Other hiden or optional fields:
-
| title      = {{{name|Unnamed}}}
+
* <code>{{{name}}}</code>: name of the nation.  Default value is <nowiki>{{PAGENMAE}}</nowiki>.
-
| image      = {{{image|}}}
+
* <code>{{{name_short}}}</code>: short name of the nation.  Defaults to {{{name_en}}} and {{{name}}}.
-
| imagedesc  = {{{imagedesc|}}}
+
 
-
| Inhabitants    | {{{inhabitants|''N/A''}}}
+
* <code>{{{area_unit}}}</code>: for the area unit.  Defaults to ''"km²"''.
-
| Location      | {{{location|''N/A''}}}
+
* <code>{{{pop_unit}}}</code>: for the population unit.  Defaults to ''"inh."''.  Could be use to give nationality.
-
| Solar Position | {{{solarposition|''N/A''}}}
+
 
-
| Percent water | {{{percentwater|''N/A''}}}
+
* <code>{{{flag}}}</code>: image of the flag (without ''image:'' prefix).
-
| Length of day | {{{daylength|''N/A''}}}
+
* <code>{{{flag_width}}}</code>: for the with of the flag.  Defaults to ''120px'' when there is a CoA, or to ''180px'' otherwise.
-
| Length of year | {{{yearlength|''N/A''}}}
+
* <code>{{{flag_caption}}}</code>: caption under the flag.  Defaults to ''Flag of {{{name_short}}}''.
-
| Size          | {{{size|''N/A''}}}
+
 
-
}}
+
* <code>{{{coa}}}</code>: image of the coat of arms (without ''image:'' prefix).
-
{{qif|test={{{image|}}}|then=[[Category:Illustrated terrain]]|else=[[Category:Unillustrated terrain]]}}
+
* <code>{{{coa_width}}}</code>: for the with of the coat of arms.  Defaults to ''80px''.
-
</includeonly>
+
* <code>{{{coa_caption}}}</code>: caption under the coat of arms. Defaults to ''Coat of Arms of {{{name_short}}}''.
 +
 
 +
* <code>{{{map}}}</code>: image of the location map (without ''image:'' prefix).
 +
* <code>{{{map_width}}}</code>: for the with of the location map. Defaults to ''220px''.
 +
* <code>{{{map_caption}}}</code>: caption under the location map.  Defaults to ''Location of {{{name_short}}}''.
 +
 
 +
* <code>{{{royal_house}}}</code>: name of the royal house (or other aditional info for Head of State).  No default: won't print if missing.
 +
* <code>{{{royal_house_title}}}</code>: title of the aditional info on Head of State.  Defaults to ''Royal house''.
 +
 
 +
* <code>{{{of}}}</code>: use to give a more gramatical liason between Flag etc. and name of nation, i.e. add an article: <code>|of=of the</code>.  Defaults to ''of''.
 +
 
 +
;Alias:
 +
* <code>{{{hos_title}}}</code>, <code>{{{leader}}}</code> or <code>{{{leader1}}}</code>, are aliases for <code>{{{HoStitle}}}</code>.
 +
** <code>{{{hos_name}}}</code>, <code>{{{leader_name}}}</code> or <code>{{{leader1_name}}}</code>: respectively for <code>{{{HoSname}}}</code>.
 +
* <code>{{{cog_title}}}</code>, or <code>{{{leader2}}}</code>, are aliases for <code>{{{CoGtitle}}}</code>.
 +
** <code>{{{cog_name}}}</code>, or <code>{{{leader2_name}}}</code>: respectively for <code>{{{CoGname}}}</code>.
 +
 
 +
* <code>{{{lang_official}}}</code>: alias for <code>{{{language}}}</code>.
 +
* <code>{{{lang_other}}}</code>: alias for <code>{{{language_other}}}</code>.
 +
 
 +
 
 +
[[Category:Template:Infoboxes]]</noinclude>

Revision as of 05:54, 13 September 2007

{{{name}}}{{#IF:*|
{{{name_en}}}|}} {{#IF:*|
Timeline: [[{{{Timeline}}}]]
|}}
{{#IF:{{{no_flag}}}|{{#IF:{{{no_CoA}}}||{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}File:No flag.svg
none=|tr=-|td=Template loop detected: Template:!}}File:No coa.svg none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}} none=|tr=-|td=Template loop detected: Template:!}}Flag of Planet none=|tr=-|td=Template loop detected: Template:!}}{{#IF:|Seal|Coat of Arms}} of Planet none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}}none=|tr=-|td=Template loop detected: Template:!}}colspan="2"|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}File:No flag.svg
Flag of Planet}}
none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}}|}}

{{#IF:*||{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}colspan="2"|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}File:LocationWorld.png
Location of Planet}}

none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}}|}}

{{#IF:*|Motto: {{{motto}}}{{#IF:*|
({{{motto_lang}}}: {{{motto_en}}})|}}|}}

none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}}

{{#IF:*|

Capital: {{{capital}}} none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}}|}}

{{#IF:*|

none=|tr=-|td=Template loop detected: Template:!}}Largest city: none=|tr=-|td=Template loop detected: Template:!}}{{{city_largest}}} none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}}|}}

{{#IF:*|

none=|tr=-|td=Template loop detected: Template:!}}Other cities: none=|tr=-|td=Template loop detected: Template:!}}{{{city_other}}} none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}}|}}

{{#IF:*|

Language:
  official:
 
{{{language}}}
none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}} none=|tr=-|td=Template loop detected: Template:!}}  Other languages: none=|tr=-|td=Template loop detected: Template:!}}{{{language_other}}} none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}}|{{#IF:| Language: {{{language}}} none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}}
}}}

{{#IF:*| | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" |Religion:
  main: | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" | 
{{{religion}}} |{{#SWITCH:tr|none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}} |{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}  Other religions: |{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}{{{religion_other}}} |{{#SWITCH:tr|none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}}|{{#IF:| | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" |Religion: | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" |{{{religion}}} |{{#SWITCH:tr|none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}} |}}}} {{#IF:*| | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" |Ethnic groups:
  main: | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" | 
{{{ethnic_group}}} |{{#SWITCH:tr|none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}} |{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}  other: |{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}{{{ethnic_other}}} |{{#SWITCH:tr|none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}}|{{#IF:| | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" |Ethnic group: | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" |{{{ethnic_group}}} |{{#SWITCH:tr|none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}} |}}}} {{#IF:*| | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" |Type of government: | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" |{{{regime}}} |{{#SWITCH:tr|none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}} {{#IF:*| |{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}  government: |{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}{{{governing_body}}} |{{#SWITCH:tr|none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}}|}}| {{#IF:*| | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" |Government: | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" |{{{governing_body}}} |{{#SWITCH:tr|none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}}|}}}} {{#IF:*| | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" |{{#IF:{{{no_HoSlist}}}|{{{HoStitle}}}|{{{leader}}}}}: | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" |{{{HoSname}}} |{{#SWITCH:tr|none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}} {{#IF:| |{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}  Royal house: |{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}{{{royal_house}}} |{{#SWITCH:tr|none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}}|}} {{#IF:| |{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}{{#IF:{{{no_HoS2list}}}|{{{HoS2title}}}|{{{hos2_title}}}}}: |{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}} |{{#SWITCH:tr|none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}}|}} {{#IF:*| |{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}{{#IF:{{{no_CoGlist}}}|{{{CoGtitle}}}|{{{CoGtitle}}}}}: |{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}{{{CoGname}}} |{{#SWITCH:tr|none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}}|}}|{{#IF:*| | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" |{{{CoGtitle}}}: | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" |{{{CoGname}}} |{{#SWITCH:tr|none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}}|}}}} {{#IF:*| | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" |Area: | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" |{{{area}}} km² |{{#SWITCH:tr|none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}}|}} {{#IF:*| | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" |Population: | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" |{{{population}}} inh. |{{#SWITCH:tr|none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}}|}} {{#IF:*| | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" |Established: | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" |{{{est_date}}} |{{#SWITCH:tr|none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}}|}} {{#IF:*| | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" |Independence: | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" |from {{{ind_from}}} |{{#SWITCH:tr|none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}} {{#IF:*| |{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}  declared: |{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}{{{ind_date}}} |{{#SWITCH:tr|none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}}|}} {{#IF:*| |{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}  recognized: |{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}{{{ind_rec}}} |{{#SWITCH:tr|none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}}|}} |{{#IF:| | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" |Independence: | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" |{{{ind_date}}} |{{#SWITCH:tr|none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}}|}}}} {{#IF:*| | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" |Currency: | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" |{{{currency}}} |{{#SWITCH:tr|none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}}|}} {{#IF:*| | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" |Organizations: | style="border-top: solid 1px #ccd2d9; padding: 0.4em 1em 0.1em 0; vertical-align: top; text-align: left;" |{{{organizations}}} |{{#SWITCH:tr|none=|tr=-|td=|{{#SWITCH:none|none=|tr=-|td=Template loop detected: Template:!}}}}|}} |}

Usage

{{NationInfo
|field1=value1
|field2=value2
  ...
}}

where field1, field2, etc. ar the name of the fields.

Fields are any keyword in the table enclosed by {{{triple bracers}}}, as well as the following fields:

Other hiden or optional fields
  • {{{name}}}: name of the nation. Default value is {{PAGENMAE}}.
  • {{{name_short}}}: short name of the nation. Defaults to {{{name_en}}} and {{{name}}}.
  • {{{area_unit}}}: for the area unit. Defaults to "km²".
  • {{{pop_unit}}}: for the population unit. Defaults to "inh.". Could be use to give nationality.
  • {{{flag}}}: image of the flag (without image: prefix).
  • {{{flag_width}}}: for the with of the flag. Defaults to 120px when there is a CoA, or to 180px otherwise.
  • {{{flag_caption}}}: caption under the flag. Defaults to Flag of {{{name_short}}}.
  • {{{coa}}}: image of the coat of arms (without image: prefix).
  • {{{coa_width}}}: for the with of the coat of arms. Defaults to 80px.
  • {{{coa_caption}}}: caption under the coat of arms. Defaults to Coat of Arms of {{{name_short}}}.
  • {{{map}}}: image of the location map (without image: prefix).
  • {{{map_width}}}: for the with of the location map. Defaults to 220px.
  • {{{map_caption}}}: caption under the location map. Defaults to Location of {{{name_short}}}.
  • {{{royal_house}}}: name of the royal house (or other aditional info for Head of State). No default: won't print if missing.
  • {{{royal_house_title}}}: title of the aditional info on Head of State. Defaults to Royal house.
  • {{{of}}}: use to give a more gramatical liason between Flag etc. and name of nation, i.e. add an article: |of=of the. Defaults to of.
Alias
  • {{{hos_title}}}, {{{leader}}} or {{{leader1}}}, are aliases for {{{HoStitle}}}.
    • {{{hos_name}}}, {{{leader_name}}} or {{{leader1_name}}}: respectively for {{{HoSname}}}.
  • {{{cog_title}}}, or {{{leader2}}}, are aliases for {{{CoGtitle}}}.
    • {{{cog_name}}}, or {{{leader2_name}}}: respectively for {{{CoGname}}}.
  • {{{lang_official}}}: alias for {{{language}}}.
  • {{{lang_other}}}: alias for {{{language_other}}}.
Personal tools