Template: Infobox nation: Difference between revisions
From The Shire
Created page with "<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;" |- ! colspan="2" style="font-size:150%; text-align:center; height:48px;" | {{{name|Unnamed nation}}} |- | style="text-align:center; width:50%;" | [[File:{{{flag|No_flag.svg}}}|150px|border|Flag]] | style="text-align:center; width:50%;" | File:{{{coa|No_coa.svg}}}|150px|border|Coat of arms..." |
No edit summary |
||
| Line 4: | Line 4: | ||
! colspan="2" style="font-size:150%; text-align:center; height:48px;" | {{{name|Unnamed nation}}} | ! colspan="2" style="font-size:150%; text-align:center; height:48px;" | {{{name|Unnamed nation}}} | ||
|- | |- | ||
| style="text-align:center; width:50%;" | [[File:{{{flag|No_flag.svg}}}|150px|border | | style="text-align:center; width:50%;" | | ||
| style="text-align:center; width:50%;" | [[File:{{{coa|No_coa.svg}}}|150px|border | [[File:{{{flag|No_flag.svg}}}|150px|border]] | ||
| style="text-align:center; width:50%;" | | |||
[[File:{{{coa|No_coa.svg}}}|150px|border]] | |||
{{#if:{{{motto|}}}| | |||
|- | |- | ||
! colspan="2" style="text-align:center;" | Motto: ''{{{motto | ! colspan="2" style="text-align:center;" | Motto: ''{{{motto}}}'' | ||
}} | |||
|- | |- | ||
| colspan="2" style="text-align:center;" | [[File:{{{collage|No_collage.png}}}|320px|border]] | | colspan="2" style="text-align:center;" | | ||
[[File:{{{collage|No_collage.png}}}|320px|border]] | |||
|- | |- | ||
! Capital | ! Capital | ||
| {{{capital|}}} | | {{{capital|—}}} | ||
|- | |- | ||
| | | colspan="2" style="font-size:85%; color:#555; text-align:center;" | {{#if:{{{capital-x|}}{{{capital-z|}}}|{{{capital-x|}}}, {{{capital-z|}}}| }}} | ||
|- | |- | ||
! Largest | ! Largest city | ||
| {{{largest|}}} | | {{{largest|—}}} | ||
|- | |- | ||
| | | colspan="2" style="font-size:85%; color:#555; text-align:center;" | {{#if:{{{largest-x|}}{{{largest-z|}}}|{{{largest-x|}}}, {{{largest-z|}}}| }}} | ||
|- | |- | ||
! Area | ! Area | ||
| Line 30: | Line 33: | ||
|- | |- | ||
! colspan="2" style="background:#ABE; text-align:center;" | Government | ! colspan="2" style="background:#ABE; text-align:center;" | Government | ||
{{#if:{{{king|}}}| | |||
|- | |||
! King | |||
| {{{king}}} | |||
}} | |||
{{#if:{{{emperor|}}}| | |||
|- | |||
! Emperor | |||
| {{{emperor}}} | |||
}} | |||
{{#if:{{{president|}}}| | |||
|- | |||
! President | |||
| {{{president}}} | |||
}} | |||
{{#if:{{{dictator|}}}| | |||
|- | |||
! Dictator | |||
| {{{dictator}}} | |||
}} | |||
{{#if:{{{chiefexec|}}}| | |||
|- | |||
! Chief Executive | |||
| {{{chiefexec}}} | |||
}} | |||
{{#if:{{{govt-type|}}}| | |||
|- | |- | ||
! Type | ! Type | ||
| {{{govt-type | | {{{govt-type}}} | ||
}} | |||
|- | |- | ||
! colspan="2" style="background:#ABE; text-align:center;" | Economy | ! colspan="2" style="background:#ABE; text-align:center;" | Economy | ||
{{#if:{{{gdp|}}}| | |||
|- | |- | ||
! GDP (nominal) | ! GDP (nominal) | ||
| <span style="color:#3a3;">▲</span> ${{{gdp| | | <span style="color:#3a3; font-size:100%;">▲</span> ${{{gdp}}} | ||
}} | |||
{{#if:{{{gdp-pc|}}}| | |||
|- | |- | ||
! GDP (per capita) | ! GDP (per capita) | ||
| <span style="color:#3a3;">▲</span> ${{{gdp-pc| | | <span style="color:#3a3; font-size:100%;">▲</span> ${{{gdp-pc}}} | ||
}} | |||
{{#if:{{{currency|}}}| | |||
|- | |- | ||
! Currency | ! Currency | ||
| {{{currency|}}} | | {{{currency}}} | ||
}} | |||
{{#if:{{{gini|}}}| | |||
|- | |- | ||
! GINI | ! GINI | ||
| {{{gini| | | {{{gini}}} | ||
}} | |||
{{#if:{{{hdi|}}}| | |||
|- | |- | ||
! HDI | ! HDI | ||
| {{{hdi| | | {{{hdi}}} | ||
}} | |||
<!-- ===== Server Info block (only if any field is present) ===== --> | |||
{{#if:{{{warp|}}}{{{sta|}}}{{{builders|}}}{{{built|}}}{{{historical|}}}| | |||
|- | |||
! colspan="2" style="background:#ABE; text-align:center;" | Server Info | |||
{{#if:{{{warp|}}}| | |||
|- | |||
! Warp | |||
| <code>/warp {{{warp}}}</code> | |||
}} | |||
{{#if:{{{sta|}}}| | |||
|- | |||
! STA Lines | |||
| {{#replace:{{{sta}}}|,|<br/>}} | |||
}} | |||
{{#if:{{{builders|}}}| | |||
|- | |||
! Builders | |||
| {{{builders}}} | |||
}} | |||
{{#if:{{{built|}}}| | |||
|- | |||
! Built | |||
| {{{built}}} | |||
}} | |||
{{#ifexpr:{{{historical|no}}} = yes | | |||
|- | |||
| colspan="2" style="text-align:center;" | | |||
[[File:Historicalregistry.png|128px]] | |||
}} | |||
}} | |||
|} | |} | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
==Usage== | ==Usage== | ||
Paste: | Paste on a nation page and fill as needed (omit any field to hide it): | ||
<pre>{{Infobox nation | <pre>{{Infobox nation | ||
| Line 73: | Line 141: | ||
| area = | | area = | ||
| population = | | population = | ||
| pop-year = | | pop-year = 2025 | ||
| govt-type = | | govt-type = | ||
| | | king = | ||
| emperor = | |||
| president = | |||
| dictator = | |||
| chiefexec = | |||
| currency = | | currency = | ||
| gdp = | | gdp = | ||
| Line 81: | Line 153: | ||
| gini = | | gini = | ||
| hdi = | | hdi = | ||
| warp = | |||
| sta = Line 1, Line 2 | |||
| builders = Player1, Player2 | |||
| built = 2024 | |||
| historical = yes | |||
}}</pre> | }}</pre> | ||
Any blank parameter (or ones you delete) simply won’t show. | |||
</noinclude> | </noinclude> | ||
Revision as of 14:41, 7 June 2025
Usage
Paste on a nation page and fill as needed (omit any field to hide it):
{{Infobox nation
| name =
| motto =
| flag =
| coa =
| collage =
| capital =
| capital-x =
| capital-z =
| largest =
| largest-x =
| largest-z =
| area =
| population =
| pop-year = 2025
| govt-type =
| king =
| emperor =
| president =
| dictator =
| chiefexec =
| currency =
| gdp =
| gdp-pc =
| gini =
| hdi =
| warp =
| sta = Line 1, Line 2
| builders = Player1, Player2
| built = 2024
| historical = yes
}}
Any blank parameter (or ones you delete) simply won’t show.