Template:Infobox Nation: Difference between revisions

From Errapedia
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 --...")
 
No edit summary
Line 59: Line 59:
| sorth = 9
| sorth = 9
| #default = 0}}}}<!--
| #default = 0}}}}<!--
-->{{#vardefine:foundingprint|{{#invoke:ErraCalendar|PrintDate|year={{#var:foundingyear}}|month={{#var:foundingmonth}}|date={{#var:foundingdate}}}}}}<!--


-->{{#cargo_store:
-->{{#cargo_store:
Line 75: Line 77:
}}<!--
}}<!--


-->
--><infobox theme="delta">
<title source="name"><default>{{PAGENAME}}</default></title>
<image source="image"><default>File:{{PAGENAMEE}}.png</default></image>
<data source="axiom"><format>{{#if:{{#var:axiom}}|<div style="text-align:center;"><i>{{#var:axiom}}</i></div>|}}</format></data>
<group>
<data source="founding-date"><label>Founded</label><format>{{#var:foundingprint}}</format></data>
<data source="demonym"><label>Demonym</label><format>{{#ifexpr: {{#arraysize:demonym}} > 1 | <ul>{{#arrayprint:demonym||@@@@|<li>@@@@</li>}}</ul> | {{#arrayprint:nationality||@@@@|<li>@@@@</li>}}}}</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}}</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>

Revision as of 15:07, 23 March 2023

This template defines the table "nations". View table.Template:Infobox Nation/doc