Misplaced Pages

Template talk:Infobox Switzerland municipality: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editContent deleted Content addedVisualWikitext
Revision as of 22:34, 22 March 2024 editOpalYosutebito (talk | contribs)Extended confirmed users, Pending changes reviewers159,170 edits popofyear?: ReplyTags: Mobile edit Mobile web edit Advanced mobile edit Reply← Previous edit Latest revision as of 12:43, 30 September 2024 edit undoJonesey95 (talk | contribs)Autopatrolled, Extended confirmed users, Page movers, Mass message senders, Template editors375,656 edits Merge or replacement?: maybe 
(10 intermediate revisions by 6 users not shown)
Line 19: Line 19:
<!-- ] --> <!-- ] -->


== "Manual population" category false positives ==
== 20 August 2020 edit request ==


Articles including ] are being placed in {{cl|Pages using infobox Switzerland municipality with manual population}} even though they are getting data from <s>Wikidata</s> a template, {{tl|Swiss populations NC}}, and its allied templates. Pinging {{U|ProcrastinatingReader}}, who added this check and category. – ] (]) 22:31, 22 March 2024 (UTC)
{{edit template-protected|answered=yes}}
: The category is passed whenever {{para|population}}/{{para|populationof}} is used. If you omit the parameter set then it autofills it from the same template. There's no way the infobox can tell whether its input comes from a template. ] ] 03:19, 15 April 2024 (UTC)
Greetings and felicitations. Would someone please be so kind as to add a plural option for the {{mono|postal_code}} field? I checked both the documentation and the talk page archives and can't find one, nor does making the field plural ("postal_codes") currently work. (Please be so kind as to {{Tlx|ping}} me when you respond.) —05:30, 20 August 2020 (UTC)
:] '''Done'''<!-- Template:ETp --> Use {{para|postal_code}} as usual. You can see the new code in action at ]. Not pinging because you did not sign with your user name. Please fix your signature. – ] (]) 13:22, 20 August 2020 (UTC)
:: {{Ping|Jonesey95}} Oops. My signature is manual; thank you! ^_^ — ] (]) 10:48, 31 December 2020 (UTC)


== Template-protected edit request on 19 April 2021 == == 10 April 2024 edit request ==


{{edit template-protected|Template:Infobox Switzerland municipality|answered=yes}} {{Edit template-protected|answered=yes}}
Can you add "imagepath_flag"? Every municipality has a flag alongside with a coat of arm just like the cantons. ] (]) 01:30, 19 April 2021 (UTC) ] (]) 01:30, 19 April 2021 (UTC)
:{{re|SpinnerLaserzthe2nd}} can you make the change in the template's sandbox first? ] (] &#124; ]) 07:26, 20 April 2021 (UTC)
::{{re|Elli}} I had done it already. ] (]) 07:34, 20 April 2021 (UTC)
:::{{re|SpinnerLaserzthe2nd}} it seems like there are some other changes too. Would you also like those implemented? ] (] &#124; ]) 07:36, 20 April 2021 (UTC)
::::Yes.] (]) 07:37, 20 April 2021 (UTC)
:::::{{re|SpinnerLaserzthe2nd}} can you please explain the purpose of those changes? ] (] &#124; ]) 08:20, 20 April 2021 (UTC)
::::::{{re|Elli}} The purpose of the change is to display the flag of a Swiss municipality. ] (]) 08:52, 20 April 2021 (UTC)
:::::::{{re|SpinnerLaserzthe2nd}} I understand that - I'm talking about the change to the {{param|population_total}} and {{param|population_as_of}} parameters. ] (] &#124; ]) 09:13, 20 April 2021 (UTC)
::::::::...looking, it seems like you didn't make those changes. In which case, I'll implement the changes you requested, as they seem to be non-controversial. ] (] &#124; ]) 09:14, 20 April 2021 (UTC)
:] '''Done'''<!-- Template:ETp --> ] (] &#124; ]) 09:15, 20 April 2021 (UTC)


Greetings and felicitations. Would please make the "iso-code-region" visible, as it is in most other country and first level subdivision infoboxes? (I'm afraid I don't know how to code/construct the change, so I can't post proposed code, but perhaps you can copy it from {{Tlx|Infobox English county}}.) —] (]) 13:38, 10 April 2024 (UTC)
==21 September 2023 edit request==
: {{Done}} ] ] 03:17, 15 April 2024 (UTC)


== Merge or replacement? ==
{{edit template-protected|answered=yes}}
Add parentheses before and after the listed political party of the mayor,so that the format is displayed as MAYOR (PARTY) instead of MAYOR PARTY. For example: Michele Foletti '''('''Ticino League''')'''. ] <sub>(] / ])</sub> 20:03, 21 September 2023 (UTC)
:] '''Not done:''' please make your requested changes to the template's sandbox first; see ].<!-- Template:ETp --> There is already a parenthetical remark after the party name at ]. How do you propose reconciling your request with that formatting? – ] (]) 21:58, 21 September 2023 (UTC)

== popofyear? ==

Hi, I've noticed that all of the articles that use this template have some stray text up at the top that just reads "popofyear" (ex: the top of ]), regardless of whether or not the article is using that parameter in the infobox call. It's definitely within this line of code:

<pre>{{main other| {{#if:{{{popofyear|}}}|{{#if:{{#invoke:string|replace|{{{populationof}}}|^.*{{{popofyear}}}.*$||plain=false}}|NULL_|}} }}popofyear }}</pre>

Could someone please fix this? Thanks! - ] (]) 22:26, 22 March 2024 (UTC)
:That was me trying to fix something. My apologies for the excessive edits today; there was some extremely unusual testing going on in and around the check for unknown parameters, and I had to look through the edits and edit summaries one by one until I figured it out. I think it's all fixed now. – ] (]) 22:29, 22 March 2024 (UTC)
::It's ok. The stray text is gone now, thanks :) - ] (]) 22:34, 22 March 2024 (UTC)

== "Manual population" category false positives ==


Articles including ] are being placed in {{cl|Pages using infobox Switzerland municipality with manual population}} even though they are getting data from Wikidata. Pinging {{U|ProcrastinatingReader}}, who added this check and category. ] (]) 22:31, 22 March 2024 (UTC) I proposed merge or replacement for {{tl|Infobox Switzerland municipality}} with {{tl|Infobox settlement}}. Unlike other infoboxes of cities, villages, and municipalities, have their own native names in other languages for {{tl|Infobox settlement}}. ] (]) 06:35, 29 September 2024 (UTC)
:This template is already a wrapper for Infobox settlement. It has some custom features that probably would not be welcome in infobox settlement. Are you proposing that those features be eliminated? Please make a specific proposal, or create a demonstration page that shows infobox settlement being used for a settlement that currently uses this template's custom features. – ] (]) 00:14, 30 September 2024 (UTC)
::See ] and ] for Geneva and Zurich by using {{tl|Native name}} is placed on <code>|subject_name =</code> parameter. ] (]) 10:37, 30 September 2024 (UTC)
:::Maybe you just want {{para|native_name}} and {{para|native_name_lang}} added to this template. You can add those parameters to the sandbox to see how they work on the testcases page. – ] (]) 12:43, 30 September 2024 (UTC)

Latest revision as of 12:43, 30 September 2024

This is the talk page for discussing improvements to the Infobox Switzerland municipality template.
This template does not require a rating on Misplaced Pages's content assessment scale.
It is of interest to the following WikiProjects:
WikiProject iconInfoboxes
WikiProject iconThis template is within the scope of WikiProject Infoboxes, a collaborative effort to improve the coverage of Infoboxes on Misplaced Pages. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.InfoboxesWikipedia:WikiProject InfoboxesTemplate:WikiProject InfoboxesInfoboxes
WikiProject iconGeography
WikiProject iconThis template is within the scope of WikiProject Geography, a collaborative effort to improve the coverage of geography on Misplaced Pages. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.GeographyWikipedia:WikiProject GeographyTemplate:WikiProject Geographygeography
WikiProject Geography To-do list:

Here are some tasks awaiting attention:
WikiProject iconSwitzerland
WikiProject iconThis template is within the scope of WikiProject Switzerland, a collaborative effort to improve the coverage of Switzerland on Misplaced Pages. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.SwitzerlandWikipedia:WikiProject SwitzerlandTemplate:WikiProject SwitzerlandSwitzerland
This template was considered for deletion on September 5, 2009. The result of the discussion was "keep".
This template was considered for deletion on 29 June 2013. The result of the discussion was "no consensus".

Archiving icon
Archives
Archive 1Archive 2Archive 3
Archive 4


This page has archives. Sections older than 14 days may be automatically archived by Lowercase sigmabot III when more than 3 sections are present.

"Manual population" category false positives

Articles including Bern are being placed in Category:Pages using infobox Switzerland municipality with manual population even though they are getting data from Wikidata a template, {{Swiss populations NC}}, and its allied templates. Pinging ProcrastinatingReader, who added this check and category. – Jonesey95 (talk) 22:31, 22 March 2024 (UTC)

The category is passed whenever |population=/|populationof= is used. If you omit the parameter set then it autofills it from the same template. There's no way the infobox can tell whether its input comes from a template. * Pppery * it has begun... 03:19, 15 April 2024 (UTC)

10 April 2024 edit request

This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request.

Greetings and felicitations. Would please make the "iso-code-region" visible, as it is in most other country and first level subdivision infoboxes? (I'm afraid I don't know how to code/construct the change, so I can't post proposed code, but perhaps you can copy it from {{Infobox English county}}.) —DocWatson42 (talk) 13:38, 10 April 2024 (UTC)

 Done * Pppery * it has begun... 03:17, 15 April 2024 (UTC)

Merge or replacement?

I proposed merge or replacement for {{Infobox Switzerland municipality}} with {{Infobox settlement}}. Unlike other infoboxes of cities, villages, and municipalities, have their own native names in other languages for {{Infobox settlement}}. 181.39.48.120 (talk) 06:35, 29 September 2024 (UTC)

This template is already a wrapper for Infobox settlement. It has some custom features that probably would not be welcome in infobox settlement. Are you proposing that those features be eliminated? Please make a specific proposal, or create a demonstration page that shows infobox settlement being used for a settlement that currently uses this template's custom features. – Jonesey95 (talk) 00:14, 30 September 2024 (UTC)
See this and this for Geneva and Zurich by using {{Native name}} is placed on |subject_name = parameter. 170.83.82.10 (talk) 10:37, 30 September 2024 (UTC)
Maybe you just want |native_name= and |native_name_lang= added to this template. You can add those parameters to the sandbox to see how they work on the testcases page. – Jonesey95 (talk) 12:43, 30 September 2024 (UTC)
Categories: