Difference between revisions of "Template: Infobox Swiss town" - New World Encyclopedia

From New World Encyclopedia
(converted to wiki syntax)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<includeonly><span id="coordinates" class="plainlinksneverexpand">[[Geographic coordinate system|Coordinates]]: {{coor dm|{{{lat_d}}}|{{{lat_m}}}|N|{{{long_d}}}|{{{long_m}}}|E|region:{{{iso-code-region}}}_type:city({{{population}}})}}</span></includeonly>
 
<includeonly><span id="coordinates" class="plainlinksneverexpand">[[Geographic coordinate system|Coordinates]]: {{coor dm|{{{lat_d}}}|{{{lat_m}}}|N|{{{long_d}}}|{{{long_m}}}|E|region:{{{iso-code-region}}}_type:city({{{population}}})}}</span></includeonly>
{| class="infobox vcard" cellpadding=2 cellspacing=0 style="width:265px;"
+
{| class="infobox vcard geography" cellpadding=2 cellspacing=0 style="width:300px;"
!  colspan=2 align=center style="font-size: 110%; background:#f2f2f2;" class="fn org"| {{{subject_name}}}
 
 
|-
 
|-
{{#if: {{{imagepath_coa|}}}|
+
! colspan=2 align=center class="fn" | {{{subject_name}}}
{{!}} colspan=2 align=center {{!}} [[Image:{{{imagepath_coa}}}|{{#if: {{{pixel_coa|}}}|{{{pixel_coa}}}|90px}}|Coat of Arms of {{{subject_name}}}]]}}
+
<!-- Geographical information / CoA section -->
|- class="adr"
+
|-
| <span style="font-size:90%">[[cantons of Switzerland|Canton]] </span> || <span style="font-size:90%" class="region">[[Canton of {{{canton}}}|{{{canton}}}]]</span>
+
{{#if: {{{imagepath_coa|<noinclude>x</noinclude>}}}|
|- class="note"
+
<!-- If CoA image given: use three columns -->
| <span style="font-size:90%;">[[Districts of Switzerland|District]]</span> || <span style="font-size:90%">{{{district}}}</span>
+
  {{!}} colspan="2" {{!}}
<!--
+
  {{{!}} width=100% style="margin:0 auto; padding:0; background:none;"
-->
+
  {{!}}- class="mergedrow"
{{#if:{{{lat_d|}}}|
+
  {{!}} '''[[List of countries|Country]]'''
{{!}}-
+
  {{!}} [[Switzerland]]
{{!}} <span style="font-size:90%">[[Geographic coordinates|Coordinates]]</span>
+
  {{!}} rowspan=4 style="border:0; vertical-align:middle; text-align:center" {{!}} {{#if: {{{imagepath_coa|<noinclude>x</noinclude>}}}| [[Image:{{{imagepath_coa|Sin escudo.svg}}}|{{#if: {{{pixel_coa|}}}|{{{pixel_coa}}}|60px}}|Coat of Arms of {{{subject_name}}}]]}}<!--
{{!}}<span style="font-size:90%" class="geo">{{coor dm|{{{lat_d}}}|{{{lat_m}}}|N|{{{long_d}}}|{{{long_m}}}|E|region:{{{iso-code-region}}}_type:city({{{population}}})}}
+
--Link catcher for separate CoA articles--
</span>
+
-->{{#ifexist:Coat of arms of {{{subject_name}}}|<br/>[[Coat of arms of {{{subject_name}}}|Details]]|{{#ifexist:Coat of arms of {{PAGENAME}}|<br/>[[Coat of arms of {{PAGENAME}}|Details]]}}}}
 +
  {{!}}- class="mergedrow"
 +
  {{!}}'''[[Cantons of Switzerland|Canton]]''' {{!!}} [[Canton of {{{canton|}}}|{{{canton}}}]]
 +
  {{!}}- class="mergedrow"
 +
  {{!}}'''[[Districts of Switzerland#Canton of {{{canton|}}}|District]]''' {{!!}} {{{district}}}
 +
  {{!}}- class="mergedrow"
 +
  {{!}} colspan=2 style="text-align:center" {{!}}{{coor dm|{{{lat_d|{{{nd|0}}}}}}|{{{lat_m|{{{nm|0}}}}}}|N|{{{long_d|{{{ed|0}}}}}}|{{{long_m|{{{em|0}}}}}}|E|region:{{#if:{{{nd|}}}|CH|{{{iso-code-region}}}}}_type:city({{{population}}})}}
 +
  {{!}}}
 +
| <!-- If no CoA image given: use standard two columns -->
 +
{{!}}- class="mergedtoprow"
 +
{{!}} '''[[List of countries|Country]]''' {{!!}} [[Switzerland]]
 +
{{!}}- class="mergedrow"
 +
{{!}}'''[[Cantons of Switzerland|Canton]]''' {{!!}} [[Canton of {{{canton|}}}|{{{canton}}}]]
 +
{{!}}- class="mergedrow"
 +
{{!}}'''[[Districts of Switzerland#Canton of {{{canton|}}}|District]]''' {{!!}} {{{district}}}
 +
{{!}}- class="mergedbottomrow"
 +
{{!}} style="vertical-align:middle;" {{!}} '''[[Geographical coordinates|Coordinates]]'''
 +
{{!}} style="vertical-align:middle;" {{!}} {{coor dm|{{{lat_d|{{{nd|0}}}}}}|{{{lat_m|{{{nm|0}}}}}}|N|{{{long_d|{{{ed|0}}}}}}|{{{long_m|{{{em|0}}}}}}|E|region:{{#if:{{{nd|}}}|CH|{{{iso-code-region}}}}}_type:city({{{population}}})}}
 +
}}
 +
|- class="mergedtoprow"
 +
| '''[[Population]]'''|| {{formatnum:{{{population}}}}} {{#if:{{{populationof|}}}|({{as of|{{{populationof}}}|alt={{{populationof}}}}})}}
 +
|- class="mergedrow"
 +
| &nbsp; - '''[[Population density#Human population density|Density]]'''|| {{formatnum:{{#expr:{{{population|0}}}div{{{area|1}}} round 0}}}} /km² ({{formatnum:{{#expr:({{{population|0}}}*2.589988110336)div({{{area|1}}}) round 0}}}} /sq.mi.)
 +
|- {{#if:{{{elevation|{{{altitude|<noinclude>x</noinclude>}}}}}} | class="mergedrow" | class="mergedbottomrow"}}
 +
| '''[[Area]]''' || [[{{#ifexpr: {{{area|0}}}>300|Error|{{#ifexpr:{{{area|0}}}>=100|1 E8|{{#ifexpr: {{{area|0}}}>=10|1 E7|{{#ifexpr: {{{area|0}}}>=1|1 E6|{{#ifexpr: {{{area|0}}}>=0.2|1 E5|Error}} }} }} }} }} m²|{{km2 to mi2|{{{area|0}}}|abbr=yes|wiki=no}}]]
 +
|- class="mergedrow"
 +
{{#if:{{{elevation|<noinclude>x</noinclude>}}}|
 +
{{!}}'''[[Elevation]]''' {{!!}} {{m to ft|num={{{elevation|0}}}|abbr=yes|precision=0|wiki=no}}{{#if: {{{elevation_description|}}}|<br>{{{elevation_description}}}|}}
 
}}<!--
 
}}<!--
 
Added to enable viewing older versions of articles:
 
Added to enable viewing older versions of articles:
-->
+
-->{{#if:{{{altitude|}}}|{{!}}'''[[Elevation]]'''{{!!}}{{m to ft|num={{{altitude}}}|abbr=yes|precision=0|wiki=no}} [[Image:Kuckucksuhr.JPG|9px|?]]{{#if: {{{altitude_description|}}}|<br>{{{altitude_description}}}|}}
{{#if:{{{nd|}}}|
+
}}
{{!}}-
+
|- class="mergedrow"
{{!}} <span style="font-size:90%">[[Geographic coordinates|Coordinates]]</span>
+
{{#if:{{{highest_m|<noinclude>x</noinclude>}}}|
<td><span style="font-size:90%" class="geo">{{coor dm|{{{nd}}}|{{{nm}}}|N|{{{ed}}}|{{{em}}}|E|region:CH_type:city({{{population}}})}}
+
{{!}} &nbsp; - Highest {{!!}} {{{highest_m|0}}} m - {{{highest|}}}
</span>
+
}}
}}<!--
+
|- class="mergedrow"
-->
+
{{#if:{{{lowest_m|<noinclude>x</noinclude>}}}|
|- class="note"
+
{{!}} &nbsp; - Lowest {{!!}} {{{lowest_m|0}}} m - {{{lowest|}}}
| <span style="font-size:90%">[[Population]]</span>|| <span style="font-size:90%">{{{population}}} &nbsp;</span> <span style="font-size:80%">([[As of {{#if:{{{popofyear|}}}|{{{popofyear}}}|{{{populationof}}}}}|{{{populationof}}}]])</span>
+
}}
|- class="note"
+
|- class="mergedrow"
| <span style="font-size:90%">[[Area]]</span> || <span style="font-size:90%">[[{{#ifexpr: {{{area}}}>300|Error|{{#ifexpr:{{{area}}}>=100|1 E8|{{#ifexpr: {{{area}}}>=10|1 E7|{{#ifexpr: {{{area}}}>=1|1 E6|{{#ifexpr: {{{area}}}>=0.2|1 E5|Error}} }} }} }} }} |{{km2 to mi2|{{{area}}}|abbr=yes|wiki=no}}]]</span>
+
 
<!--
+
{{#ifexpr:{{#time:n}}<6|
-->
+
{{#if:{{{snow_image|}}}|<!--  
{{#if:{{{elevation|}}}|
+
  --> {{!}} colspan="2" style="text-align: center; padding: 0.0em 0.0em 0.0em 0.0em;;" {{!}} [[Image:{{{snow_image|Dummy flag.png}}}|{{  <!-- size parameters-->
{{!}}- class="note"
+
    #if:{{{snow_imagesize|}}}|{{{snow_imagesize}}}|<!--else-->250px }}|{{
{{!}} <span style="font-size:90%">[[Elevation]]</span>
+
    #if:{{{snow_imagesize|}}}|{{{snow_imagesize}}}px<!--also put "size+px"-->
{{!}} <span style="font-size:90%">{{m to ft|num={{{elevation}}}|abbr=yes|precision=0|wiki=yes}}</span>{{#if: {{{elevation_description|}}}|<br><span style="font-size:90%">{{{elevation_description}}}</span>|}}
+
      |<!--else-->none<!--placeholder to avoid 2 vertical-bars-->
}}<!--
+
    }}<!--endif2-->|none|{{{snow_imagecaption|}}}]]<!--
 +
  -->{{#if:{{{snow_imagecaption|}}}|<small>{{{snow_imagecaption}}}</small>|}}<!--if
 +
no snow image, take other image-->|<!--
 +
-->{{#if:{{{image_photo|}}}|
 +
  {{!}} colspan="2" style="text-align: center; padding: 0.0em 0.0em 0.0em 0.0em;;" {{!}} [[Image:{{{image_photo|Dummy flag.png}}}|{{  <!-- size parameters-->
 +
    #if:{{{imagesize|}}}|{{{imagesize}}}|<!--else-->250px }}|{{
 +
    #if:{{{imagesize|}}}|{{{imagesize}}}px<!--also put "size+px"-->
 +
      |<!--else-->none<!--placeholder to avoid 2 vertical-bars-->
 +
    }}<!--endif2-->|none|{{{image_caption|}}}]]<!--
 +
  -->{{#if:{{{image_caption|}}} |<small>{{{image_caption}}}</small>
 +
  }}<!--endif image_caption-->
 +
}}
 +
}}
 +
|<!--if not in month defined above, take std image -->
 +
{{#if:{{{image_photo|}}}|
 +
  {{!}} colspan="2" style="text-align: center; padding: 0.0em 0.0em 0.0em 0.0em;;" {{!}} [[Image:{{{image_photo|Dummy flag.png}}}|{{ <!-- size parameters-->
 +
    #if:{{{imagesize|}}}|{{{imagesize}}}|<!--else-->250px }}|{{
 +
    #if:{{{imagesize|}}}|{{{imagesize}}}px<!--also put "size+px"-->
 +
      |<!--else-->none<!--placeholder to avoid 2 vertical-bars-->
 +
    }}<!--endif2-->|none|{{{image_caption|}}}]]<!--
 +
  -->{{#if:{{{image_caption|}}}|<small>{{{image_caption}}}</small>}}<!--endif image_caption-->
 +
<!--  
 +
if no non-snow image, take snow image
 +
-->{{#if:{{{snow_image|}}}|
 +
  {{!}} colspan="2" style="text-align: center; padding: 0.0em 0.0em 0.0em 0.0em;;" {{!}} [[Image:{{{snow_image|Dummy flag.png}}}|{{  <!-- size parameters-->
 +
    #if:{{{snow_imagesize|}}}|{{{snow_imagesize}}}|<!--else-->250px }}|{{
 +
    #if:{{{snow_imagesize|}}}|{{{snow_imagesize}}}px<!--also put "size+px"-->
 +
      |<!--else-->none<!--placeholder to avoid 2 vertical-bars-->
 +
    }}<!--endif2-->|none|{{{snow_imagecaption|}}}]]<!--
 +
  -->{{#if:{{{snow_imagecaption|}}}|<small>{{{snow_imagecaption}}}</small>
 +
  }}<!--endif snow_imagecaption-->
 +
}}
 +
}}
 +
}}
 +
|- class="mergedtoprow"
 +
| '''[[Postal code (Switzerland)|Postal code]]''' || {{{postal_code}}}
 +
|- class="mergedrow"
 +
{{#if:{{{municipality_code|}}}|{{!}}'''[[Community_Identification_Number#Switzerland|SFOS number]]''' {{!!}} {{{municipality_code}}}}}<!--
 
Added to enable viewing older versions of articles:
 
Added to enable viewing older versions of articles:
-->
+
-->{{#if:{{{municipal_code|<noinclude>x</noinclude>}}}| {{!}}'''[[Community_Identification_Number#Switzerland|SFOS number]]''' {{!!}} {{{municipal_code}}} [[Image:Kuckucksuhr.JPG|9px|?]]}}
{{#if:{{{altitude|}}}|
+
|- class="mergedrow"
{{!}}- class="note"
+
{{#if:{{{mayor|<noinclude>x</noinclude>}}}| {{!}}'''{{#if:{{{list_of_mayors|}}}|[[{{{list_of_mayors}}}|Mayor (list)]]|[[Mayor]]}}''' {{!!}} {{{mayor}}}{{#if: {{{mayor_asof|}}}| <small> (as of {{{mayor_asof}}})</small>|}} {{#if: {{{mayor_party|<noinclude>x</noinclude>}}}| <small> {{polparty|Switzerland|{{{mayor_party}}}}}</small>|}}
{{!}} <span style="font-size:90%">[[Elevation]]</span>
+
}}
{{!}} <span style="font-size:90%">{{m to ft|num={{{altitude}}}|abbr=yes|precision=0|wiki=yes}} [[Image:Kuckucksuhr.JPG|9px|?]]</span>{{#if: {{{altitude_description|}}}|<br><span style="font-size:90%">{{{altitude_description}}}</span>|}}
+
|- class="mergedrow"
}}<!--
+
{{#if:{{{demonym|<noinclude>x</noinclude>}}}| {{!}} '''<span style="font-size:90%">[[Demonym]]</span>''' {{!!}} <span style="font-size:90%">{{{demonym}}}</span>
-->
+
}}
|- class="note"
+
|- class="mergedrow"
| <span style="font-size:90%">[[Postal code (Switzerland)|Postal code]]</span> || <span style="font-size:90%">{{{postal_code}}}</span>
+
{{#if:{{{places|<noinclude>x</noinclude>}}}| {{!}} '''Localities''' {{!!}} {{{places}}}
<!--
+
}}
-->
+
|- {{#if:{{{twintowns|}}}{{{website|<noinclude>x</noinclude>}}} | class="mergedrow" | class="mergedbottomrow"}}
|- class= "note"
+
| '''[[List of municipalities of Switzerland|Surrounded&nbsp;by]]''' {{#if:{{{map|}}}|<br>[[:Image:{{{map}}}|(view map)]]}} || {{#if:{{{neighboring_municipalities|<noinclude>x</noinclude>}}}|<small>{{{neighboring_municipalities}}}</small>|[[Image:Stock alarm.svg|9px|]]}}
{{#if:{{{municipality_code|}}}|
+
|- {{#if:{{{website|<noinclude>x</noinclude>}}} | class="mergedrow" | class="mergedbottomrow"}}
{{!}} <span style="font-size:90%">[[Community_Identification_Number#Switzerland|SFOS number]]</span>
+
{{#if:{{{twintowns|<noinclude>x</noinclude>}}}| {{!}} '''[[List of twin towns and sister cities in Switzerland|Twin town]]s''' {{!!}} {{{twintowns}}}
{{!}} <span style="font-size:90%">{{{municipality_code}}}</span>
+
}}
}}<!--
+
|- class="mergedbottomrow"
Added to enable viewing older versions of articles:
+
{{#if:{{{website|<noinclude>x</noinclude>}}}| {{!}} '''Website''' {{!!}} [http://{{{website}}} {{{website}}}]
-->
+
}}
|- class= "note"
 
{{#if:{{{municipal_code|}}}|
 
{{!}} <span style="font-size:90%">[[Community_Identification_Number#Switzerland|SFOS number]]</span>
 
{{!}} <span style="font-size:90%">{{{municipal_code}}}</span> [[Image:Kuckucksuhr.JPG|9px|?]]
 
}}<!--
 
-->
 
{{#if:{{{mayor|}}}|
 
{{!}}- class="note"
 
{{!}} <span style="font-size:90%">{{#if:{{{list_of_mayors|}}}|[[{{{list_of_mayors}}}|Mayor (list)]]|[[Mayor]]}}</span>
 
{{!}} <span style="font-size:90%">{{{mayor}}}{{#if: {{{mayor_asof|}}}| <small> (as of {{{mayor_asof}}})</small>|}} {{#if: {{{mayor_party|}}}| <small> [[List of political parties in Switzerland|{{{mayor_party}}}]]</small>|}}</span>
 
}}<!--
 
-->
 
|- class= "note"
 
{{#if:{{{demonym|}}}|
 
{{!}} <span style="font-size:90%">[[Demonym]]</span>
 
{{!}} <span style="font-size:90%">{{{demonym}}}</span>
 
}}<!--
 
-->
 
|- class= "note"
 
{{#if:{{{places|}}}|
 
{{!}} <span style="font-size:90%">Localities</span>
 
{{!}} <span style="font-size:80%">{{{places}}}</span>
 
}}<!--
 
-->
 
|-
 
{{!}} <span style="font-size:90%">[[List of municipalities of Switzerland|Surrounded by]]</span>{{#if:{{{map|}}}|<br><span style="font-size:80%">[[:Image:{{{map}}}|(view map)]]</span>}}
 
{{!}} <span style="font-size:80%" class="note">{{#if:{{{neighboring_municipalities|}}}|{{{neighboring_municipalities}}}|[[Image:Stock alarm.svg|9px|]]}}</span>
 
<!--
 
-->
 
{{#if:{{{twintowns|}}}|
 
{{!}}- class="note"
 
{{!}} <span style="font-size:90%">[[List of twin towns and sister cities in Switzerland|Twin town]]s</span>
 
{{!}} <span style="font-size:80%">{{{twintowns}}}</span>
 
}}<!--
 
-->
 
{{#if:{{{website|}}}|
 
{{!}}-
 
{{!}} <span style="font-size:90%">Website</span>
 
{{!}} <span style="font-size:90%" class="url">[http://{{{website}}} {{{website}}}]</span>
 
}}<!--
 
-->
 
 
|-
 
|-
 
!  colspan=2 align=center | {{Location map|Switzerland|float=left|width=265
 
!  colspan=2 align=center | {{Location map|Switzerland|float=left|width=265
 
|label={{#if:{{{map|}}}|[[:Image:{{{map}}}|{{{subject_name}}} [zoom] ]]|{{{subject_name}}} }}
 
|label={{#if:{{{map|}}}|[[:Image:{{{map}}}|{{{subject_name}}} [zoom] ]]|{{{subject_name}}} }}
 
|lat={{#expr:{{{lat_d}}}+{{{lat_m}}}/60}}|long={{#expr:{{{long_d}}}+{{{long_m}}}/60}}|caption=}}
 
|lat={{#expr:{{{lat_d}}}+{{{lat_m}}}/60}}|long={{#expr:{{{long_d}}}+{{{long_m}}}/60}}|caption=}}
|}{{#if:{{NAMESPACE}}||{{#ifeq:{{{municipality_type}}}|former|[[Category:Villages in Switzerland]]|[[Category:Municipalities of Switzerland]]}}}} <noinclude>{{/Copyandpaste}} {{template doc}}
+
|}<!--
{{Credits|157670819}}
+
Categories -->
 +
<!--{{#if:{{NAMESPACE}}||{{#ifeq:{{{municipality_type}}}|former|[[Category:Villages in Switzerland]][[Category:Former municipalities of Switzerland]]|[[Category:Municipalities of Switzerland]]}}}}
 +
-->
 +
<noinclude>
 +
{{/Copyandpaste}}
 +
{{Documentation, template}}
 +
{{Credits|231714386}}
 
</noinclude>
 
</noinclude>

Latest revision as of 16:27, 3 June 2016

{{{subject_name}}}
Country Switzerland Coat of Arms of {{{subject_name}}}
Canton {{{canton}}}
District {{{district}}}
0°0′N 0°0′E
Population {{{population}}}
  - Density 0 /km² (0 /sq.mi.)
Area 0 km² (0 sq mi)
Elevation 0 m (0 ft)
  - Highest 0 m -
  - Lowest 0 m -
Postal code {{{postal_code}}}
SFOS number {{{municipal_code}}} ?
Mayor {{{mayor}}} {{{mayor_party}}}
Demonym {{{demonym}}}
Localities {{{places}}}
Surrounded by {{{neighboring_municipalities}}}
Twin towns {{{twintowns}}}
Website {{{website}}}
{{{subject_name}}} (Switzerland)
<div style="position: absolute; z-index: 2; top: Expression error: Unexpected < operator.%; left: Expression error: Unexpected < operator.%; height: 0; width: 0; margin: 0; padding: 0;">
{{{subject_name}}}
{{{subject_name}}}


Template-info.svg Template documentation

Credits

New World Encyclopedia writers and editors copied and adjusted this Wikipedia template in accordance with New World Encyclopedia standards. This article abides by terms of the Creative Commons CC-by-sa 3.0 License (CC-by-sa), which may be used and disseminated with proper attribution.The history of earlier contributions by wikipedians is accessible to researchers here:

The history of this article since it was imported to New World Encyclopedia:

Note: Some restrictions may apply to use of individual images which are separately licensed.