Revision as of 23:30, 5 November 2020 editJonesey95 (talk | contribs)Autopatrolled, Extended confirmed users, Page movers, Mass message senders, Template editors375,656 edits →Template-protected edit request on 5 November 2020 – wording change to avoid awkward "Municipality of Switzerland": prefer nothing← 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 |
(37 intermediate revisions by 13 users not shown) |
Line 14: |
Line 14: |
|
|minthreadstoarchive = 1 |
|
|minthreadstoarchive = 1 |
|
|algo = old(14d) |
|
|algo = old(14d) |
|
|archive = Template talk:Infobox Swiss town/Archive %(counter)d |
|
|archive = Template talk:Infobox Switzerland municipality/Archive %(counter)d |
|
}} |
|
}} |
|
{{archives|search=yes}} |
|
{{archives|search=yes}} |
|
<!-- ] --> |
|
<!-- ] --> |
|
|
|
|
|
|
== "Manual population" category false positives == |
|
== Edit Request-Add Canton Maps == |
|
|
|
|
|
|
|
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) |
|
Please replace the template with the version found at ]. The sandbox2 version changes the location map from just showing Switzerland to showing 2 location maps, either the country or the canton or both. It uses the location = Switzerland#Canton of xxxx. ] (]) 15:04, 23 March 2017 (UTC) |
|
|
:{{u|Tobyc75}}, you may notice that the template request box above contains a bunch of tools, all geared to using '''sandbox''', not '''sandbox2'''. You request that sandbox2 is made live, but the ], even though nested under sandbox2, tests sandbox. For these reasons, ] '''Not done for now:'''<!-- Template:ETp -->. ] (]) 15:40, 23 March 2017 (UTC) |
|
|
::{{u|Cabayi}}Actually, the ] to Sandbox2 all reference ] not Sandbox. All the test cases start with: <nowiki> {{Infobox Swiss town/sandbox2 </nowiki>.] (]) 15:54, 23 March 2017 (UTC) |
|
|
:] '''Done'''<!-- Template:ETp --> {{ping|Cabayi}} This was merely a matter of the headings/labels on the testcases page, not the actual examples transcluded on it. — ] (] • ]) 05:12, 24 March 2017 (UTC) |
|
|
::{{u|Train2104}} So I saw after {{u|Tobyc75}}'s comment. It's that type of discrepancy that shreds confidence in the testing. And a lack of response to the remainder of my comment which led me to let it sit. Also, it wasn't just a as requested. |
|
|
::Anybody object to getting rid of sandbox2 to ensure the proper sandbox is used in future? ] (]) 07:25, 24 March 2017 (UTC) |
|
|
:::I've requested deletion of sandbox2 G6 as redundant to sandbox & not working with TE tools & templates. ] (]) 16:57, 22 May 2017 (UTC) |
|
|
|
|
|
|
⚫ |
== 10 April 2024 edit request == |
|
== Including a wrong link to a ''coat of arms of ...'' page == |
|
|
|
|
|
Hi, the template sometimes includes a wrong link to a ''coat of arms of ...'' page. It will include such a link automatically if it exists (through the <code><nowiki>#ifexist:Coat of arms of {{{subject_name}}}</nowiki></code> fragment, but there is no guarantee that that is actually the correct page. On ], ''subject_name'' is set to ''Saint-Barthélemy'', and the template automatically includes a link to ] (another Saint-Barthélemy unfortunately). Should I change ''subject_name'' on the target page to ''Saint-Barthélemy, Switzerland'', or should this template be changed to allow the configuration of the correct value (e.g. <code><nowiki>link_coa = Coat of arms of Saint-Barthélemy, Switzerland</nowiki></code>)? |
|
|
|
|
|
Thanks in advance for your response! ] (]) 22:05, 22 September 2018 (UTC). |
|
|
|
|
⚫ |
== 20 August 2020 edit request == |
|
|
|
|
|
{{edit template-protected|answered=yes}} |
|
|
Greetings and felicitations. Would someone please be so kind as to add a plural option for the <tt>postal_code</tt> 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) |
|
|
|
|
|
== Edit request - Settlement type == |
|
|
|
|
|
|
{{Edit template-protected|answered=yes}} |
|
{{Edit template-protected|answered=yes}} |
|
No type shown for most of the items. |
|
|
|
|
|
<nowiki>| settlement_type = {{#ifeq:{{{municipality_type|}}} | former | ] of ] }}</nowiki> |
|
|
|
|
|
please change to |
|
|
|
|
|
<nowiki>| settlement_type = {{#ifeq:{{{municipality_type|}}} | former | ] of ] }}{{#ifeq:{{{municipality_type|}}} | municipality | ] of ] }} |
|
|
</nowiki> |
|
|
|
|
|
] (]) 19:25, 17 September 2020 (UTC) |
|
|
:What about <code>city</code>, or <code>municipality and city</code>? I think this might benefit from a switch statement that accounts for acceptable values that are used in actual articles. Also the note in the documentation starting with "Used to add the categories..." does not appear to be correct. Was that functionality removed? If so, was the removal intentional? – ] (]) 20:31, 17 September 2020 (UTC) |
|
|
::], AFAICS {{para|municipality_type}} does not allow for anything else than "municipality" and "former", because "municipality" is the type and "former municipality" some fake type denoting that the municipality was abolished. ] (]) 20:47, 17 September 2020 (UTC) |
|
|
:::The documentation footnote #1, while apparently wrong about categorization, makes it clear that "former" and "everything else" are the two expected options. Based on that logic, I suggest the following (not yet tested): |
|
|
<code><nowiki>| settlement_type = {{#ifeq:{{{municipality_type|}}} | former | ] of ] | ] of ] }}</nowiki></code> |
|
|
:::Comments? – ] (]) 20:51, 17 September 2020 (UTC) |
|
|
::::Didn't see that note before. It says "<nowiki>*</nowiki>1: Used to add the categories ], ] and <nowiki>]</nowiki> if the field contains 'former' or ] and <nowiki>]</nowiki> in any other case" - why would "while apparently wrong about categorization" be true? Maybe any former is a village? What are the boxes about for the former municipalities if the article mixes village and former municipality? Population data for the village or for when it last was a municipality? ] (]) 21:42, 17 September 2020 (UTC) |
|
|
:::::The note <s>is</s> was wrong (edited to add: I have modified note #1 to explain what 'former' actually does) about categorization because this infobox template does not assign any of those categories to articles that transclude it. I am unable to parse your other questions. Let me know if you have a comment on my modification to your proposed code. – ] (]) 23:26, 17 September 2020 (UTC) |
|
|
::::::Now it says "<nowiki>*</nowiki>1: When the parameter value is 'former', population and website information are not shown." - so in all other cases the box is about the municipalities? A lot of the functionality depends on a correct {{para|municipality_code}} and {{para|municipality_type}} != "former". ], I cannot find a mistake with your code. Maybe in the future the box could be substituted for the former municipalities, then allways type=municipality. ] (]) 00:55, 18 September 2020 (UTC) |
|
|
:::::::I have updated the code based on my snippet of code above. – ] (]) 02:00, 18 September 2020 (UTC) |
|
|
|
|
|
== Edit request - timezone == |
|
|
|
|
|
{{edit template-protected|answered=yes}} |
|
|
| timezone_link = Time in Switzerland |
|
|
| timezone1 = ] |
|
|
| utc_offset1 = ] |
|
|
| timezone1_DST = ] |
|
|
| utc_offset1_DST = ] |
|
|
] (]) 21:51, 17 September 2020 (UTC) |
|
|
:] '''Done'''<!-- Template:ETp --> with modifications. ] (]) 23:14, 17 September 2020 (UTC) |
|
|
::], thank you for modifying away my mistakes! ] (]) 00:40, 18 September 2020 (UTC) |
|
|
|
|
|
== Is municipality_name= being handled correctly? == |
|
|
|
|
|
I am unable to follow the confusing history of this template and its wrappers, but it appears that {{para|municipality_name}} may have been a valid parameter with some function in the past. It is being marked as an unsupported parameter. – ] (]) 15:55, 29 October 2020 (UTC) |
|
|
:Also {{para|website}} has a lot of uses; was it valid at some point in the past? – ] (]) 15:57, 29 October 2020 (UTC) |
|
|
::And {{para|languages}}. – ] (]) 16:03, 29 October 2020 (UTC) |
|
|
:::They were in the template when it was converted to an IS wrapper, in ]. _name was moved in ] to a sub-template and fully removed in ]. Website is still a valid param. ] (]) 16:14, 29 October 2020 (UTC) |
|
|
|
|
|
== Population handling == |
|
|
|
|
|
Copied from ]: |
|
|
|
|
|
This request is done, but the target template needs some work. For example: the population handling w.r.t. Wikidata is totally bust. It is forcing ] to show 2018 years when 2020 ones are being explicitly provided on the page on enwiki (see source). {{para|popofyear}} is widely used as a year param, but it's not even supported by the template itself it seems? Looks like only the month/year combo param is. Parameter deprecation runs would also be helpful (by bot); looks like a few editors attempted some by hand yesterday. Lots of very old deprecated params here causing confusion it looks like. ] (]) 01:49, 30 October 2020 (UTC) |
|
|
:{{ping|ProcrastinatingReader}}The use of Wikidata for population and area has been an issue since it was unilaterally changed a couple years ago. The template used to use <nowiki>Template:Swiss populations</nowiki> which pulled population from a local en wiki list which I maintained and updated. In the articles, the population data is from that template, rather than Wikidata. There were a lot of technical issues with pulling wikidata for articles that have a title different than the article name in Wikidata. That, plus the ease of vandalism and the lack of eyes on Wikidata made transitioning the Swiss populations template not make sense. It would be great if we could get the infobox template to agree with the template in the article. <!-- Template:Unsigned --><small class="autosigned">— Preceding ] comment added by ] (] • ]) </small> |
|
|
{{od}} |
|
|
I've setup ] for tracking. This is all the articles where we (a) have a Wikidata population and (b) have a manual population parameter, hence the Wikidata data is overriding and the local data is not being shown(!). On some, like ], Wikidata is outdated. On others, our local articles have 2004 dates or so. People, naturally, probably didn't want to maintain it if it doesn't show up anyway. But this is really something we should fix, one way or another, I think. Forced Wikidata values seems controversial. ] (]) 16:30, 2 November 2020 (UTC) |
|
|
:My current thought is doing a bot run to delete parameters with pre-2018 values, or replace with call where a location can be determined. Then, we prioritise the enwiki parameter (usually a call to {{t|Swiss populations YM}}), making Wikidata into the fallback. The bot run will ensure doing step 2 won't cause articles to show very old population numbers instead. Any better ideas? ] (]) 16:34, 2 November 2020 (UTC) |
|
|
::Using ] instead of {{tl|wikidata}} is recommended, and it usually allows local values to override Wikidata values, which is typically what we want. – ] (]) 17:15, 2 November 2020 (UTC) |
|
|
:::Hmm. That's an improvement, but. what can we do about the old outdated years being used as params currently? Is there a neat way to deal with those without bot run, or overly complex / strange template logic? ] (]) 00:26, 3 November 2020 (UTC) |
|
|
::::] should be able to find dates that are older than desired and categorize them. – ] (]) 01:23, 3 November 2020 (UTC) |
|
|
:::::Hmm, I guess. Some kind of logic where if the Wikidata has a newer ''year'' than the local parameter, we use Wikidata instead. However, it needs to be year-based not date I think, because if locally we have year as "2020", and Wikidata is "12-10-2020", it should still use local. Which complicates things slightly more. I'm not too familiar with Wikidata integrations, is this something you could implement? ] (]) 12:54, 3 November 2020 (UTC) |
|
|
|
|
|
:Right now it's set to first look for 12-31-2018 in wikidata, then to look for any other wikidata date, then finally to look for the value in the infobox. It never looks at the template {{t|Swiss populations}} or the year template {{t|Swiss populations Y}}, which are updated every year when new numbers are published and is used in the article text. By having a date hard coded in the template, we'd have to rewrite that part of the infobox every year. Additionally, since if it doesn't find the 12-31-2018 date (which we'd have to manually change every year) the infobox currently just defaults to the first population data entry it finds in wikidata, regardless of year. For example, this means that if we change the 12-31-2018 to 12-31-2019 in the template and wikidata hasn't been updated then for the capital city of Bern, it defaults to 2013 data. For Zurich it looks like it might default to 1408! Using wikidata for things like population, which change often, has created a number of issues like this.] (]) 15:03, 3 November 2020 (UTC) |
|
|
|
|
|
=== Script errors related to population handling parameters === |
|
|
|
|
|
{{ping|Frietjes}} ] is causing script errors on any pages that pass <code>popofyear</code> but not <code>populationof</code>, such as ]. What's supposed to happen in that case? ] (]) 01:46, 5 November 2020 (UTC) |
|
|
: ], the template does not support {{para|popofyear}}, but in most cases the year is already in {{para|populationof}}, so the check is supposed to disable tracking of {{para|popofyear}} when the value is a substring of the value in {{para|populationof}}. if there is no {{para|populationof}} then the string replacement would act on a blank string, so this would also result in no tracking. ] (]) 16:39, 5 November 2020 (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) |
|
== Template-protected edit request on 5 November 2020 – wording change to avoid awkward "Municipality of Switzerland" == |
|
|
|
: {{Done}} ] ] 03:17, 15 April 2024 (UTC) |
|
|
|
|
|
|
== Merge or replacement? == |
|
{{edit template-protected|Template:Infobox Switzerland municipality|answered=yes}} |
|
|
This template currently produces the text {{!xt|Municipality of Switzerland}} under the subject name in the resulting infobox. That is not how we express such a term in English. It should read {{xt|Swiss municipality}} or maybe {{xt|Municipality in Switzerland}}. "Municipality of Switzerland" is how you would refer to a municipality named Switzerland. ] <sup>]</sup> 18:25, 5 November 2020 (UTC) |
|
|
:] '''Done'''<!-- Template:ETp -->. This might be controversial. The article is called "Municipalities of Switzerland", but it seems like more of a formal term. In English, we definitely say "X is a city/town/municipality/county in Y". If the in/of distinction is controversial, it would probably be best to simply write "Municipality", since the country name appears in the first line of data (after the images and maps). |
|
|
|
|
|
|
:For comparison, see {{tl|Infobox Portugal place}}, {{tl|Infobox French commune}}, and ], which suggests using only the place type in this location. – ] (]) 19:27, 5 November 2020 (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) |
|
::Thanks, Jonesey. Yes, the plural makes complete sense in the article title. But the singular here jumped out at me as odd; I'm guessing it was formulated by a non-native speaker. And I agree that simply "Municipality" would work as well. Just curious: Why did you prefer the "in" solution to "Swiss municipality"? ] <sup>]</sup> 23:22, 5 November 2020 (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) |
|
:::After doing a bit of poking around and reading the documentation (linked above), I prefer no nationality at all (i.e. just "Municipality"). I'm happy to give others a chance to have their say before changing it, though. – ] (]) 23:30, 5 November 2020 (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) |
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)