Template:Infobox settlement: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Kaldari
a few more #ifs for testing
meta>Kaldari
finishing #if conversion, hopefully not breaking anything in the process...
Line 2: Line 2:
|+ style="font-size: 1.25em;" | '''{{{official_name}}}'''
|+ style="font-size: 1.25em;" | '''{{{official_name}}}'''
{{#if:{{{image_skyline|}}}|<tr><td colspan="2" style="text-align: center; padding-top: 0.7em; padding-bottom: 0.7em;">[[Image:{{{image_skyline|}}}|250px|{{{imagesize|}}}|none|Skyline of {{{official_name|}}}]]</td></tr>}}<!--
{{#if:{{{image_skyline|}}}|<tr><td colspan="2" style="text-align: center; padding-top: 0.7em; padding-bottom: 0.7em;">[[Image:{{{image_skyline|}}}|250px|{{{imagesize|}}}|none|Skyline of {{{official_name|}}}]]</td></tr>}}<!--
-->{{qif|test={{{image_flag|}}}{{{image_seal|}}}|then=<tr><td colspan="2" style="text-align: center;"><table align="center" style="background: none;"><tr style="text-align: center;"><!--
-->{{#if:{{{image_flag|}}}{{{image_seal|}}}|<tr><td colspan="2" style="text-align: center;"><table align="center" style="background: none;"><tr style="text-align: center;"><!--
-->{{qif|test={{{image_flag|}}}|then=<td style="width: 135px">[[Image:{{{image_flag|}}}|100px|Official flag of {{{official_name|}}}]]<br /><small><b>Flag</b></small></td>}}<!--
-->{{#if:{{{image_flag|}}}|<td style="width: 135px">[[Image:{{{image_flag|}}}|100px|Official flag of {{{official_name|}}}]]<br /><small><b>Flag</b></small></td>}}<!--
-->{{qif|test={{{image_seal|}}}|then=<td style="width: 110px">[[Image:{{{image_seal|}}}|75px|Official seal of {{{official_name|}}}]]<br /><small><b>Seal</b></small></td>}}<!--
-->{{#if:{{{image_seal|}}}|<td style="width: 110px">[[Image:{{{image_seal|}}}|75px|Official seal of {{{official_name|}}}]]<br /><small><b>Seal</b></small></td>}}<!--
--></tr></table></td></tr>}}<!--
--></tr></table></td></tr>}}<!--
-->{{qif|test={{{nickname|}}}|then=<tr style="font-size: smaller; text-align: center;"><td colspan="2">[[Nickname]]: "''{{{nickname|}}}''"</td></tr>}}<!--
-->{{#if:{{{nickname|}}}|<tr style="font-size: smaller; text-align: center;"><td colspan="2">[[Nickname]]: "''{{{nickname|}}}''"</td></tr>}}<!--
-->{{qif|test={{{motto|}}}|then=<tr style="font-size: smaller; text-align: center;"><td colspan="2">[[Motto]]: "''{{{motto|}}}''"</td></tr>}}<!--
-->{{#if:{{{motto|}}}|<tr style="font-size: smaller; text-align: center;"><td colspan="2">[[Motto]]: "''{{{motto|}}}''"</td></tr>}}<!--
-->{{qif|test={{{website|}}}|then=<tr style="font-size: smaller; text-align: center;"><td colspan="2">Official website: {{{website|}}}</td></tr>}}<!--
-->{{#if:{{{website|}}}|<tr style="font-size: smaller; text-align: center;"><td colspan="2">Official website: {{{website|}}}</td></tr>}}<!--
-->{{qif|test={{{image_map|}}}|then=<tr><th colspan="2" style="background-color: #e0e0e0; text-align: center;">Location</th></tr><tr><td align="center" colspan="2" style="font-size: smaller;">[[Image:{{{image_map|}}}|250px|{{{mapsize|}}}|Location of {{{official_name|}}}]] <br /> {{{map_caption|}}}</td></tr>}}
-->{{#if:{{{image_map|}}}|<tr><th colspan="2" style="background-color: #e0e0e0; text-align: center;">Location</th></tr><tr><td align="center" colspan="2" style="font-size: smaller;">[[Image:{{{image_map|}}}|250px|{{{mapsize|}}}|Location of {{{official_name|}}}]] <br /> {{{map_caption|}}}</td></tr>}}
|-
|-
! colspan="2" style="background-color: #e0e0e0; text-align: center;" | Government
! colspan="2" style="background-color: #e0e0e0; text-align: center;" | Government
Line 15: Line 15:
! {{{subdivision_type}}}
! {{{subdivision_type}}}
| {{{subdivision_name}}}
| {{{subdivision_name}}}
{{qif|test={{{leader_name|}}}|then=<tr><th>{{{leader_title|}}}</th><td>{{{leader_name|}}}</td></tr>}}
{{#if:{{{leader_name|}}}|<tr><th>{{{leader_title|}}}</th><td>{{{leader_name|}}}</td></tr>}}
|-
|-
! colspan="2" style="background-color: #e0e0e0; text-align: center;" | Geographical characteristics
! colspan="2" style="background-color: #e0e0e0; text-align: center;" | Geographical characteristics
Line 32: Line 32:
|-
|-
! [[Population]]
! [[Population]]
{{qif|test={{{population_note|}}}|then=<td></td>}}
{{#if:{{{population_note|}}}|<td></td>}}
|- style="text-indent: 1em;"
|- style="text-indent: 1em;"
! style="white-space: nowrap;" | Total ({{{population_as_of}}})
! style="white-space: nowrap;" | Total ({{{population_as_of}}})
| style="white-space: nowrap; text-indent: 0em;" | {{{population_total}}}
| style="white-space: nowrap; text-indent: 0em;" | {{{population_total}}}
{{qif|test={{{population_metro|}}}|then=<tr style="text-indent: 2em; white-space: nowrap;"><th style="white-space: nowrap;">[[Metropolitan area|Metro area]]</th><td style="white-space: nowrap; text-indent: 1em;>{{{population_metro}}}</td></tr>}}<!--
{{#if:{{{population_metro|}}}|<tr style="text-indent: 2em; white-space: nowrap;"><th style="white-space: nowrap;">[[Metropolitan area|Metro area]]</th><td style="white-space: nowrap; text-indent: 1em;>{{{population_metro}}}</td></tr>}}<!--
-->{{qif|test={{{population_density|}}}|then=<tr style="text-indent: 2em; white-space: nowrap;"><th>[[Population density|Density]]</th><td style="white-space: nowrap; text-indent: 1em;>{{{population_density}}}/[[Square metre|km²]]</td></tr>}}<!--
-->{{#if:{{{population_density|}}}|<tr style="text-indent: 2em; white-space: nowrap;"><th>[[Population density|Density]]</th><td style="white-space: nowrap; text-indent: 1em;>{{{population_density}}}/[[Square metre|km²]]</td></tr>}}<!--
-->{{qif|test={{{population_density_mi2|}}}|then=<tr style="text-indent: 2em; white-space: nowrap;"><th>Density</th><td style="white-space: nowrap; text-indent: 1em;>{{{population_density_mi2}}}/[[Square mile|mi²]]</td></tr>}}<!--
-->{{#if:{{{population_density_mi2|}}}|<tr style="text-indent: 2em; white-space: nowrap;"><th>Density</th><td style="white-space: nowrap; text-indent: 1em;>{{{population_density_mi2}}}/[[Square mile|mi²]]</td></tr>}}<!--
-->{{qif|test={{{latNS|}}}|then=<tr><th>[[Geographic coordinate system|Coordinates]]</th><td><span class="plainlinksneverexpand"
-->{{#if:{{{latNS|}}}|<tr><th>[[Geographic coordinate system|Coordinates]]</th><td><span class="plainlinksneverexpand"
>[http://kvaleberg.com/extensions/mapsources/index.php?params={{{latd}}}_{{{latm}}}_{{{lats|0}}}_{{{latNS}}}_{{{longd}}}_{{{longm}}}_{{{longs|0}}}_{{{longEW}}}<!--_type:city({{{population_total}}})-->  {{{latd}}}°{{{latm}}}′{{{lats|0}}}″&nbsp;{{{latNS}}} <br/>  {{{longd}}}°{{{longm}}}′{{{longs|0}}}″&nbsp;{{{longEW}}}]</span></td></tr>}}<!--
>[http://kvaleberg.com/extensions/mapsources/index.php?params={{{latd}}}_{{{latm}}}_{{{lats|0}}}_{{{latNS}}}_{{{longd}}}_{{{longm}}}_{{{longs|0}}}_{{{longEW}}}<!--_type:city({{{population_total}}})-->  {{{latd}}}°{{{latm}}}′{{{lats|0}}}″&nbsp;{{{latNS}}} <br/>  {{{longd}}}°{{{longm}}}′{{{longs|0}}}″&nbsp;{{{longEW}}}]</span></td></tr>}}<!--
-->{{#if:{{{elevation|}}}|<tr><th>[[Elevation]]</th><td style="white-space: nowrap;">{{{elevation|}}} [[metre|m]]</td></tr>}}
-->{{#if:{{{elevation|}}}|<tr><th>[[Elevation]]</th><td style="white-space: nowrap;">{{{elevation|}}} [[metre|m]]</td></tr>}}

Revision as of 22:58, 18 April 2006

{{{official_name}}}
Government
{{{subdivision_type}}} {{{subdivision_name}}}
Geographical characteristics
Area
Total [[{{{area_magnitude}}}_m²|{{{area_total}}} km²]]
Land {{{area_land}}} km²
Water {{{area_water}}} km²
Population
Total ({{{population_as_of}}}) {{{population_total}}}
Time zone {{{timezone}}} ([[UTC{{{utc_offset}}}]])