For municipalities in the mountains, e.g. ski and summer resorts, it's a bit odd to display images with snow all year. It might be preferable to provide fields for two separate images. Depending on the month, we could display one or the other. -- User:Docu
I've updated the population-asof links in the template to reflect the changes at
WP:As of. However I noticed that some instances of the template use the format Month_name Year for the populationof parameter. This is not fully compatible with the new {{
As of}}
template, which will silently link the pages concerned to [[As of...]] instead of using the new categories to indicate the error. I would advise not using the month for population-asof data as it is unnecessary (I am not aware of countries that have more than one census per year...) but if users would prefer to retain it a separate parameter for the month would be the easiest way to use it. This should then be passed to the {{
As of}}
template as the second parameter. Recommendation: remove the month from existing instances of the template, no other work required. All the best –
Ikara
talk →
01:48, 8 August 2008 (UTC)
{{
As of}}
to behave properly when using the Month_name Year format, so all the Swiss town articles should be correctly categorised now. Please note that the month name MUST be capitalised and spelt correctly. Please disregard the above statement. Thanks –
Ikara
talk →
20:14, 9 August 2008 (UTC)To improve the presentation of the infobox on former municipalities, I added a field "within_municipality" to the test version, sample at testcases#Oberwald. Quite a few municipalities merged in 2008 and on January 1, 2009 and their articles still need updating (see /to do). -- User:Docu
At Grimentz ( this version), the change in layout moves down the content of the infobox far down the page. To improve access, I'd move the map to its former place. -- User: Docu at 18:05, 3 August 2009 (UTC)
I think this infobox could do with a few tweaks. See Oberschrot for example. I'd propose moving the map to the top below the photograph and creating the show map option like in the Austrian and Greek infoboxes instead of the "zoom". I think it looks tidier. Also the coat of arms is strangely aligned and the coordinates should go under the map near the top not in the middle. I don't know about you but I find having a pushpin map at the bottom it looks back to front and weird. The top where the name is could also use a splash of colour. Perhaps make it look more like the way the Austrian ones currently are like Karres? Dr. Blofeld White cat 16:43, 27 March 2010 (UTC)
{{
Editprotected|Template:Infobox Swiss town}}
Please update the template with the wikicode from my sandbox
User:2Neuenburg/T. I discussed the edits with a user from WikiProject Switzerland so it shouldn't be controversial.--
2Neuenburg (
talk)
21:01, 19 April 2010 (UTC)
{{ Editprotected}} I would like to add the following wikicode to 2 sections of this template. This code will clean up some problems that occured in former municipalities articles that never or do not currently have valid Community Identification numbers (SFOS numbers). This section of code will allow the population field to be blank, non-existent or contain N/A
Extended content
|
---|
|- class="mergedtoprow" {{#if:{{{population|<noinclude>x</noinclude>}}}| {{!}} '''[[Population]]'''{{!!}} {{#ifeq:{{{municipality_type}}}|former|{{#ifeq: N/A | {{{population}}} | N/A |{{formatnum:{{#expr: 0{{{population}}} }} }} ({{{populationof}}}) }}| {{formatnum:{{#expr: 0{{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }} }} }} ({{#time: m/Y | {{Swiss populations date|{{{iso-code-region}}}|TIMESTAMP}} }}){{Swiss populations ref|{{{iso-code-region}}} }} }} }} {{#if:{{{population|<noinclude>x</noinclude>}}}| {{!}}- class="mergedrow" {{!}} - '''[[Population density#Human population density|Density]]'''{{!!}} {{#ifeq:{{{municipality_type}}}|former|{{#ifeq: N/A | {{{population}}} | N/A | {{formatnum:{{#expr:{{{population|0}}}div{{{area|1}}} round 0}}}} /km<sup>2</sup> ({{formatnum:{{#expr:({{{population|0}}}*2.589988110336)div({{{area|1}}}) round 0}}}} /sq mi) }} | {{formatnum:{{#expr:{{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }}div{{{area|1}}} round 0}}}} /km<sup>2</sup> ({{formatnum:{{#expr:({{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }}*2.589988110336)div({{{area|1}}}) round 0}}}} /sq mi) }} }} |
This second piece of code, hides the View map option if the is no map to view.
Extended content
|
---|
|- ! colspan=2 align=center | {{#ifeq:{{{municipality_type}}}|former| {{#ifexist: Media:Karte Gemeinde {{{subject_name}}} 2011.png | [[:File:Karte Gemeinde {{{subject_name}}} 2011.png {{!}}View map of {{{subject_name}}} ]] | {{#ifexist: Media:Karte Gemeinde {{{subject_name}}} 2010.png | [[:File:Karte Gemeinde {{{subject_name}}} 2010.png {{!}}View map of {{{subject_name}}} ]] | {{#ifexist: Media:Karte Gemeinde {{{subject_name}}} 2009.png | [[:File:Karte Gemeinde {{{subject_name}}} 2009.png {{!}}View map of {{{subject_name}}} ]] | {{#ifexist: Media:Karte Gemeinde {{{subject_name}}} 2008.png | [[:File:Karte Gemeinde {{{subject_name}}} 2008.png {{!}}View map of {{{subject_name}}} ]] | {{#ifexist: Media:Karte Gemeinde {{{subject_name}}} 2007.png | [[:File:Karte Gemeinde {{{subject_name}}} 2007.png {{!}}View map of {{{subject_name}}} ]] | {{#ifexist: Media:Karte Gemeinde {{{subject_name}}}.png | [[:File:Karte Gemeinde {{{subject_name}}}.png {{!}}View map of {{{subject_name}}} ]] |<noinclude>x</noinclude> }} }} }} }} }} }} | [[:File:{{#ifexist: Media:Karte Gemeinde {{SFOS2Municipality|{{{municipality_code}}}}} 2011.png | Karte Gemeinde {{SFOS2Municipality|{{{municipality_code}}}}} 2011.png | {{#ifexist: Media:Karte Gemeinde {{SFOS2Municipality|{{{municipality_code}}}}} 2010.png | Karte Gemeinde {{SFOS2Municipality|{{{municipality_code}}}}} 2010.png | {{#ifexist: Media:Karte Gemeinde {{SFOS2Municipality|{{{municipality_code}}}}} 2009.png | Karte Gemeinde {{SFOS2Municipality|{{{municipality_code}}}}} 2009.png | {{#ifexist: Media:Karte Gemeinde {{SFOS2Municipality|{{{municipality_code}}}}} 2008.png | Karte Gemeinde {{SFOS2Municipality|{{{municipality_code}}}}} 2008.png | {{#ifexist: Media:Karte Gemeinde {{SFOS2Municipality|{{{municipality_code}}}}} 2007.png | Karte Gemeinde {{SFOS2Municipality|{{{municipality_code}}}}} 2007.png | {{{map|Karte Gemeinde {{SFOS2Municipality|{{{municipality_code}}}}}.png}}} }} }} }} }} }}{{!}}View map of {{{subject_name}}} ]] }} |} |
Both changes should address problems that were brought up after we changed the template recently. The original sandbox with the entire code is at Sandbox2, while the test cases are at testcases. Note that the errors on the Colombier template on the testcases page is to test incorrect SFOS numbers and is captured at Population data failures Tobyc75 ( talk) 13:18, 26 April 2010 (UTC)
Category:Former municipalities of Zürich or Category:Former municipalities of the canton of Zurich? Same problem with Fribourg, Lucerne, Solothurn, Vaud. We should keep one and delete the other.-- 2Neuenburg ( talk) 17:58, 20 April 2010 (UTC)
On a related note, with the villages, the message
[[:File|view map of xxxx]]
is showing up if the village is not in the SFOS2Municipality template. Can you add something to hide this completely if it doesn't find a municipality name? We could try just using the village name, but some of these villages don't have any maps. See Feldmeilen and Irgenhausen for examples. Tobyc75 ( talk) 12:25, 21 April 2010 (UTC)
The error message n the infobox for Kempraten looks like a template error. Could someone look at this and correct it? -- Stepheng3 ( talk) 18:13, 22 April 2010 (UTC)
Another former town for which the municipality_code is blank, with the result that the {{
Coord}} parameters have type:city({{{population}}})
. Please modify the template so that it simply produces type:city
in this circumstance. Also, instructions for finding municipality codes should be added to the template documentation. --
Stepheng3 (
talk)
23:48, 7 June 2010 (UTC)
{{
editprotected}}
The following changes will fix some of the most common problems with the Infobox template. These problems occur when the municipality_code is incorrect or no longer valid or if the municipality_type is set to former. It fixes the broken population, population density and coord sections that occur in the proceeding cases.
I need to replace this section:
Extended content
|
---|
--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}}} {{#if:{{{within_municipality|<noinclude>x</noinclude>}}}| {{!}}- class="mergedrow" {{!}}'''[[List of municipalities of Switzerland|Municipality]]''' {{!!}} {{{within_municipality}}}}} {{!}}- class="mergedrow" {{!}} colspan=2 style="text-align:center" {{!}}{{coord|{{{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({{#ifeq:{{{municipality_type}}}|former|{{{population}}}|{{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }} }})|display=inline,title}} {{!}}} | <!-- 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}}} {{#if:{{{within_municipality|<noinclude>x</noinclude>}}}| {{!}}- class="mergedrow" {{!}}'''[[List of municipalities of Switzerland|Municipality]]''' {{!!}} {{{within_municipality}}}}} {{!}}- class="mergedbottomrow" {{!}} style="vertical-align:middle;" {{!}} '''[[Geographical coordinates|Coordinates]]''' {{!}} style="vertical-align:middle;" {{!}} {{coord|{{{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({{#ifeq:{{{municipality_type}}}|former|{{{population}}}|{{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }} }})|display=inline,title}} }} |- class="mergedtoprow" {{#if:{{{population|<noinclude>x</noinclude>}}}| {{!}} '''[[Population]]'''{{!!}} {{#ifeq:{{{municipality_type}}}|former|{{#ifeq: N/A | {{{population}}} | N/A |{{formatnum:{{#expr: 0{{{population}}} }} }} ({{{populationof}}}) }}| {{formatnum:{{#expr: 0{{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }} }} }} ({{#time: m/Y | {{Swiss populations date|{{{iso-code-region}}}|TIMESTAMP}} }}){{Swiss populations ref|{{{iso-code-region}}} }} }} }} {{#if:{{{population|<noinclude>x</noinclude>}}}| {{!}}- class="mergedrow" {{!}} - '''[[Population density#Human population density|Density]]'''{{!!}} {{#ifeq:{{{municipality_type}}}|former|{{#ifeq: N/A | {{{population}}} | N/A | {{formatnum:{{#expr:{{{population|0}}}div{{{area|1}}} round 0}}}} /km<sup>2</sup> ({{formatnum:{{#expr:({{{population|0}}}*2.589988110336)div({{{area|1}}}) round 0}}}} /sq mi) }} | {{formatnum:{{#expr:{{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }}div{{{area|1}}} round 0}}}} /km<sup>2</sup> ({{formatnum:{{#expr:({{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }}*2.589988110336)div({{{area|1}}}) round 0}}}} /sq mi) }} }} |
with this code:
Extended content
|
---|
--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}}} {{#if:{{{within_municipality|<noinclude>x</noinclude>}}}| {{!}}- class="mergedrow" {{!}}'''[[List of municipalities of Switzerland|Municipality]]''' {{!!}} {{{within_municipality}}}}} {{!}}- class="mergedrow" {{!}} colspan=2 style="text-align:center" {{!}}{{coord|{{{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{{#iferror: {{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }}||({{#ifeq:{{{municipality_type}}}|former|{{{population}}}|{{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }} }}) }}|display=inline,title}} {{!}}} | <!-- 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}}} {{#if:{{{within_municipality|<noinclude>x</noinclude>}}}| {{!}}- class="mergedrow" {{!}}'''[[List of municipalities of Switzerland|Municipality]]''' {{!!}} {{{within_municipality}}}}} {{!}}- class="mergedbottomrow" {{!}} style="vertical-align:middle;" {{!}} '''[[Geographical coordinates|Coordinates]]''' {{!}} style="vertical-align:middle;" {{!}} {{coord|{{{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{{#iferror: {{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }}||({{#ifeq:{{{municipality_type}}}|former|{{{population}}}|{{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }} }}) }}|display=inline,title}} }} |- class="mergedtoprow" {{#if:{{{population|<noinclude>x</noinclude>}}}| {{!}} '''[[Population]]'''{{!!}} <!-- Tests for error messages from Swiss populations NC template -->{{#iferror: {{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }}|<!-- If error=true, Tests for former municipality under municipality_type -->{{#ifeq:{{{municipality_type}}}|former|<!-- If error=true and municipality_type=former, tests for population = N/A -->{{#ifeq: N/A | {{{population}}} | N/A |{{formatnum:{{#expr: 0{{{population}}} }} }} ({{{populationof}}}) }}|<!-- If error=true and municipality_type is not former -->{{formatnum:{{#expr: 0{{{population}}} }} }} ({{{populationof}}}) }}|<!-- If error=false, tests if municipality_type is former -->{{#ifeq:{{{municipality_type}}}|former|<!-- If error=false and municipality_type=former, tests for population = N/A -->{{#ifeq: N/A | {{{population}}} | N/A |{{formatnum:{{#expr: 0{{{population}}} }} }} ({{{populationof}}}) }}|<!-- If error=false and municipality_type is not former, uses Swiss populations NC template --> {{formatnum:{{#expr: 0{{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }} }} }} ({{#time: M Y | {{Swiss populations date|{{{iso-code-region}}}|TIMESTAMP}} }}){{Swiss populations ref|{{{iso-code-region}}} }} }} }} }} {{#if:{{{population|<noinclude>x</noinclude>}}}| {{!}}- class="mergedrow" {{!}} - '''[[Population density#Human population density|Density]]'''{{!!}} {{#iferror: {{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }}|<!-- If error=true, Tests for former municipality under municipality_type -->{{#ifeq:{{{municipality_type}}}|former|<!-- If error=true and municipality_type=former, tests for population = N/A -->{{#ifeq: N/A | {{{population}}} | N/A |{{formatnum:{{#expr:{{{population|0}}}div{{{area|1}}} round 0}} }} /km<sup>2</sup> ({{formatnum:{{#expr:({{{population|0}}}*2.589988110336)div({{{area|1}}}) round 0}} }} /sq mi) }}|{{formatnum:{{#expr:{{{population|0}}}div{{{area|1}}} round 0}} }} /km<sup>2</sup> ({{formatnum:{{#expr:({{{population|0}}}*2.589988110336)div({{{area|1}}}) round 0}} }} /sq mi) }}|{{#ifeq:{{{municipality_type}}}|former|{{#ifeq: N/A | {{{population}}} | N/A | {{formatnum:{{#expr:{{{population|0}}}div{{{area|1}}} round 0}}}} /km<sup>2</sup> ({{formatnum:{{#expr:({{{population|0}}}*2.589988110336)div({{{area|1}}}) round 0}}}} /sq mi) }} | {{formatnum:{{#expr:{{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }}div{{{area|1}}} round 0}}}} /km<sup>2</sup> ({{formatnum:{{#expr:({{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }}*2.589988110336)div({{{area|1}}}) round 0}} }} /sq mi) }} }} }} |
Tobyc75 ( talk) 13:22, 15 June 2010 (UTC)
Extended content
|
---|
{{{municipality_type}}}|former|{{#ifeq: N/A | {{{population}}} | N/A | {{formatnum:{{#expr:{{{population|0}}}div{{{area|1}}} round 0}}}} /km<sup>2</sup> ({{formatnum:{{#expr:({{{population|0}}}*2.589988110336)div({{{area|1}}}) round 0}}}} /sq mi) }} | {{formatnum:{{#expr:{{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }}div{{{area|1}}} round 0}}}} /km<sup>2</sup> ({{formatnum:{{#expr:({{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }}*2.589988110336)div({{{area|1}}}) round 0}}}} /sq mi) }} }} |
was retained from the earlier template. This is causing an error in the new template. Tobyc75 ( talk) 17:49, 16 June 2010 (UTC)
I tried to add a collapsible map to the template, instead of just a bare link as it is now. You can see the results in the testcases: Template:Infobox Swiss town/testcases.-- Ultimate Destiny ( talk) 05:29, 5 October 2011 (UTC)
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Done, I've made the above requested change. If there any issues, message me.
Blurpeace
00:17, 21 November 2011 (UTC)
If anything still needs changing, please make the changes to the sandbox template and reactivate. Thanks — Martin ( MSGJ · talk) 12:54, 25 November 2011 (UTC)
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Several subheadings in this template are linked unnecessarily, per WP:OVERLINK, as they are widely understood concepts, or are linked in ways that a reader would not expect. Please remove the links for:
Please also simplify the 'Postal code' link by piping it directly to Postal codes in Switzerland and Liechtenstein instead of via the Postal code (Switzerland) redirect. Colonies Chris ( talk) 17:42, 1 November 2011 (UTC)
Actually the snow image is displayed the first six month of the year. My suggestion would be to display it only and precisely during the winter months, therefore from December 21 to March 21. I had a look at the commons categories "April in Switzerland" [1] and it doesn't seem there is still a lot of snow in this period of the year (and obviously it doesn't get better in May and June), so I think the standard (snow free) image would be preferable during the Spring months. And of course, a nice winter picture during the year-end festivities wouldn't hurt. mgeo talk 18:25, 4 December 2011 (UTC)
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
This template does not allow geographic coordinates to be entered in degrees, minutes and seconds, only degrees and minutes. This makes for imprecise locations on the geohack website. This seems to be the case with many other templates, and I'm wondering if Wikipedia would be able to change this to allow the addition of seconds to the coordinates of this page and all other Switzerland municipalities who use this template. Thank you! Dhuling43 ( talk) 21:44, 20 December 2011 (UTC)
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I need this page unlocked so I can add a line to search for 2012 maps for the infobox. Thanks
Tobyc75 ( talk) 13:04, 3 January 2012 (UTC)
The following changes:
...have been passed by CFD. Is anyone able to adjust the template to automatically move the entries in the categories populated by this template? Timrollpickering ( talk) 19:16, 25 January 2012 (UTC)
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
The Swiss Federal Statistical Office has recently changed some of the weblinks on their website. This means that the SFSO statistics link is no longer valid. The sandbox version has a new weblink added. Can you please copy the sandbox version over to the main. Thanks Tobyc75 ( talk) 20:41, 11 May 2012 (UTC)
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
The (hidden by default) maps that show the location of a town are titled "Map of X". I propose this title to be changed to "Location of X". Jjgw ( talk) 15:48, 23 May 2012 (UTC)
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
It seem that something in this template adds some articles to Category:Articles with missing files. Template coding is beyond my capabilities so can someone see what is causing it? Cheers. -- Alan Liefting ( talk - contribs) 06:58, 11 September 2012 (UTC)
.png
), but this is not the whole story. This is the last fallback when various other images have been tried, but have been found to also be non-existent. The infobox uses several parameters to conjure up an image name, these are |municipality_type=
|subject_name=
|municipality_code=
(which is pushed through {{
SFOS2Municipality}}
) and |map=
. I wouldn't like to describe the hoops that are jumped through in order to do this, but for the specific case of
Aquila, Switzerland which has |municipality_type=former
and |subject_name=Aquila
, it's expecting any one of eight files to exist (these are
File:Karte Gemeinde Aquila 2013.png;
File:Karte Gemeinde Aquila 2012.png;
File:Karte Gemeinde Aquila 2011.png;
File:Karte Gemeinde Aquila 2010.png;
File:Karte Gemeinde Aquila 2009.png;
File:Karte Gemeinde Aquila 2008.png;
File:Karte Gemeinde Aquila 2007.png;
File:Karte Gemeinde Aquila .png), and in the absence of all of these, you get a redlink in the final page and therefore
Category:Articles with missing files. However,
File:Karte Gemeinde Aquila.png (with no space before the .png
) does exist, so perhaps we need additional code to look for that. --
Redrose64 (
talk)
10:25, 11 September 2012 (UTC)Here are some more: Zinal, Zimmerwald. -- Alan Liefting ( talk - contribs) 09:24, 21 September 2012 (UTC)
I've rewritten the code in the sandbox to make it a bit more flexible and to create an image for the failure case. It now looks for images by the municipality_code field, then the map field, then the municipality_name field then if none of those work, it displays the No map.png image. This will prevent errors when the infobox can't find an image and makes it more flexible. I've tried it on a number of articles and haven't found any problems so far. I'll make sure the rest of the sandbox section matches so that the entire sandbox version can just be copied over. Tobyc75 ( talk) 20:44, 21 September 2012 (UTC)
File:Map of this place (current version).svg
. --
Alan Liefting (
talk -
contribs)
22:54, 21 September 2012 (UTC)The current infobox doesn't look great at all. The picture doesn't fit the infobox and the image caption is too big and separated from the picture (see Zurich and Washington, D.C. for examples). I think it was better before. mgeo talk 22:17, 23 September 2012 (UTC)
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Could someone make the several following changes (apparently uncontroversial):
Thanks. mgeo talk 08:29, 7 December 2012 (UTC)
Some small towns don't have an official website. Yes, this still exists. Take Mont-Tramelan; mont-tramelan.ch does not exist. Showing dead links to users is not a very good experience. Can you add functionality for explicitly specifying no website? Bonzon ( talk) 19:51, 29 April 2013 (UTC)
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Hello.
When parameter mayor_asof is filled in, it appears adjacent to the mayor's name. Example from Yverdon-les-Bains:
Does not look good.
Can someone please insert a space?
Thanks.
HandsomeFella ( talk) 17:25, 12 May 2013 (UTC)
Per discussion at Wikipedia:Templates for discussion/Log/2013 June 29#Template:Infobox Swiss town, we should now make this template a wrapper for {{ Infobox settlement}} (the latter is about to be converted to use {{ infobox}}). Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 09:46, 10 July 2013 (UTC)
Comments, anyone? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 15:34, 17 August 2013 (UTC)
Oppose this attempt to completely redo the template. The TFD discussion ended without a consensus for changing the template and it is incorrect to pretend that these changes are a given. The argument that this wrapper is smaller, while technically true, is a red herring. While it is only 5K, it calls another 3K template and the 42K Infobox Settlement template. The current template is only 15K! Additionally, there's this Infobox Swiss town former template. The current template handles former municipalities with a single line. The proposal seems to be to have 2 separate templates, one for current municipalities and one for former municipalities. As I commented below, this more than doubles the amount of maintenance and means that the templates are likely to slowly change appearance as changes are made to one but the not the other and they drift away from each other. I would support a change if it actually made things easier or more efficient, but these changes make it more complex, harder and less efficient. Tobyc75 ( talk) 11:49, 23 August 2013 (UTC)
The result of the discussion was no consensus to delete. There appear to be no serious objections to rewriting the template to use {{ infobox settlement}}, but as was mentioned below, that can be discussed on the talk page.The proposal is for one template; and will improve efficiency by reducing the maintenance overhead. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 14:09, 25 August 2013 (UTC)
Seiry, a former municipality, also had its postal code replaced at one point. I don't believe the old one, currently showing in the infobox, is currently in use by the post, but 1474 no longer is the postal code through which to reach inhabitants of the village. Should it be updated to the current one (which shows correctly on the parent municipality) or is there a historical reason to keep the old one? Thanks, MLauba ( Talk) 21:49, 29 August 2013 (UTC)
For municipalities in the mountains, e.g. ski and summer resorts, it's a bit odd to display images with snow all year. It might be preferable to provide fields for two separate images. Depending on the month, we could display one or the other. -- User:Docu
I've updated the population-asof links in the template to reflect the changes at
WP:As of. However I noticed that some instances of the template use the format Month_name Year for the populationof parameter. This is not fully compatible with the new {{
As of}}
template, which will silently link the pages concerned to [[As of...]] instead of using the new categories to indicate the error. I would advise not using the month for population-asof data as it is unnecessary (I am not aware of countries that have more than one census per year...) but if users would prefer to retain it a separate parameter for the month would be the easiest way to use it. This should then be passed to the {{
As of}}
template as the second parameter. Recommendation: remove the month from existing instances of the template, no other work required. All the best –
Ikara
talk →
01:48, 8 August 2008 (UTC)
{{
As of}}
to behave properly when using the Month_name Year format, so all the Swiss town articles should be correctly categorised now. Please note that the month name MUST be capitalised and spelt correctly. Please disregard the above statement. Thanks –
Ikara
talk →
20:14, 9 August 2008 (UTC)To improve the presentation of the infobox on former municipalities, I added a field "within_municipality" to the test version, sample at testcases#Oberwald. Quite a few municipalities merged in 2008 and on January 1, 2009 and their articles still need updating (see /to do). -- User:Docu
At Grimentz ( this version), the change in layout moves down the content of the infobox far down the page. To improve access, I'd move the map to its former place. -- User: Docu at 18:05, 3 August 2009 (UTC)
I think this infobox could do with a few tweaks. See Oberschrot for example. I'd propose moving the map to the top below the photograph and creating the show map option like in the Austrian and Greek infoboxes instead of the "zoom". I think it looks tidier. Also the coat of arms is strangely aligned and the coordinates should go under the map near the top not in the middle. I don't know about you but I find having a pushpin map at the bottom it looks back to front and weird. The top where the name is could also use a splash of colour. Perhaps make it look more like the way the Austrian ones currently are like Karres? Dr. Blofeld White cat 16:43, 27 March 2010 (UTC)
{{
Editprotected|Template:Infobox Swiss town}}
Please update the template with the wikicode from my sandbox
User:2Neuenburg/T. I discussed the edits with a user from WikiProject Switzerland so it shouldn't be controversial.--
2Neuenburg (
talk)
21:01, 19 April 2010 (UTC)
{{ Editprotected}} I would like to add the following wikicode to 2 sections of this template. This code will clean up some problems that occured in former municipalities articles that never or do not currently have valid Community Identification numbers (SFOS numbers). This section of code will allow the population field to be blank, non-existent or contain N/A
Extended content
|
---|
|- class="mergedtoprow" {{#if:{{{population|<noinclude>x</noinclude>}}}| {{!}} '''[[Population]]'''{{!!}} {{#ifeq:{{{municipality_type}}}|former|{{#ifeq: N/A | {{{population}}} | N/A |{{formatnum:{{#expr: 0{{{population}}} }} }} ({{{populationof}}}) }}| {{formatnum:{{#expr: 0{{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }} }} }} ({{#time: m/Y | {{Swiss populations date|{{{iso-code-region}}}|TIMESTAMP}} }}){{Swiss populations ref|{{{iso-code-region}}} }} }} }} {{#if:{{{population|<noinclude>x</noinclude>}}}| {{!}}- class="mergedrow" {{!}} - '''[[Population density#Human population density|Density]]'''{{!!}} {{#ifeq:{{{municipality_type}}}|former|{{#ifeq: N/A | {{{population}}} | N/A | {{formatnum:{{#expr:{{{population|0}}}div{{{area|1}}} round 0}}}} /km<sup>2</sup> ({{formatnum:{{#expr:({{{population|0}}}*2.589988110336)div({{{area|1}}}) round 0}}}} /sq mi) }} | {{formatnum:{{#expr:{{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }}div{{{area|1}}} round 0}}}} /km<sup>2</sup> ({{formatnum:{{#expr:({{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }}*2.589988110336)div({{{area|1}}}) round 0}}}} /sq mi) }} }} |
This second piece of code, hides the View map option if the is no map to view.
Extended content
|
---|
|- ! colspan=2 align=center | {{#ifeq:{{{municipality_type}}}|former| {{#ifexist: Media:Karte Gemeinde {{{subject_name}}} 2011.png | [[:File:Karte Gemeinde {{{subject_name}}} 2011.png {{!}}View map of {{{subject_name}}} ]] | {{#ifexist: Media:Karte Gemeinde {{{subject_name}}} 2010.png | [[:File:Karte Gemeinde {{{subject_name}}} 2010.png {{!}}View map of {{{subject_name}}} ]] | {{#ifexist: Media:Karte Gemeinde {{{subject_name}}} 2009.png | [[:File:Karte Gemeinde {{{subject_name}}} 2009.png {{!}}View map of {{{subject_name}}} ]] | {{#ifexist: Media:Karte Gemeinde {{{subject_name}}} 2008.png | [[:File:Karte Gemeinde {{{subject_name}}} 2008.png {{!}}View map of {{{subject_name}}} ]] | {{#ifexist: Media:Karte Gemeinde {{{subject_name}}} 2007.png | [[:File:Karte Gemeinde {{{subject_name}}} 2007.png {{!}}View map of {{{subject_name}}} ]] | {{#ifexist: Media:Karte Gemeinde {{{subject_name}}}.png | [[:File:Karte Gemeinde {{{subject_name}}}.png {{!}}View map of {{{subject_name}}} ]] |<noinclude>x</noinclude> }} }} }} }} }} }} | [[:File:{{#ifexist: Media:Karte Gemeinde {{SFOS2Municipality|{{{municipality_code}}}}} 2011.png | Karte Gemeinde {{SFOS2Municipality|{{{municipality_code}}}}} 2011.png | {{#ifexist: Media:Karte Gemeinde {{SFOS2Municipality|{{{municipality_code}}}}} 2010.png | Karte Gemeinde {{SFOS2Municipality|{{{municipality_code}}}}} 2010.png | {{#ifexist: Media:Karte Gemeinde {{SFOS2Municipality|{{{municipality_code}}}}} 2009.png | Karte Gemeinde {{SFOS2Municipality|{{{municipality_code}}}}} 2009.png | {{#ifexist: Media:Karte Gemeinde {{SFOS2Municipality|{{{municipality_code}}}}} 2008.png | Karte Gemeinde {{SFOS2Municipality|{{{municipality_code}}}}} 2008.png | {{#ifexist: Media:Karte Gemeinde {{SFOS2Municipality|{{{municipality_code}}}}} 2007.png | Karte Gemeinde {{SFOS2Municipality|{{{municipality_code}}}}} 2007.png | {{{map|Karte Gemeinde {{SFOS2Municipality|{{{municipality_code}}}}}.png}}} }} }} }} }} }}{{!}}View map of {{{subject_name}}} ]] }} |} |
Both changes should address problems that were brought up after we changed the template recently. The original sandbox with the entire code is at Sandbox2, while the test cases are at testcases. Note that the errors on the Colombier template on the testcases page is to test incorrect SFOS numbers and is captured at Population data failures Tobyc75 ( talk) 13:18, 26 April 2010 (UTC)
Category:Former municipalities of Zürich or Category:Former municipalities of the canton of Zurich? Same problem with Fribourg, Lucerne, Solothurn, Vaud. We should keep one and delete the other.-- 2Neuenburg ( talk) 17:58, 20 April 2010 (UTC)
On a related note, with the villages, the message
[[:File|view map of xxxx]]
is showing up if the village is not in the SFOS2Municipality template. Can you add something to hide this completely if it doesn't find a municipality name? We could try just using the village name, but some of these villages don't have any maps. See Feldmeilen and Irgenhausen for examples. Tobyc75 ( talk) 12:25, 21 April 2010 (UTC)
The error message n the infobox for Kempraten looks like a template error. Could someone look at this and correct it? -- Stepheng3 ( talk) 18:13, 22 April 2010 (UTC)
Another former town for which the municipality_code is blank, with the result that the {{
Coord}} parameters have type:city({{{population}}})
. Please modify the template so that it simply produces type:city
in this circumstance. Also, instructions for finding municipality codes should be added to the template documentation. --
Stepheng3 (
talk)
23:48, 7 June 2010 (UTC)
{{
editprotected}}
The following changes will fix some of the most common problems with the Infobox template. These problems occur when the municipality_code is incorrect or no longer valid or if the municipality_type is set to former. It fixes the broken population, population density and coord sections that occur in the proceeding cases.
I need to replace this section:
Extended content
|
---|
--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}}} {{#if:{{{within_municipality|<noinclude>x</noinclude>}}}| {{!}}- class="mergedrow" {{!}}'''[[List of municipalities of Switzerland|Municipality]]''' {{!!}} {{{within_municipality}}}}} {{!}}- class="mergedrow" {{!}} colspan=2 style="text-align:center" {{!}}{{coord|{{{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({{#ifeq:{{{municipality_type}}}|former|{{{population}}}|{{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }} }})|display=inline,title}} {{!}}} | <!-- 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}}} {{#if:{{{within_municipality|<noinclude>x</noinclude>}}}| {{!}}- class="mergedrow" {{!}}'''[[List of municipalities of Switzerland|Municipality]]''' {{!!}} {{{within_municipality}}}}} {{!}}- class="mergedbottomrow" {{!}} style="vertical-align:middle;" {{!}} '''[[Geographical coordinates|Coordinates]]''' {{!}} style="vertical-align:middle;" {{!}} {{coord|{{{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({{#ifeq:{{{municipality_type}}}|former|{{{population}}}|{{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }} }})|display=inline,title}} }} |- class="mergedtoprow" {{#if:{{{population|<noinclude>x</noinclude>}}}| {{!}} '''[[Population]]'''{{!!}} {{#ifeq:{{{municipality_type}}}|former|{{#ifeq: N/A | {{{population}}} | N/A |{{formatnum:{{#expr: 0{{{population}}} }} }} ({{{populationof}}}) }}| {{formatnum:{{#expr: 0{{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }} }} }} ({{#time: m/Y | {{Swiss populations date|{{{iso-code-region}}}|TIMESTAMP}} }}){{Swiss populations ref|{{{iso-code-region}}} }} }} }} {{#if:{{{population|<noinclude>x</noinclude>}}}| {{!}}- class="mergedrow" {{!}} - '''[[Population density#Human population density|Density]]'''{{!!}} {{#ifeq:{{{municipality_type}}}|former|{{#ifeq: N/A | {{{population}}} | N/A | {{formatnum:{{#expr:{{{population|0}}}div{{{area|1}}} round 0}}}} /km<sup>2</sup> ({{formatnum:{{#expr:({{{population|0}}}*2.589988110336)div({{{area|1}}}) round 0}}}} /sq mi) }} | {{formatnum:{{#expr:{{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }}div{{{area|1}}} round 0}}}} /km<sup>2</sup> ({{formatnum:{{#expr:({{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }}*2.589988110336)div({{{area|1}}}) round 0}}}} /sq mi) }} }} |
with this code:
Extended content
|
---|
--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}}} {{#if:{{{within_municipality|<noinclude>x</noinclude>}}}| {{!}}- class="mergedrow" {{!}}'''[[List of municipalities of Switzerland|Municipality]]''' {{!!}} {{{within_municipality}}}}} {{!}}- class="mergedrow" {{!}} colspan=2 style="text-align:center" {{!}}{{coord|{{{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{{#iferror: {{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }}||({{#ifeq:{{{municipality_type}}}|former|{{{population}}}|{{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }} }}) }}|display=inline,title}} {{!}}} | <!-- 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}}} {{#if:{{{within_municipality|<noinclude>x</noinclude>}}}| {{!}}- class="mergedrow" {{!}}'''[[List of municipalities of Switzerland|Municipality]]''' {{!!}} {{{within_municipality}}}}} {{!}}- class="mergedbottomrow" {{!}} style="vertical-align:middle;" {{!}} '''[[Geographical coordinates|Coordinates]]''' {{!}} style="vertical-align:middle;" {{!}} {{coord|{{{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{{#iferror: {{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }}||({{#ifeq:{{{municipality_type}}}|former|{{{population}}}|{{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }} }}) }}|display=inline,title}} }} |- class="mergedtoprow" {{#if:{{{population|<noinclude>x</noinclude>}}}| {{!}} '''[[Population]]'''{{!!}} <!-- Tests for error messages from Swiss populations NC template -->{{#iferror: {{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }}|<!-- If error=true, Tests for former municipality under municipality_type -->{{#ifeq:{{{municipality_type}}}|former|<!-- If error=true and municipality_type=former, tests for population = N/A -->{{#ifeq: N/A | {{{population}}} | N/A |{{formatnum:{{#expr: 0{{{population}}} }} }} ({{{populationof}}}) }}|<!-- If error=true and municipality_type is not former -->{{formatnum:{{#expr: 0{{{population}}} }} }} ({{{populationof}}}) }}|<!-- If error=false, tests if municipality_type is former -->{{#ifeq:{{{municipality_type}}}|former|<!-- If error=false and municipality_type=former, tests for population = N/A -->{{#ifeq: N/A | {{{population}}} | N/A |{{formatnum:{{#expr: 0{{{population}}} }} }} ({{{populationof}}}) }}|<!-- If error=false and municipality_type is not former, uses Swiss populations NC template --> {{formatnum:{{#expr: 0{{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }} }} }} ({{#time: M Y | {{Swiss populations date|{{{iso-code-region}}}|TIMESTAMP}} }}){{Swiss populations ref|{{{iso-code-region}}} }} }} }} }} {{#if:{{{population|<noinclude>x</noinclude>}}}| {{!}}- class="mergedrow" {{!}} - '''[[Population density#Human population density|Density]]'''{{!!}} {{#iferror: {{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }}|<!-- If error=true, Tests for former municipality under municipality_type -->{{#ifeq:{{{municipality_type}}}|former|<!-- If error=true and municipality_type=former, tests for population = N/A -->{{#ifeq: N/A | {{{population}}} | N/A |{{formatnum:{{#expr:{{{population|0}}}div{{{area|1}}} round 0}} }} /km<sup>2</sup> ({{formatnum:{{#expr:({{{population|0}}}*2.589988110336)div({{{area|1}}}) round 0}} }} /sq mi) }}|{{formatnum:{{#expr:{{{population|0}}}div{{{area|1}}} round 0}} }} /km<sup>2</sup> ({{formatnum:{{#expr:({{{population|0}}}*2.589988110336)div({{{area|1}}}) round 0}} }} /sq mi) }}|{{#ifeq:{{{municipality_type}}}|former|{{#ifeq: N/A | {{{population}}} | N/A | {{formatnum:{{#expr:{{{population|0}}}div{{{area|1}}} round 0}}}} /km<sup>2</sup> ({{formatnum:{{#expr:({{{population|0}}}*2.589988110336)div({{{area|1}}}) round 0}}}} /sq mi) }} | {{formatnum:{{#expr:{{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }}div{{{area|1}}} round 0}}}} /km<sup>2</sup> ({{formatnum:{{#expr:({{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }}*2.589988110336)div({{{area|1}}}) round 0}} }} /sq mi) }} }} }} |
Tobyc75 ( talk) 13:22, 15 June 2010 (UTC)
Extended content
|
---|
{{{municipality_type}}}|former|{{#ifeq: N/A | {{{population}}} | N/A | {{formatnum:{{#expr:{{{population|0}}}div{{{area|1}}} round 0}}}} /km<sup>2</sup> ({{formatnum:{{#expr:({{{population|0}}}*2.589988110336)div({{{area|1}}}) round 0}}}} /sq mi) }} | {{formatnum:{{#expr:{{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }}div{{{area|1}}} round 0}}}} /km<sup>2</sup> ({{formatnum:{{#expr:({{Swiss populations NC|{{{iso-code-region}}}|{{{municipality_code}}} }}*2.589988110336)div({{{area|1}}}) round 0}}}} /sq mi) }} }} |
was retained from the earlier template. This is causing an error in the new template. Tobyc75 ( talk) 17:49, 16 June 2010 (UTC)
I tried to add a collapsible map to the template, instead of just a bare link as it is now. You can see the results in the testcases: Template:Infobox Swiss town/testcases.-- Ultimate Destiny ( talk) 05:29, 5 October 2011 (UTC)
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Done, I've made the above requested change. If there any issues, message me.
Blurpeace
00:17, 21 November 2011 (UTC)
If anything still needs changing, please make the changes to the sandbox template and reactivate. Thanks — Martin ( MSGJ · talk) 12:54, 25 November 2011 (UTC)
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Several subheadings in this template are linked unnecessarily, per WP:OVERLINK, as they are widely understood concepts, or are linked in ways that a reader would not expect. Please remove the links for:
Please also simplify the 'Postal code' link by piping it directly to Postal codes in Switzerland and Liechtenstein instead of via the Postal code (Switzerland) redirect. Colonies Chris ( talk) 17:42, 1 November 2011 (UTC)
Actually the snow image is displayed the first six month of the year. My suggestion would be to display it only and precisely during the winter months, therefore from December 21 to March 21. I had a look at the commons categories "April in Switzerland" [1] and it doesn't seem there is still a lot of snow in this period of the year (and obviously it doesn't get better in May and June), so I think the standard (snow free) image would be preferable during the Spring months. And of course, a nice winter picture during the year-end festivities wouldn't hurt. mgeo talk 18:25, 4 December 2011 (UTC)
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
This template does not allow geographic coordinates to be entered in degrees, minutes and seconds, only degrees and minutes. This makes for imprecise locations on the geohack website. This seems to be the case with many other templates, and I'm wondering if Wikipedia would be able to change this to allow the addition of seconds to the coordinates of this page and all other Switzerland municipalities who use this template. Thank you! Dhuling43 ( talk) 21:44, 20 December 2011 (UTC)
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I need this page unlocked so I can add a line to search for 2012 maps for the infobox. Thanks
Tobyc75 ( talk) 13:04, 3 January 2012 (UTC)
The following changes:
...have been passed by CFD. Is anyone able to adjust the template to automatically move the entries in the categories populated by this template? Timrollpickering ( talk) 19:16, 25 January 2012 (UTC)
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
The Swiss Federal Statistical Office has recently changed some of the weblinks on their website. This means that the SFSO statistics link is no longer valid. The sandbox version has a new weblink added. Can you please copy the sandbox version over to the main. Thanks Tobyc75 ( talk) 20:41, 11 May 2012 (UTC)
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
The (hidden by default) maps that show the location of a town are titled "Map of X". I propose this title to be changed to "Location of X". Jjgw ( talk) 15:48, 23 May 2012 (UTC)
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
It seem that something in this template adds some articles to Category:Articles with missing files. Template coding is beyond my capabilities so can someone see what is causing it? Cheers. -- Alan Liefting ( talk - contribs) 06:58, 11 September 2012 (UTC)
.png
), but this is not the whole story. This is the last fallback when various other images have been tried, but have been found to also be non-existent. The infobox uses several parameters to conjure up an image name, these are |municipality_type=
|subject_name=
|municipality_code=
(which is pushed through {{
SFOS2Municipality}}
) and |map=
. I wouldn't like to describe the hoops that are jumped through in order to do this, but for the specific case of
Aquila, Switzerland which has |municipality_type=former
and |subject_name=Aquila
, it's expecting any one of eight files to exist (these are
File:Karte Gemeinde Aquila 2013.png;
File:Karte Gemeinde Aquila 2012.png;
File:Karte Gemeinde Aquila 2011.png;
File:Karte Gemeinde Aquila 2010.png;
File:Karte Gemeinde Aquila 2009.png;
File:Karte Gemeinde Aquila 2008.png;
File:Karte Gemeinde Aquila 2007.png;
File:Karte Gemeinde Aquila .png), and in the absence of all of these, you get a redlink in the final page and therefore
Category:Articles with missing files. However,
File:Karte Gemeinde Aquila.png (with no space before the .png
) does exist, so perhaps we need additional code to look for that. --
Redrose64 (
talk)
10:25, 11 September 2012 (UTC)Here are some more: Zinal, Zimmerwald. -- Alan Liefting ( talk - contribs) 09:24, 21 September 2012 (UTC)
I've rewritten the code in the sandbox to make it a bit more flexible and to create an image for the failure case. It now looks for images by the municipality_code field, then the map field, then the municipality_name field then if none of those work, it displays the No map.png image. This will prevent errors when the infobox can't find an image and makes it more flexible. I've tried it on a number of articles and haven't found any problems so far. I'll make sure the rest of the sandbox section matches so that the entire sandbox version can just be copied over. Tobyc75 ( talk) 20:44, 21 September 2012 (UTC)
File:Map of this place (current version).svg
. --
Alan Liefting (
talk -
contribs)
22:54, 21 September 2012 (UTC)The current infobox doesn't look great at all. The picture doesn't fit the infobox and the image caption is too big and separated from the picture (see Zurich and Washington, D.C. for examples). I think it was better before. mgeo talk 22:17, 23 September 2012 (UTC)
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Could someone make the several following changes (apparently uncontroversial):
Thanks. mgeo talk 08:29, 7 December 2012 (UTC)
Some small towns don't have an official website. Yes, this still exists. Take Mont-Tramelan; mont-tramelan.ch does not exist. Showing dead links to users is not a very good experience. Can you add functionality for explicitly specifying no website? Bonzon ( talk) 19:51, 29 April 2013 (UTC)
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Hello.
When parameter mayor_asof is filled in, it appears adjacent to the mayor's name. Example from Yverdon-les-Bains:
Does not look good.
Can someone please insert a space?
Thanks.
HandsomeFella ( talk) 17:25, 12 May 2013 (UTC)
Per discussion at Wikipedia:Templates for discussion/Log/2013 June 29#Template:Infobox Swiss town, we should now make this template a wrapper for {{ Infobox settlement}} (the latter is about to be converted to use {{ infobox}}). Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 09:46, 10 July 2013 (UTC)
Comments, anyone? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 15:34, 17 August 2013 (UTC)
Oppose this attempt to completely redo the template. The TFD discussion ended without a consensus for changing the template and it is incorrect to pretend that these changes are a given. The argument that this wrapper is smaller, while technically true, is a red herring. While it is only 5K, it calls another 3K template and the 42K Infobox Settlement template. The current template is only 15K! Additionally, there's this Infobox Swiss town former template. The current template handles former municipalities with a single line. The proposal seems to be to have 2 separate templates, one for current municipalities and one for former municipalities. As I commented below, this more than doubles the amount of maintenance and means that the templates are likely to slowly change appearance as changes are made to one but the not the other and they drift away from each other. I would support a change if it actually made things easier or more efficient, but these changes make it more complex, harder and less efficient. Tobyc75 ( talk) 11:49, 23 August 2013 (UTC)
The result of the discussion was no consensus to delete. There appear to be no serious objections to rewriting the template to use {{ infobox settlement}}, but as was mentioned below, that can be discussed on the talk page.The proposal is for one template; and will improve efficiency by reducing the maintenance overhead. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 14:09, 25 August 2013 (UTC)
Seiry, a former municipality, also had its postal code replaced at one point. I don't believe the old one, currently showing in the infobox, is currently in use by the post, but 1474 no longer is the postal code through which to reach inhabitants of the village. Should it be updated to the current one (which shows correctly on the parent municipality) or is there a historical reason to keep the old one? Thanks, MLauba ( Talk) 21:49, 29 August 2013 (UTC)