Template:RegionInfobox: Difference between revisions

From The World of Gotha
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 22: Line 22:
|- {{#if: {{{density|}}} | | {{#if: {{{area|}}} | {{#if: {{{population|}}} | | style="display:none;" }} | style="display:none;" }} }}
|- {{#if: {{{density|}}} | | {{#if: {{{area|}}} | {{#if: {{{population|}}} | | style="display:none;" }} | style="display:none;" }} }}
! Density
! Density
| {{#if: {{{density|}}} | {{{density}}}/km<sup>2</sup> | {{#if: {{{area|}}}{{{population|}}} | {{#expr: {{formatnum:{{{population}}}|R}}/{{formatnum:{{{area}}}|R}} round 2 }}/km<sup>2</sup> | }} }}
| {{#if: {{{density|}}} | {{{density}}}/km<sup>2</sup> | {{#if: {{{area|}}}{{{population|}}} | {{formatnum: {{#expr: {{formatnum:{{{population}}}|R}}/{{formatnum:{{{area}}}|R}} round 2 }} }}/km<sup>2</sup> | }} }}
|- {{#if: {{{demonym|}}} | | style="display: none;" }}
|- {{#if: {{{demonym|}}} | | style="display: none;" }}
! Demonym
! Demonym
Line 34: Line 34:
|- {{#if: {{{gdp_per_capita|}}} | | {{#if: {{{population|}}} | {{#if: {{{gdp|}}} | | style="display:none;" }} | style="display: none;" }} }}
|- {{#if: {{{gdp_per_capita|}}} | | {{#if: {{{population|}}} | {{#if: {{{gdp|}}} | | style="display:none;" }} | style="display: none;" }} }}
! GDP per capita
! GDP per capita
| {{#if: {{{gdp_per_capita|}}} | [[Gotha standard|₲]]{{{gdp_per_capita}}} | {{#if: {{{population|}}}{{{gdp|}}} | [[Gotha standard|₲]]{{#expr: {{formatnum:{{{gdp}}}|R}}/{{formatnum:{{{population}}}|R}} round 0 }} | }} }}
| {{#if: {{{gdp_per_capita|}}} | [[Gotha standard|₲]]{{{gdp_per_capita}}} | {{#if: {{{population|}}}{{{gdp|}}} | [[Gotha standard|₲]]{{formatnum: {{#expr: {{formatnum:{{{gdp}}}|R}}/{{formatnum:{{{population}}}|R}} round 0 }} }} | }} }}
|}
|}

Revision as of 05:31, 13 November 2024

RegionInfobox

[[File:{{{map}}}|150px]]
Country {{{country}}}
Capital {{{capital}}}
Area {{{area}}} km2
Population {{{population}}}
Density
Demonym {{{demonym}}}
Time zone {{{timezone}}}
GDP
GDP per capita