Template:Infobox Nation: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<noinclude><!-- -->{{#cargo_declare: _table = nations |name = String |founding_day = Integer |founding_month = Integer |founding_year = Integer |axiom = String |demonym = List (,) of String |capital = String |leaders = List (,) of String |power_structure = String |economic_structure = String |geographic_location = String }}<!-- --></noinclude><includeonly><!-- Axiom, Founding Date, Demonym, Capital, Power Structure, Leader, Economic Structure, Geographic Location --...") |
mNo edit summary |
||
| (9 intermediate revisions by the same user not shown) | |||
| Line 13: | Line 13: | ||
|power_structure = String | |power_structure = String | ||
|economic_structure = String | |economic_structure = String | ||
|government_systems = List (,) of String | |||
|geographic_location = String | |geographic_location = String | ||
}}<!-- | }}<!-- | ||
| Line 31: | Line 32: | ||
-->{{#vardefine:power_structure|{{{power-structure|}}}}}<!-- | -->{{#vardefine:power_structure|{{{power-structure|}}}}}<!-- | ||
-->{{#vardefine:economic_structure|{{{economic-structure|}}}}}<!-- | -->{{#vardefine:economic_structure|{{{economic-structure|}}}}}<!-- | ||
-->{{#arraydefine:government_systems|{{{government-systems|}}}|,}}<!-- | |||
-->{{#vardefine:geographic_location|{{{geographic-location|}}}}}<!-- | -->{{#vardefine:geographic_location|{{{geographic-location|}}}}}<!-- | ||
| Line 59: | Line 61: | ||
| sorth = 9 | | sorth = 9 | ||
| #default = 0}}}}<!-- | | #default = 0}}}}<!-- | ||
-->{{#vardefine:foundingprint|{{#invoke:ErraCalendar|PrintDate|year={{#var:foundingyear}}|month={{#var:foundingmonth}}|date={{#var:foundingdate}}}}}}<!-- | |||
-->{{#vardefine:power_structure_print|{{#switch:{{lc:{{#var:power_structure}}}} | |||
| thalassocracy = [[wikipedia:Thalassocracy|Thalassocracy]] | |||
| federation = [[wikipedia:Federation|Federation]] | |||
| #default = {{#var:power_structure}}}}}}<!-- | |||
-->{{#cargo_store: | -->{{#cargo_store: | ||
| Line 72: | Line 81: | ||
|power_structure = {{#var:power_structure}} | |power_structure = {{#var:power_structure}} | ||
|economic_structure = {{#var:economic_structure}} | |economic_structure = {{#var:economic_structure}} | ||
|government_systems = {{#arrayprint:government_systems|,}} | |||
|geographic_location = {{#var:geographic_location}} | |geographic_location = {{#var:geographic_location}} | ||
}}<!-- | }}<!-- | ||
--> | --><infobox theme="erra"> | ||
<title source="name"><default>{{PAGENAME}}</default></title> | |||
<image source="image"><default>File:{{PAGENAMEE}}.png</default></image> | |||
<data source="axiom"><format>{{#if:{{#var:axiom}}|<div class="pi-nation-axiom" style="text-align:center;"><i>{{#var:axiom}}</i></div>|}}</format></data> | |||
<group> | |||
<data source="founding-date"><label>Founded</label><format>{{#var:foundingprint}}{{#if:{{#var:foundingyear}}| ({{#invoke:ErraCalendar|PrintHowLongAgoFromToday|year={{#var:foundingyear}}|month={{#var:foundingmonth}}|date={{#var:foundingdate}}}})|}}</format></data> | |||
<data source="demonym"><label>Demonym</label><format>{{#ifexpr: {{#arraysize:demonym}} > 1 | <ul>{{#arrayprint:demonym||@@@@|<li>@@@@</li>}}</ul> | {{#arrayprint:demonym||@@@@|@@@@}}}}</format></data> | |||
<data source="capital"><label>Capital</label><format>{{#ifexist:{{#var:capital}}|[[{{#var:capital}}]]|{{#var:capital}}}}</format></data> | |||
<data source="leaders"><label>Leaders</label><format>{{#ifexpr: {{#arraysize:leaders}} > 1 | <ul>{{#arrayprint:leaders||@@@@|<li>{{#ifexist:@@@@|[[@@@@]]|@@@@}}</li>}}</ul> | {{#arrayprint:leaders||@@@@|{{#ifexist:@@@@|[[@@@@]]|@@@@}}}}}}</format></data> | |||
<data source="power-structure"><label>Power Structure</label><format>{{#var:power_structure_print}}</format></data> | |||
<data source="government-systems"><label>Government Systems</label><format>{{#ifexpr: {{#arraysize:government_systems}} > 1 | <ul>{{#arrayprint:government_systems||@@@@|<li>{{#ifexist:@@@@|[[@@@@]]|@@@@}}</li>}}</ul> | {{#arrayprint:government_systems||@@@@|{{#ifexist:@@@@|[[@@@@]]|@@@@}}}}}}</format></data> | |||
<data source="economic-structure"><label>Economic Structure</label><format>{{#var:economic_structure}}</format></data> | |||
<data source="geographic-location"><label>Geographic Location</label><format>{{#ifexist:{{#var:geographic_location}}|[[{{#var:geographic_location}}]]|{{#var:geographic_location}}}}</format></data> | |||
</group> | |||
</infobox></includeonly><noinclude>{{doc}}</noinclude> | |||
Latest revision as of 15:54, 27 March 2023
This template defines the table "nations". View table.Template:Infobox Nation/doc