Template: Infobox nation: Difference between revisions

From The Shire
Jump to: navigation, search
Taxcuts (talk | contribs)
No edit summary
Taxcuts (talk | contribs)
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{| class="infobox" cellpadding="2" style="width:320px; text-align:left; font-size:90%; border:1px solid #aaa; border-collapse:collapse; float:right; margin:0 0 1em 1em;"
<table class="infobox" style="width:320px; text-align:left; font-size:90%; border:1px solid #aaa; border-collapse:collapse; float:right; margin:0 0 1em 1em; padding:2px;">
|-
 
! colspan="2" style="font-size:150%; text-align:center; height:48px;" | {{{name|Unnamed nation}}}
<tbody><tr>
<th colspan="2" style="text-align:center; font-size:150%; height:48px;">{{{name|Unnamed nation}}}</th>
</tr>


{{#if:{{{flag|}}}{{{coa|}}}|
{{#if:{{{flag|}}}{{{coa|}}}|
  |-
<tr>
  | style="text-align:center; width:50%;" | {{#if:{{{flag|}}}|[[File:{{{flag}}}|150px|border|alt={{{name|}}}'s flag]]|}}
<td style="text-align:center; width:50%;">{{#if:{{{flag|}}}|[[File:{{{flag}}}|150px|border|alt={{{name|}}}'s flag]]|}}</td>
  | style="text-align:center; width:50%;" | {{#if:{{{coa|}}}|[[File:{{{coa}}}|150px|border|alt={{{name|}}}'s coat of arms]]|}}
<td style="text-align:center; width:50%;">{{#if:{{{coa|}}}|[[File:{{{coa}}}|150px|border|alt={{{name|}}}'s coat of arms]]|}}</td>
</tr>
}}
}}


{{#if:{{{motto|}}}|
{{#if:{{{motto|}}}|
  |-
<tr>
  ! colspan="2" style="text-align:center;" | ''{{{motto}}}''
<th colspan="2" style="text-align:center; font-style:italic;">{{{motto}}}</th>
</tr>
}}
}}


{{#if:{{{collage|}}}|
{{#if:{{{collage|}}}|
  |-
<tr>
  | colspan="2" style="text-align:center;" | [[File:{{{collage}}}|320px|border]]
<td colspan="2" style="text-align:center;">[[File:{{{collage}}}|320px|border]]</td>
</tr>
}}
}}


|-
<tr>
! Capital
<th>Capital</th>
| {{{capital|—}}}{{#if:{{{capital-x|}}}{{{capital-z|}}}|<br /><small>({{{capital-x}}}, {{{capital-z}}})</small>|}}
<td>{{{capital|—}}}{{#if:{{{capital-x|}}}{{{capital-z|}}}|<br /><small>({{{capital-x}}}, {{{capital-z}}})</small>|}}</td>
|-
</tr>
! Largest&nbsp;city
<tr>
| {{{largest|—}}}{{#if:{{{largest-x|}}{{{largest-z|}}}|<br /><small>({{{largest-x}}}, {{{largest-z}}})</small>|}}
<th>Largest&nbsp;city</th>
|-
<td>{{{largest|—}}}{{#if:{{{largest-x|}}{{{largest-z|}}}|<br /><small>({{{largest-x}}}, {{{largest-z}}})</small>|}}</td>
! Area
</tr>
| {{#if:{{{area|}}}|{{{area}}}&nbsp;Block<sup>2</sup>|—}}
<tr>
|-
<th>Area</th>
! Population <small>({{{pop-year|2025}}})</small>
<td>{{#if:{{{area|}}}|{{{area}}}&nbsp;Block<sup>2</sup>|—}}</td>
| {{#if:{{{population|}}}|{{{population}}}|—}}
</tr>
<tr>
<th>Population <small>({{{pop-year|2025}}})</small></th>
<td>{{#if:{{{population|}}}|{{{population}}}|—}}</td>
</tr>


{{#if:{{{govt-type|}}}{{{king|}}}{{{emperor|}}}{{{president|}}}{{{dictator|}}}{{{chiefexec|}}}|
{{#if:{{{govt-type|}}}{{{king|}}}{{{emperor|}}}{{{president|}}}{{{dictator|}}}{{{chiefexec|}}}|
  |-
<tr>
  ! colspan="2" style="background:#ABE; text-align:center;" | Government
<th colspan="2" style="background:#ABE; text-align:center;">Government</th>
</tr>
}}
}}
{{#if:{{{govt-type|}}}|
{{#if:{{{govt-type|}}}|
  |-
<tr>
  ! Type
<th>Type</th>
  | {{{govt-type}}}
<td>{{{govt-type}}}</td>
</tr>
}}
}}
{{#if:{{{king|}}}|
{{#if:{{{king|}}}|
  |-
<tr>
  ! King
<th>King</th>
  | {{{king}}}
<td>{{{king}}}</td>
</tr>
}}
}}
{{#if:{{{emperor|}}}|
{{#if:{{{emperor|}}}|
  |-
<tr>
  ! Emperor
<th>Emperor</th>
  | {{{emperor}}}
<td>{{{emperor}}}</td>
</tr>
}}
}}
{{#if:{{{president|}}}|
{{#if:{{{president|}}}|
  |-
<tr>
  ! President
<th>President</th>
  | {{{president}}}
<td>{{{president}}}</td>
</tr>
}}
}}
{{#if:{{{dictator|}}}|
{{#if:{{{dictator|}}}|
  |-
<tr>
  ! Dictator
<th>Dictator</th>
  | {{{dictator}}}
<td>{{{dictator}}}</td>
</tr>
}}
}}
{{#if:{{{chiefexec|}}}|
{{#if:{{{chiefexec|}}}|
  |-
<tr>
  ! Chief&nbsp;Executive
<th>Chief&nbsp;Executive</th>
  | {{{chiefexec}}}
<td>{{{chiefexec}}}</td>
</tr>
}}
}}


{{#if:{{{gdp|}}}{{{gdp-pc|}}}{{{currency|}}}{{{gini|}}}{{{hdi|}}}|
{{#if:{{{gdp|}}}{{{gdp-pc|}}}{{{currency|}}}{{{gini|}}}{{{hdi|}}}|
  |-
<tr>
  ! colspan="2" style="background:#ABE; text-align:center;" | Economy
<th colspan="2" style="background:#ABE; text-align:center;">Economy</th>
</tr>
}}
}}
{{#if:{{{gdp|}}}|
{{#if:{{{gdp|}}}|
  |-
<tr>
  ! GDP&nbsp;(nominal)
<th>GDP&nbsp;(nominal)</th>
  | <span style="color:#3a3;">▲</span>&nbsp;${{{gdp}}}
<td><span style="color:#3a3;">▲</span>&nbsp;${{{gdp}}}</td>
</tr>
}}
}}
{{#if:{{{gdp-pc|}}}|
{{#if:{{{gdp-pc|}}}|
  |-
<tr>
  ! GDP&nbsp;(per&nbsp;capita)
<th>GDP&nbsp;(per&nbsp;capita)</th>
  | <span style="color:#3a3;">▲</span>&nbsp;${{{gdp-pc}}}
<td><span style="color:#3a3;">▲</span>&nbsp;${{{gdp-pc}}}</td>
</tr>
}}
}}
{{#if:{{{currency|}}}|
{{#if:{{{currency|}}}|
  |-
<tr>
  ! Currency
<th>Currency</th>
  | {{{currency}}}
<td>{{{currency}}}</td>
</tr>
}}
}}
{{#if:{{{gini|}}}|
{{#if:{{{gini|}}}|
  |-
<tr>
  ! GINI
<th>GINI</th>
  | {{{gini}}}
<td>{{{gini}}}</td>
</tr>
}}
}}
{{#if:{{{hdi|}}}|
{{#if:{{{hdi|}}}|
  |-
<tr>
  ! HDI
<th>HDI</th>
  | {{{hdi}}}
<td>{{{hdi}}}</td>
</tr>
}}
}}


{{#if:{{{warp|}}}{{{sta|}}}{{{builders|}}}{{{built|}}}{{{historical|}}}|
{{#if:{{{warp|}}}{{{sta|}}}{{{builders|}}}{{{built|}}}{{{historical|}}}|
  |-
<tr>
  ! colspan="2" style="background:#ABE; text-align:center;" | Server&nbsp;Info
<th colspan="2" style="background:#ABE; text-align:center;">Server&nbsp;Info</th>
</tr>
}}
}}
{{#if:{{{warp|}}}|
{{#if:{{{warp|}}}|
  |-
<tr>
  ! Warp
<th>Warp</th>
  | <code>/warp&nbsp;{{{warp}}}</code>
<td><code>/warp&nbsp;{{{warp}}}</code></td>
</tr>
}}
}}
{{#if:{{{sta|}}}|
{{#if:{{{sta|}}}|
  |-
<tr>
  ! STA&nbsp;lines
<th>STA&nbsp;lines</th>
  | {{#replace:{{{sta}}}|,|<br />}}
<td>{{#replace:{{{sta}}}|,|<br />}}</td>
</tr>
}}
}}
{{#if:{{{builders|}}}|
{{#if:{{{builders|}}}|
  |-
<tr>
  ! Builders
<th>Builders</th>
  | {{{builders}}}
<td>{{{builders}}}</td>
</tr>
}}
}}
{{#if:{{{built|}}}|
{{#if:{{{built|}}}|
  |-
<tr>
  ! Built
<th>Built</th>
  | {{{built}}}
<td>{{{built}}}</td>
</tr>
}}
}}
{{#ifexpr:{{lc:{{{historical|no}}}}} = yes |
{{#ifeq: {{lc:{{{historical|no}}}}} | yes |
  |-
<tr>
  | colspan="2" style="text-align:center;" | [[File:Historicalregistry.png|128px]]
<td colspan="2" style="text-align:center;">[[File:Historicalregistry.png|128px]]</td>
</tr>
}}
}}


|}
</tbody></table>
</includeonly>
</includeonly>



Revision as of 14:59, 7 June 2025


Usage

Paste on a nation page and fill whichever fields you need:

{{Infobox nation
 | name        = 
 | motto       = 
 | flag        = Flag.svg
 | coa         = Coat.svg
 | collage     = CityCollage.png
 | capital     = Capital City
 | capital-x   = 123
 | capital-z   = -456
 | largest     = Big City
 | largest-x   = 100
 | largest-z   = -400
 | area        = 250000
 | population  = 750000
 | pop-year    = 2026
 | govt-type   = Constitutional monarchy
 | king        = King Steve
 | emperor     = 
 | president   = 
 | dictator    = 
 | chiefexec   = 
 | currency    = GOL
 | gdp         = 42.3 B
 | gdp-pc      = 78 k
 | gini        = 0.30
 | hdi         = 0.91
 | warp        = nationwarp
 | sta         = Red Line, Blue Line
 | builders    = Player1, Player2
 | built       = 2024
 | historical  = yes
}}

Any blank parameter (or one you delete) is simply omitted from the infobox.