Difference between revisions of "Template: Infobox Swiss town" - New World Encyclopedia
From New World Encyclopedia
Keisuke Noda (talk | contribs) (Auto-import and credit) |
Rosie Tanabe (talk | contribs) |
||
(4 intermediate revisions by 4 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: | + | {| class="infobox vcard geography" cellpadding=2 cellspacing=0 style="width:300px;" |
− | ! | + | |- |
− | + | ! colspan=2 align=center class="fn" | {{{subject_name}}} | |
+ | <!-- Geographical information / CoA section --> | ||
|- | |- | ||
− | {{#if: {{{imagepath_coa|}}}| | + | {{#if: {{{imagepath_coa|<noinclude>x</noinclude>}}}| |
− | {{!}} colspan=2 align | + | <!-- If CoA image given: use three columns --> |
− | + | {{!}} colspan="2" {{!}} | |
− | + | {{{!}} width=100% style="margin:0 auto; padding:0; background:none;" | |
− | | < | + | {{!}}- class="mergedrow" |
− | + | {{!}} '''[[List of countries|Country]]''' | |
− | + | {{!}} [[Switzerland]] | |
− | + | {{!}} 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}}}]]}}<!-- | |
− | + | --Link catcher for separate CoA articles-- | |
− | + | -->{{#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" | ||
+ | | - '''[[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:{{{ | + | -->{{#if:{{{altitude|}}}|{{!}}'''[[Elevation]]'''{{!!}}{{m to ft|num={{{altitude}}}|abbr=yes|precision=0|wiki=no}} [[Image:Kuckucksuhr.JPG|9px|?]]{{#if: {{{altitude_description|}}}|<br>{{{altitude_description}}}|}} |
− | + | }} | |
− | + | |- class="mergedrow" | |
− | + | {{#if:{{{highest_m|<noinclude>x</noinclude>}}}| | |
− | + | {{!}} - Highest {{!!}} {{{highest_m|0}}} m - {{{highest|}}} | |
− | | | + | }} |
− | + | |- class="mergedrow" | |
− | |- class=" | + | {{#if:{{{lowest_m|<noinclude>x</noinclude>}}}| |
− | + | {{!}} - Lowest {{!!}} {{{lowest_m|0}}} m - {{{lowest|}}} | |
− | + | }} | |
− | + | |- class="mergedrow" | |
− | |||
+ | {{#ifexpr:{{#time:n}}<6| | ||
+ | {{#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>|}}<!--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:{{{ | + | -->{{#if:{{{municipal_code|<noinclude>x</noinclude>}}}| {{!}}'''[[Community_Identification_Number#Switzerland|SFOS number]]''' {{!!}} {{{municipal_code}}} [[Image:Kuckucksuhr.JPG|9px|?]]}} |
− | + | |- class="mergedrow" | |
− | + | {{#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>|}} | |
− | + | }} | |
− | + | |- class="mergedrow" | |
− | + | {{#if:{{{demonym|<noinclude>x</noinclude>}}}| {{!}} '''<span style="font-size:90%">[[Demonym]]</span>''' {{!!}} <span style="font-size:90%">{{{demonym}}}</span> | |
− | + | }} | |
− | + | |- class="mergedrow" | |
− | + | {{#if:{{{places|<noinclude>x</noinclude>}}}| {{!}} '''Localities''' {{!!}} {{{places}}} | |
− | + | }} | |
− | + | |- {{#if:{{{twintowns|}}}{{{website|<noinclude>x</noinclude>}}} | class="mergedrow" | class="mergedbottomrow"}} | |
− | + | | '''[[List of municipalities of Switzerland|Surrounded by]]''' {{#if:{{{map|}}}|<br>[[:Image:{{{map}}}|(view map)]]}} || {{#if:{{{neighboring_municipalities|<noinclude>x</noinclude>}}}|<small>{{{neighboring_municipalities}}}</small>|[[Image:Stock alarm.svg|9px|]]}} | |
− | + | |- {{#if:{{{website|<noinclude>x</noinclude>}}} | class="mergedrow" | class="mergedbottomrow"}} | |
− | + | {{#if:{{{twintowns|<noinclude>x</noinclude>}}}| {{!}} '''[[List of twin towns and sister cities in Switzerland|Twin town]]s''' {{!!}} {{{twintowns}}} | |
− | + | }} | |
− | + | |- class="mergedbottomrow" | |
− | - | + | {{#if:{{{website|<noinclude>x</noinclude>}}}| {{!}} '''Website''' {{!!}} [http://{{{website}}} {{{website}}}] |
− | + | }} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
! 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 | + | |}<!-- |
− | + | 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| | + | {{Credits|231714386}} |
</noinclude> | </noinclude> |
Latest revision as of 16:27, 3 June 2016
{{{subject_name}}} | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
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}}} | |||||||||
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.