Template talk:Infobox settlement
![]() | This template was nominated for deletion. Please review the prior discussions if you are considering re-nomination:
|
This is the talk page for discussing improvements to the Infobox settlement template. |
|
Archives: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33Auto-archiving period: 75 days ![]() |
{{WikiProject banner shell}}
to this page and add the quality rating to that template instead of this project banner. See WP:PIQA for details.{{WikiProject banner shell}}
to this page and add the quality rating to that template instead of this project banner. See WP:PIQA for details.![]() | Cities Template‑class | ||||||
|
![]() | Infoboxes | |||
|
![]() | Standardisation of other templates into this one Discussion of the merging and deletion of templates whose scope overlaps this template has been moved to /Other templates up for TfD. |
This is the talk page for discussing improvements to the Infobox settlement template. |
|
Archives: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33Auto-archiving period: 75 days ![]() |
World map - usage of place infoboxes.svg
- green : Infobox settlement (only)
- turquoise: 1 Infobox settlement wrapper having less than 10000 transclusions (light 0-99, medium 100-999, dark 1000-9999 transclusions) and optionally Infobox settlement
- blue : >1 Infobox settlement wrapper and optionally Infobox settlement (light: 1 wrapper [>10000 transclusions], medium : 2 wrappers, dark : 3+ wrappers)
- red : other infobox(es) (light: 1, medium : 2, dark : >2 infoboxes) and optionally Infobox settlement and wrappers
Data source: Wikipedia:List of infoboxes/Geography and place#Place TerraCyprus (talk) 17:05, 24 April 2019 (UTC) // updated TerraCyprus (talk) 16:47, 3 May 2019 (UTC) // updated 78.55.13.81 (talk) 15:11, 10 May 2019 (UTC) // updated 29 June 2019 TerraCyprus (talk) 20:00, 13 July 2019 (UTC)
- User:TerraCyprus - That is great! 77.183.108.3 (talk) 23:33, 24 April 2019 (UTC)
- @TerraCyprus, Nice visualisation. Thanks. Arjunaraoc (talk) 04:07, 25 April 2019 (UTC)
All of Latin America now using Infobox settlement directly. 89.12.120.131 (talk) 18:49, 28 July 2019 (UTC)
Display type if name is not set
![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
https://en.wikipedia.org/w/index.php?title=Template:Infobox_settlement/sandbox&diff=896472053&oldid=889890612 78.54.127.217 (talk) 18:13, 10 May 2019 (UTC)
- Please demonstrate with some testcases or user sandbox pages. This template is used in hundreds of thousands of pages and should not be modified without testing. – Jonesey95 (talk) 19:27, 16 May 2019 (UTC)
- It is just taking the name statement from
<div style="display:inline" class="fn org">{{if empty|{{{name|}}}|{{{official_name|}}}|{{PAGENAMEBASE}}}}</div>
- and replacing the name statement "{{{name|}}}{{{official_name|}}}" in
{{#if:{{both|{{{name|}}}{{{official_name|}}}{{#ifeq:{{yesno|{{{embed|}}}}}|yes|1}}|{{{settlement_type|{{{type|}}}}}}}}|<div class="category">{{{settlement_type|{{{type}}}}}}</div>}}
- Result
| subheader = {{#if:{{both|{{if empty|{{{name|}}}|{{{official_name|}}}|{{PAGENAMEBASE}}}}{{#ifeq:{{yesno|{{{embed|}}}}}|yes|1}}|{{{settlement_type|{{{type|}}}}}}}}|<div class="category">{{{settlement_type|{{{type}}}}}}</div>}}
- Very easy. "Please demonstrate with some testcases"? Here you go:
- 78.55.22.17 (talk) 20:25, 16 May 2019 (UTC)
- Note: User:Pbroks13 is reverting the test cases and accuses me of vandalism. But the changes can be seen via diff. 78.55.22.17 (talk) 20:30, 16 May 2019 (UTC)
- This may be a language misunderstanding; "testcases" is a technical term referring to the Template:Infobox_settlement/testcases page. Any editor is correct in reverting test changes to live Wikipedia articles. Neither making test changes nor reverting them is "vandalism". ~ ToBeFree (talk) 21:05, 16 May 2019 (UTC)
- ~ ToBeFree, thank you. I checked Template:Infobox_settlement/testcases#Case_8:_Toronto - which is broken, but fine, when /sandbox is added to the actual article. "/testcases" code has a bug. 78.55.22.17 (talk) 21:52, 16 May 2019 (UTC)
- Interesting. I see what you mean, but I fail to find the reason for the testcase bug. The {{testcase table}} template is meant to ensure properly working testcases. ~ ToBeFree (talk) 22:45, 16 May 2019 (UTC)
- Restored IP's changes to sandbox. Will investigate Dreamy Jazz 🎷 talk to me | my contributions 14:21, 19 May 2019 (UTC)
- I can't see any problems / errors with this edit by comparing the sandbox and template. I removed name and official name from testcase 8 and it didn't have an error either diff. ToBeFree, what was this error? Dreamy Jazz 🎷 talk to me | my contributions 14:37, 19 May 2019 (UTC)
- Dreamy Jazz, I knew I should have made a screenshot. It must have been a weird server-side caching issue; the map appeared next to the flag in the flag field of the table. The issue is gone, either because caches have been cleared, or because changes have been made to the sandbox or the table template since. In a nutshell, there is no issue, and possibly there never was a real issue. ~ ToBeFree (talk) 16:07, 19 May 2019 (UTC)
- ToBeFree, it may have been fixed in this edit diff. It seems that the sandbox was overwritten for testing the footnotes. In the edit it changed using {{Infobox settlement/columns/sandbox}} to {{Infobox settlement/columns}}. In that case, I'm happy this change is fine, so I will implement it. Dreamy Jazz 🎷 talk to me | my contributions 16:13, 19 May 2019 (UTC)
- Dreamy Jazz, I knew I should have made a screenshot. It must have been a weird server-side caching issue; the map appeared next to the flag in the flag field of the table. The issue is gone, either because caches have been cleared, or because changes have been made to the sandbox or the table template since. In a nutshell, there is no issue, and possibly there never was a real issue. ~ ToBeFree (talk) 16:07, 19 May 2019 (UTC)
- I can't see any problems / errors with this edit by comparing the sandbox and template. I removed name and official name from testcase 8 and it didn't have an error either diff. ToBeFree, what was this error? Dreamy Jazz 🎷 talk to me | my contributions 14:37, 19 May 2019 (UTC)
- Restored IP's changes to sandbox. Will investigate Dreamy Jazz 🎷 talk to me | my contributions 14:21, 19 May 2019 (UTC)
- Interesting. I see what you mean, but I fail to find the reason for the testcase bug. The {{testcase table}} template is meant to ensure properly working testcases. ~ ToBeFree (talk) 22:45, 16 May 2019 (UTC)
- ~ ToBeFree, thank you. I checked Template:Infobox_settlement/testcases#Case_8:_Toronto - which is broken, but fine, when /sandbox is added to the actual article. "/testcases" code has a bug. 78.55.22.17 (talk) 21:52, 16 May 2019 (UTC)
- This may be a language misunderstanding; "testcases" is a technical term referring to the Template:Infobox_settlement/testcases page. Any editor is correct in reverting test changes to live Wikipedia articles. Neither making test changes nor reverting them is "vandalism". ~ ToBeFree (talk) 21:05, 16 May 2019 (UTC)
Done Requested changes does not cause problems in the testcases and achieves what is needed. Dreamy Jazz 🎷 talk to me | my contributions 16:18, 19 May 2019 (UTC)
Causes unwanted short descriptions outside of mainspace – {{main other}} required
![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
This template's invocation of Module:Settlement short description requires {{main other}}
to keep in check any unwanted occurrences of short descriptions outside of mainspace when the template is used for demonstrative purposes on project, talk, or documentation pages. For example, enable Shortdesc helper and take a peek at {{collapsible list}}
. Notice how its documentation page displays a short description: "Place in Ontario, Canada".
<includeonly>{{main other|{{#invoke:Settlement short description|main|{{{settlement_type|{{{type|}}}}}}|{{{short_description|}}}|{{{subdivision_name|}}}|{{{subdivision_name1|}}}|{{{subdivision_name2|}}}}}|}}{{Infobox
Jay D. Easy (t • c) 21:54, 16 May 2019 (UTC)
Done Izno (talk) 02:32, 17 May 2019 (UTC)
Hectare/acre conversion
We seem to have an inconsistency between the area_total_ha conversion used in this template and the result of converting ha to acres in the {{convert}} template. Is it just some rounding thing? An example can be seen by comparing the figure in the lead section at Inglun with that shown in the infobox there. - Sitush (talk) 18:49, 21 May 2019 (UTC)
- Sitush, yes, it's a rounding thing, if you try
{{cvt|1483|ha|acre|0}}
in the lead section, you get the same result for both. Frietjes (talk) 20:10, 21 May 2019 (UTC)- Excellent, thank you. I'll do that and hope that I remember it in future. - Sitush (talk) 20:35, 21 May 2019 (UTC)
Alt text bug
At Peserai:
{{Infobox settlement |name = Peserai |image = Batu Pahat, Johor, Malaysia - panoramio (18).jpg |image_alt = A dirt road }} |
→→→ |
|
Even though |image_alt=
is specified, when you hover over the image, a tooltip with "Skyline of Peserai" appears, ignoring the specified |image_alt=
value.
However, if you add a |image_caption=
, even if the value is empty, it does the correct thing – the tooltip says "A dirt road", as specified by |image_alt=
:
{{Infobox settlement |name = Peserai |image = Batu Pahat, Johor, Malaysia - panoramio (18).jpg |image_alt = A dirt road |image_caption = }} |
→→→ |
|
Neither the default tooltip of "Skyline of {{{name}}}
", nor this interaction with |image_caption=
is documented. What should happen here? —[AlanM1(talk)]— 02:39, 5 June 2019 (UTC)
- WP:ALT does not say anything about alt text appearing when you hover over an image. In my experience, the value of the
|title=
parameter appears when you hover over the image. If you feed these two template examples to Special:ExpandTemplates, you should see that the alt text is being rendered correctly. In my opinion, the title parameter is not being handled correctly, however; it should not default to "Skyline of ...". That will require some experimenting in the sandbox. – Jonesey95 (talk) 08:47, 5 June 2019 (UTC)Fixed There are two issues here:
- A bug in the handling of empty parameters to the image: previously, empty parameters were handled differently than missing parameters. With a liberal application of {{if empty}}, that is now fixed.
- A design choice in what to present as a tooltip. As Jonesey95 has pointed out above, the alt string is not the same as the tooltip. The previous version of the template was handling the alt string correctly in all cases. The previous design choice for what to display as a tooltip: ignore the alt string when no caption was provided, and to use a default string. I have changed the template to display the first non-empty parameter from the following list as a tooltip:
|image_caption=
,|image_alt=
, "Skyline of|name=
", and "Skyline of|official_name=
". If other editors disagree with the addition of|image_alt=
to this chain of tooltip choices, it is extremely easy to revert. —hike395 (talk) 09:17, 5 June 2019 (UTC)
- How about eliminating the "Skyline of" prefixing, since these are not always (often?) used for skylines. I see that
|image=
actually a synonym for|image_skyline=
, but the description is "Despite the name it can be any image that an editor wishes". —[AlanM1(talk)]— 05:07, 11 June 2019 (UTC)
- How about eliminating the "Skyline of" prefixing, since these are not always (often?) used for skylines. I see that
Coordinates fallback wikidata
Template:Infobox U.S. metropolitan area has
| coordinates = {{if empty|{{{coordinates|}}}|{{#if:{{#property:P625}}|{{coord|format=dms|display=inline}}}}}}
Could that be activated for Infobox settlement? 77.183.50.1 (talk) 10:23, 5 June 2019 (UTC) // @Hike395: could you help? 77.183.50.1 (talk) 10:31, 5 June 2019 (UTC)
New parameters: Biota symbols, NUTS, GDP, ...
- Dreamy_Jazz at Wikipedia:Templates_for_discussion/Log/2019_June_5#Template:Infobox_Prefecture_Japan suggests to add
|Flower=
,|Tree=
,|Bird=
and|Fish=
- Dreamy_Jazz at Wikipedia:Templates_for_discussion/Log/2019_June_4#Template:Infobox_French_region suggests to add
|GDP=
and|NUTS=
77.13.54.171 (talk) 07:53, 11 June 2019 (UTC)
fix MOS:FONTSIZE issues
![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Hullo... could someone implement the changes here in the sandbox that remove all sections that render text in the infobox (already at 85% of normal text size) smaller than 100%? This is a MOS:FONTSIZE issue that has WP:ACCESS repercussions. It's been raised previously. —Joeyconnick (talk) 18:58, 12 July 2019 (UTC)
- Yes, this has long needed doing for accessibility. See also WP:Village pump (proposals)/Archive 146#Observe MOS:FONTSIZE in infobox templates. ―Mandruss ☎ 07:29, 16 July 2019 (UTC)
- I'm tagging this with a TPER, though I scanned it and didn't see an issue. --Izno (talk) 12:41, 16 July 2019 (UTC)
Done — JJMC89 (T·C) 03:59, 17 July 2019 (UTC)
- Thank you! —Joeyconnick (talk) 18:58, 18 July 2019 (UTC)
Completion
Could there be a parameter named "|Completion” because some cities are being planned and built?Manabimasu (talk) 01:23, 14 July 2019 (UTC)
- Clarify and give examples of what you mean. • Sbmeirow • Talk • 02:10, 14 July 2019 (UTC)
- Sbmeirow (talk · contribs)Port City Columbo, Jing-Jin ji, Tianjin, Konza Techno City.Manabimasu (talk) 13:45, 14 July 2019 (UTC)
Founded by
Should "Founded by" get moved before "established" params because somethimes one wants to have several estapblished titles and not after them who founded the very first type of a settlement (for example Kotar and then date dd Month yyyy, below it Municipality with date dd Month yyyy, below it City with date dd Month yyyy and then it comes title Founded by with the founder of the first settlement [whether Kotar or even some before it] making thus founder and the last "foundation" as a City wrongly connected because someone can imply that Founded by refers to the last type of establishment). I have example in Zenica where I entered "Municipality became City" instead of only "City" because of this reason, but I am not satisfied yet because one could imply that the established City (established after Municipality) was founded by the person stated below. --Obsuser (talk) 13:40, 26 July 2019 (UTC)
I solved it for myself by using estrablished params for founding too and taking out Founded by. --Obsuser (talk) 15:33, 26 July 2019 (UTC)
Time zone information - Wikidata
Is the local data compared with Wikidata? Are there tracking categories for differences? Is the IANA time zone database used? 89.12.120.131 (talk) 18:54, 28 July 2019 (UTC)
Additional link options and timezone areas
I've been working on converting Template:Infobox U.S. state to a infobox settlement wrapper and found that being able to link to lists from the mottoes, nicknames, anthems and elevation labels was desirable. I have therefore made a version with this feature in the sandbox and I see no issues in the testcases. This feature will also be convenient for other countries with country specific lists.
My larger change is adding timezone_area parameters for describing in which area of the region the timezone is for. See Florida for an example. I've tested this feature and set up a new testcase for it and it seems to be working as well.
I would like to know if anyone have any objections about these non-breaking feature additions and will, if noone objects, submit an edit request in a week. --Trialpears (talk) 01:01, 31 July 2019 (UTC)
- Trialpears, could you fix broken links in your text and add links to sandbox and testcase, so others can simply click through? 77.183.70.51 (talk) 12:01, 31 July 2019 (UTC)
- Sure thing --Trialpears (talk) 12:16, 31 July 2019 (UTC)
Template:Infobox region symbols
Please include Template:Infobox region symbols in case Bird=, Flower=, or some other applicable not overlapping code is set - or better set the parameter to be tested to symbol_bird, symbol_flower, ... Trialpears just used parameters like these in a TfD for Template:Infobox province or territory of Canada. 77.183.70.51 (talk) 11:52, 31 July 2019 (UTC)
Language information
I think language should be an extra parameter, or set of parameters and not be in demographics_123 as is done in some articles due to a lack of a more specific parameter. This would also ensure that language information appears in the same place accross all articles. 77.183.70.51 (talk) 12:13, 31 July 2019 (UTC)
GDP
In Template:Infobox province or territory of Canada GDP/capita is in demographics1_title3 . Articles calling Iinfobox settlement directly or other wrappers may use it differently. Could there by a dedicated GDP parameter, and per capita be calculated? That would ensure the information is displayed at the same place. It may also enable a better connection to Wikidata. 77.183.70.51 (talk) 12:54, 31 July 2019 (UTC)
Protection level for wrappers
User:Ivanvector changed the protection level for one of the wrappers after it was proposed for deletion at TfD by me from "semi" to "template", see Template talk:Infobox India district#Template protection. This is generally not done for Infobox settlement wrappers. 77.183.70.51 (talk) 17:24, 31 July 2019 (UTC)