Template:Infobox settlement: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Harpchad
rv, too many broken pages, more testing needed
meta>Harpchad
Merge attempt 2, image size problems resolved
Line 1: Line 1:
{|class="infobox" style="width: 23em; font-size: 95%; text-align: left;"
{| class="infobox" style="width: 23em; font-size: 95%; text-align: left;"
|+ 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|{{{image_caption|Skyline of {{{official_name|}}}}}}]]{{#if:{{{image_caption|}}}|<small>{{{image_caption|}}}</small>}}</td></tr>}}<!--
<!-- ***** Skyline Image ***** -->
-->{{#if:{{{image_flag|}}}{{{image_seal|}}}|<tr><td colspan="2" style="text-align: center;"><table align="center" style="background: none;"><tr style="text-align: center;"><!--
{{#if:{{{image_skyline|}}}|
-->{{#if:{{{image_flag|}}}|<td style="width: 125px; vertical-align: bottom;">[[Image:{{{image_flag|}}}|100px|Official flag of {{{official_name|}}}]]<br /><small><b>Flag</b></small></td>}}<!--
{{!}} colspan="2" style="text-align: center; padding-top: 0.7em; padding-bottom: 0.7em;" {{!}} [[Image:{{{image_skyline|}}}|{{{imagesize|250px}}}|none|{{{image_caption|Skyline of {{{official_name|}}}}}}]]{{#if:{{{image_caption|}}}|<small>{{{image_caption|}}}</small>}}
-->{{#if:{{{image_seal|}}}|<td style="vertical-align: bottom;">[[Image:{{{image_seal|}}}|{{{image_seal_size|100px}}}|Official seal of {{{official_name|}}}]]<br /><small><b>Seal</b></small></td>}}<!--
{{!}}-
--></tr></table></td></tr>}}<!--
}}
-->{{#if:{{{nickname|}}}|<tr style="font-size: smaller; text-align: center;"><td colspan="2">[[Nickname]]: "''{{{nickname|}}}''"</td></tr>}}<!--
<!-- ***** Flag and Seal ***** -->
-->{{#if:{{{motto|}}}|<tr style="font-size: smaller; text-align: center;"><td colspan="2">[[Motto]]: "''{{{motto|}}}''"</td></tr>}}<!--
{{#if:{{{image_flag|}}}{{{image_seal|}}}|
-->{{#if:{{{website|}}}|<tr style="font-size: smaller; text-align: center;"><td colspan="2">Official website: {{{website|}}}</td></tr>}}<!--
{{!}} colspan="2" align="center" {{#if:{{{image_skyline|}}}| style="border-top: solid 1px #ccd2d9;"}} {{!}}
-->{{#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>}}
{{{!}} style="width: 23em; background: none; text-align: center;"
{{!}}-
{{#if:{{{image_flag|}}}| {{!}} style="vertical-align: middle;" {{!}} [[Image:{{{image_flag|}}}|125px|Official flag of {{{official_name|}}}]] }}
{{#if:{{{image_seal|}}}| {{!}} style="vertical-align: middle;" {{!}} [[Image:{{{image_seal|}}}|100px|Official seal of {{{official_name|}}}]] }}
{{!}}-
{{#if:{{{image_flag|}}}| {{!}} <small>'''Flag'''</small> }}
{{#if:{{{image_seal|}}}| {{!}} <small>'''Seal'''</small>}}
{{!}}}}}
<!-- ***** Nickname ***** -->
{{#if:{{{nickname|}}}|
{{!}}-
{{!}} colspan="2" align="center" style="font-size: smaller; {{#if:{{{image_flag|}}}{{{image_seal|}}}| border-top: solid 1px #ccd2d9;" | " }} {{!}} [[Nickname]]<br> "''{{{nickname|}}}''" }}
<!-- ***** Motto ***** -->
{{#if:{{{motto|}}}|
{{!}}-
{{!}} colspan="2" align="center" style="font-size: smaller; {{#if:{{{image_flag|}}}{{{image_seal|}}}{{{nickname|}}}| border-top: solid 1px #ccd2d9;" | " }} {{!}} [[Motto]]<br> "''{{{motto|}}}''" }}
<!-- ***** Map ***** -->
{{#if:{{{image_map|}}}|
{{!}}-
! colspan="2" style="background-color: #e0e0e0; text-align: center;" {{!}} Location
{{!}}-
{{!}} colspan="2" style="text-align: center; padding-top: 0.7em; padding-bottom: 0.7em;" {{!}}
[[Image:{{{image_map|}}}|{{{mapsize|250px}}}|none|{{map_caption|Location of {{{official_name|}}}}}}]]{{#if:{{{map_caption|}}}|<small>{{{map_caption|}}}</small>}}
{{!}}-
}}
<!--***** Government *****-->
|-
|-
! colspan="2" style="background-color: #e0e0e0; text-align: center;" | Government
! colspan="2" style="background-color: #e0e0e0; text-align: center;" | Government
|-
|-
! {{{subdivision_type}}}
! style="background: #EDEDED;"| {{{subdivision_type}}}
| {{{subdivision_name}}}
| {{{subdivision_name}}}
{{#if:{{{established_title|}}}|<tr><th>{{{established_title|}}}</th><td>{{{established_date|}}}</td></tr>}}
{{#if:{{{leader_name|}}}|<tr><th>{{{leader_title|}}}</th><td>{{{leader_name|}}}</td></tr>}}
|-
|-
<!--***** Established *****-->
{{#if:{{{established_title|}}}|
{{!}}-
! style="background: #EDEDED;"{{!}}{{{established_title}}}
{{!}} {{{established_date}}}
{{!}}-}}
<!-- ***** Leader ***** -->
{{#if:{{{leader_title|}}}|
{{!}}-
! style="background: #EDEDED;"{{!}}{{{leader_title}}}
{{!}} {{{leader_name}}}
{{!}}-}}
|-
<!-- ***** Geographical characteristics ***** -->
! colspan="2" style="background-color: #e0e0e0; text-align: center;" | Geographical characteristics
! colspan="2" style="background-color: #e0e0e0; text-align: center;" | Geographical characteristics
|-
|-
! [[Area]]
<!-- ***** Area ***** -->
| style="white-space: nowrap;" |
! style="background: #EDEDED;"|[[Area]]<br>&nbsp;- Total<br>&nbsp;- Land<br>&nbsp;- Water
|- style="text-indent: 1em;"
| <br> [[{{{area_magnitude}}}_m²|{{{area_total}}} km²]]{{#if:{{{TotalArea_sq_mi|}}} |&nbsp;({{{TotalArea_sq_mi}}}&nbsp;[[square mile|sq&nbsp;mi]])}} <br> {{{area_land}}} [[Square kilometre|km²]]{{#if:{{{LandArea_sq_mi|}}} | &nbsp;({{{LandArea_sq_mi}}}&nbsp;sq&nbsp;mi)}} <br> {{{area_water}}} km²{{#if:{{{WaterArea_sq_mi|}}} | &nbsp;({{{WaterArea_sq_mi}}}&nbsp;sq&nbsp;mi)}}
! Total
| style="white-space: nowrap; text-indent: 0em;" |
{{#if:{{{area_magnitude|}}} |
    {{#if:{{{TotalArea_sq_mi|}}} |
        [[{{{area_magnitude}}}_m²|{{{TotalArea_sq_mi}}} sq&nbsp;mi&nbsp; ({{{area_total}}} km²)]]
    |
        [[{{{area_magnitude}}}_m²|{{{area_total}}} km²]]
    }}
|
    {{#if:{{{TotalArea_sq_mi|}}} |
        {{{TotalArea_sq_mi}}} sq&nbsp;mi&nbsp; ({{{area_total}}} km²)
    |
        {{{area_total}}} km²
    }}
}}
|- style="text-indent: 2em;"
! Land
| style="white-space: nowrap; text-indent: 1em;" | {{#if:{{{LandArea_sq_mi|}}}  
  | {{{LandArea_sq_mi|}}}&nbsp;[[square mile|sq&nbsp;mi]]&nbsp; ({{{area_land}}} [[Square kilometre|km²]])
  | {{{area_land}}} [[Square kilometre|km²]]}}
|- style="text-indent: 2em;"
! Water
| style="white-space: nowrap; text-indent: 1em;" | {{#if:{{{WaterArea_sq_mi|}}}  
  | {{{WaterArea_sq_mi|}}}&nbsp;sq&nbsp;mi&nbsp; ({{{area_water}}} km²)  
  | {{{area_water}}} km²}}
|-
|-
! style="white-space: nowrap;" | [[Population]] ({{{population_as_of}}})
<!-- ***** Population ***** -->
{{#if:{{{population_note|}}}|<td style="white-space: nowrap; text-indent: 1em;>{{{population_note}}} </td>}}
! style="background: #EDEDED; white-space: nowrap;" |[[Population]] <br>&nbsp;- Total ({{{population_as_of}}}){{#if:{{{population_density|}}}|<br>&nbsp;- [[Population density|Density]]}}{{#if:{{{population_metro|}}}| <br>&nbsp;- [[Metropolitan area|Metro area]]}}{{#if:{{{population_urban|}}}| <br>&nbsp;- [[Urban area]]}}
|- style="text-indent: 1em;"
| style="white-space: nowrap;" | <br>{{{population_total}}} {{#if:{{{population_density|}}}| <br>{{{population_density}}}/[[Square kilometre|km²]]{{#if:{{{population_density_mi2|}}}|&nbsp;({{{population_density_mi2}}}/[[Square mile|sq&nbsp;mi]])}}}} {{#if:{{{population_metro|}}}| <br>{{{population_metro}}}}} {{#if:{{{population_urban|}}}| <br>{{{population_urban}}}}} {{#if:{{{population_note|}}}|<br> <small>''{{{population_note}}}''</small> }}
! style="white-space: nowrap;" | City proper
| style="white-space: nowrap; text-indent: 0em;" | {{{population_total}}}
|- style="text-indent: 2em;"
! [[Population density|Density]]
| style="white-space: nowrap; text-indent: 1em;" | {{#if:{{{population_density_mi2|}}}|{{{population_density_mi2|}}}&nbsp;/sq&nbsp;mi&nbsp; ({{{population_density}}} /km²)|{{{population_density}}} /km²}}<!--
-->{{#if:{{{population_urban|}}}|<tr style="text-indent: 1em; white-space: nowrap;"><th style="white-space: nowrap;">[[Urban area]]</th><td style="white-space: nowrap; text-indent: 1em;>{{{population_urban}}}</td></tr>}}<!--
-->{{#if:{{{population_metro|}}}|<tr style="text-indent: 1em; 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:{{{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>}}<!--
-->{{#if:{{{elevation_ft|}}}|<tr><th>[[Elevation]]</th><td style="white-space: nowrap;">{{{elevation_ft|}}} [[foot (unit of length)|ft]]&nbsp;&nbsp;&nbsp;({{{elevation|}}} [[metre|m]])</td></tr> |{{#if:{{{elevation|}}}|<tr><th>[[Elevation]]</th><td style="white-space: nowrap;">{{{elevation|}}} [[metre|m]]</td></tr>}}}}
|-
|-
! [[Time zone]]
<!-- ***** Coordinates ***** -->
|   {{{timezone}}} ([[UTC{{{utc_offset}}}]])
{{#if:{{{latNS|}}}|
{{#if:{{{timezone_DST|}}}|<tr style="text-indent: 1em;"><th>Summer&nbsp;([[Daylight saving time|DST]])</th><td>{{{timezone_DST|}}} ([[UTC{{{utc_offset_DST|}}}]])</td></tr>}}<!--
{{!}}-
-->{{#if:{{{footnotes|}}}|<tr><td colspan="2">{{{footnotes|}}}</td></tr>}}
! style="background: #EDEDED;"{{!}}[[Geographic coordinate system|Coordinates]]
|}<noinclude>
{{!}} {{coor dms|{{{latd}}}|{{{latm}}}|{{{lats|0}}}|{{{latNS}}}|{{{longd}}}|{{{longm}}}|{{{longs|0}}}|{{{longEW}}}}}
[[Category:Infobox templates|City]]
{{!}}-}}
[[Category:Coordinates templates|{{PAGENAME}}]]
<!-- ***** Elevation ***** -->
{{#if:{{{elevation|}}}|
{{!}}-
! style="background: #EDEDED;"{{!}}[[Elevation]]
{{!}} {{{elevation}}} [[metre|m]] {{#if:{{{elevation_ft|}}}|&nbsp;({{{elevation_ft}}} [[foot (unit of length)|ft]])}}
{{!}}-}}
<!-- ***** Time Zone ***** -->
{{#if:{{{timezone|}}}|
{{!}}-
! style="background: #EDEDED;"{{!}}[[Time zone]] {{#if:{{{timezone_DST|}}}|<br>- Summer&nbsp;([[Daylight saving time|DST]])}}
{{!}} {{{timezone}}} ([[UTC{{{utc_offset}}}]]) {{#if:{{{timezone_DST|}}}|<br>{{{timezone_DST|}}} ([[UTC{{{utc_offset_DST|}}}]])}}
{{!}}-}}
<!-- ***** Footnotes ***** -->
{{#if:{{{footnotes|}}}|
{{!}}-
{{!}} colspan="2" align="center" {{!}} <small>{{{footnotes}}}</small>
{{!}}-}}
<!-- ***** Website ***** -->
{{#if:{{{website|}}}|
{{!}}-
{{!}} colspan="2" align="center" style="border-top: solid 1px #ccd2d9;" {{!}} '''Website:''' [{{{website|}}} {{{website}}}]
{{!}}-}}
|}
<noinclude>
[[Category:Infobox templates|{{PAGENAME}}]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
[[ro:Format:Infobox_City]]
[[ro:Format:Infobox_City]]
</noinclude>
</noinclude>

Revision as of 20:00, 24 May 2006

{{{official_name}}} }
Government
{{{subdivision_type}}} {{{subdivision_name}}}
Geographical characteristics
Area
 - Total
 - Land
 - Water

[[{{{area_magnitude}}}_m²|{{{area_total}}} km²]]
{{{area_land}}} km²
{{{area_water}}} km²
Population
 - Total ({{{population_as_of}}})

{{{population_total}}}

ro:Format:Infobox_City