Template:Infobox settlement: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Plastikspork
Add missing footnotes for other population fields, remove extra space between text and footnotes, move population rank under population, and density rank under density
meta>Plastikspork
Per edit request to fix bug
Line 351: Line 351:
{{#ifeq:{{{total_type}}}|&nbsp;||<tr class="mergedrow">
{{#ifeq:{{{total_type}}}|&nbsp;||<tr class="mergedrow">
<th> &nbsp;-&nbsp;{{#if:{{{total_type|}}}|{{{total_type}}}|{{#if:{{{area_metro_km2|}}}{{{area_metro_sq_mi|}}}{{{area_urban_km2|}}}{{{area_urban_sq_mi|}}}{{{area_rural_km2|}}}{{{area_rural_sq_mi|}}}{{{population_metro|}}}{{{population_urban|}}}{{{population_rural|}}}|{{#if:{{{settlement_type|{{{type|}}}}}}|{{{settlement_type|{{{type}}}}}}|City}}|Total}}}}</th>}}
<th> &nbsp;-&nbsp;{{#if:{{{total_type|}}}|{{{total_type}}}|{{#if:{{{area_metro_km2|}}}{{{area_metro_sq_mi|}}}{{{area_urban_km2|}}}{{{area_urban_sq_mi|}}}{{{area_rural_km2|}}}{{{area_rural_sq_mi|}}}{{{population_metro|}}}{{{population_urban|}}}{{{population_rural|}}}|{{#if:{{{settlement_type|{{{type|}}}}}}|{{{settlement_type|{{{type}}}}}}|City}}|Total}}}}</th>}}
<td>{{#if:{{both|{{among|unit_pref|dunam|Dunam}}|{{{area_total_dunam|}}}}}|{{formatnum:{{{area_total_dunam|}}}&nbsp;[[Dunam|dunams]] ({{#if:{{{area_total_km2|}}}|{{{area_total_km2|}}}&nbsp;[[Square kilometre|km<sup>2</sup>]]|{{#expr: {{{area_total_dunam|}}} *0.001 round 1}}&nbsp;[[Square kilometre|km<sup>2</sup>]]}}&nbsp;'''/'''&nbsp;{{#if: {{{area_total_sq_mi|}}}|{{{area_total_sq_mi|}}}&nbsp;[[square mile|sq&nbsp;mi]]|{{#expr: {{{area_total_dunam|}}} *0.000386102 round 1}}&nbsp;[[square mile|sq&nbsp;mi]]}})}}|{{infobox_settlement/areadisp|{{{unit_pref|}}}|{{{area_total_sq_mi|}}}|{{{area_total_km2|}}}|{{{area_magnitude|}}}||{{{subdivision_name|}}}}}}}</td>
<td>{{#if:{{both|{{among|{{{unit_pref|}}}|dunam|Dunam}}|{{{area_total_dunam|}}}}}|{{formatnum:{{{area_total_dunam|}}}&nbsp;[[Dunam|dunams]] ({{#if:{{{area_total_km2|}}}|{{{area_total_km2|}}}&nbsp;[[Square kilometre|km<sup>2</sup>]]|{{#expr: {{{area_total_dunam|}}} *0.001 round 1}}&nbsp;[[Square kilometre|km<sup>2</sup>]]}}&nbsp;'''/'''&nbsp;{{#if: {{{area_total_sq_mi|}}}|{{{area_total_sq_mi|}}}&nbsp;[[square mile|sq&nbsp;mi]]|{{#expr: {{{area_total_dunam|}}} *0.000386102 round 1}}&nbsp;[[square mile|sq&nbsp;mi]]}})}}|{{infobox_settlement/areadisp|{{{unit_pref|}}}|{{{area_total_sq_mi|}}}|{{{area_total_km2|}}}|{{{area_magnitude|}}}||{{{subdivision_name|}}}}}}}</td>
</tr>
</tr>
}}{{#if:{{{area_land_km2|}}}{{{area_land_sq_mi|}}}|
}}{{#if:{{{area_land_km2|}}}{{{area_land_sq_mi|}}}|

Revision as of 00:03, 21 June 2010

{{{official_name}}}