Template talk:Largest cities

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
WikiProject Cities (Rated Template-class)
WikiProject iconThis template is within the scope of WikiProject Cities, a collaborative effort to improve the coverage of cities, towns and various other settlements on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
 Template  This template does not require a rating on the project's quality scale.


Per Wikipedia:Manual of Style/Capital letters ("Wikipedia avoids unnecessary capitalization. Most capitalization is for proper names, acronyms, and initialisms."), I believe the row header should be "City name" instead of "City Name" (also, it seems like in the test case/example, it should be "English region/country" instead of "English Region/Country"), but the template looks complex enough I'm reluctant to make the change myself. (talk) 06:10, 28 November 2011 (UTC)

fixed. Frietjes (talk) 20:53, 30 November 2011 (UTC)
Thanks! (talk) 06:24, 1 December 2011 (UTC)

No div needed[edit]

In the case where there is no 'div' required, as in {{Largest cities of Nevada}}, if you don't specify one the template displays '[[]]' which is wrong. If div is not provided it should display nothing. Vegaswikian (talk) 21:01, 29 April 2012 (UTC)

I share this concern. A lot of new templates are being created with columns full of "[[]]", which is both wrong and ugly. --Orlady (talk) 18:57, 30 April 2012 (UTC)

Not everything in these lists is a city[edit]

This template is being used to create "largest cities" lists for some of the U.S. states. Unfortunately, in some states, some of the listed places are not "cities", but have some other legal designation. For example, in both Connecticut and Rhode Island, one or more of the ten largest is a New England town, not a legally incorporated "city." Unfortunately, the template allows no option for any other designation than "cities". Can't this be changed? --Orlady (talk) 18:47, 30 April 2012 (UTC)

Yes, this template seems to be quite inflexible. For example, I would like to be able to use piped links for cities like San Ignacio (town), but unfortunately it doesn't seem possible. Kaldari (talk) 06:14, 21 September 2012 (UTC)

Data sources[edit]

Many of these templates are being sourced to http://www.citypopulation.de/USA-Hawaii.html , which does not appear to me to be a WP:RS, although the data seem to be OK. --Orlady (talk) 18:57, 30 April 2012 (UTC)

Deletion discussion started[edit]

A deletion discussion for the applications of this template in U.S. state templates has started at Wikipedia:Templates for discussion/Log/2012 April 30. --Orlady (talk) 21:15, 30 April 2012 (UTC)

City 4, but not City 3[edit]

An image for City 4 cannot be seen without the City 3 image being set up.
Is there an empty or null image that could be used as a placeholder? Or could the code test for a reserved word, e.g. null.bmp, which means to skip that image?
This pertains to Template:Largest cities of Zimbabwe. (talk) 07:48, 29 June 2013 (UTC)

fixed. Frietjes (talk) 18:16, 29 June 2013 (UTC)

The "Pop." column heading[edit]

With 3 or 4 photos in the template, the column headings align horizontally.
But with 2 photos, or fewer, "Pop." is out of alignment with the other headings. It's higher.
This effect can be seen in the templates for Zambia and Zimbabwe. (talk) 14:47, 29 June 2013 (UTC)

fixed. Frietjes (talk) 18:17, 29 June 2013 (UTC)

Template-protected edit request on 30 December 2013[edit]

IP vandalism calls for semi-p, not te. I hope this isn't indicative of how te is applied elsewhere. — Lfdder (talk) 11:03, 30 December 2013 (UTC)

Not done: requests for changes to the page protection level should be made at Wikipedia:Requests for page protection. Jackmcbarn (talk) 03:11, 31 December 2013 (UTC)
I will waste your time if you waste mine. — Lfdder (talk) 22:47, 3 January 2014 (UTC)
What Jackmcbarn said. --Redrose64 (talk) 23:36, 3 January 2014 (UTC)
No, I think this is a great place for it. — Lfdder (talk) 00:20, 4 January 2014 (UTC)
With all respect, this is a great place to spin one's wheels on this issue. If you really want to lower the protection, then you are well-advised to take it to RFP with all due speed. – Paine Ellsworth CLIMAX! 00:44, 4 January 2014 (UTC)

Remove whitespace[edit]

Like what I did on the sandbox version of this template. Please see the diff. --Zyma (talk) 15:08, 9 January 2014 (UTC)

Done Jackmcbarn (talk) 15:39, 9 January 2014 (UTC)

Template-protected edit request on 19 May 2014 - remove excess bold[edit]

Please remove the excess bold formatting, specifically

  • The name of the country in the table heading (when the templates is used on that country's article page)
  • The names of the cities in the table

The bold formatting does not comply with the general use of bold specified in MOS:BOLD. Mitch Ames (talk) 12:05, 19 May 2014 (UTC)

Red information icon with gradient background.svg Not done: What you are asking for is a change of how the MediaWiki software works (which could be accomplished by changing common.css for .selflink to not be bold). Either way, this isn't the proper venue for that. Try Bugzilla or VPT{{U|Technical 13}} (tec) 12:17, 19 May 2014 (UTC)
are you asking for the bold to be removed like this? if so, seems reasonable, and doesn't require any change to the MediaWiki software :) Frietjes (talk) 18:59, 19 May 2014 (UTC)
The table headings are bold by default and I wouldn't want to change that. But Frietjes is right about the city names, and I don't think it should be controversial, so we could just make the change and see if anyone objects? — Martin (MSGJ · talk) 19:05, 19 May 2014 (UTC)
 Done – names of cities are no longer in bold format – Paine Ellsworth CLIMAX! 04:28, 20 May 2014 (UTC)
PS. The country (or state) will no longer be excessively bold. Clear your browser's cache. PS left by – Paine Ellsworth CLIMAX! 10:52, 20 May 2014 (UTC)
Does anyone know the rationale behind the [[{{{country}}}]] code? Specifically why, since this template is mostly used in country and state articles, why does it need to be linked? Yes, this is also used in US state articles where the state name is used as the "country" in the code, and there are demographics articles and city articles that also use this template, so the country/(state) link is "live" and blue on those pages. However, all those articles have links to the same country (or state) names, both in their leads and elsewhere in the articles. I submit that having the country linked in the header of this template, which causes the excessive looking bold that the requester seeks to omit, is nothing more, nothing less than over-linking. If no one objects, I would like to remove that link and resolve this excessive bold problem. – Paine Ellsworth CLIMAX! 05:56, 20 May 2014 (UTC)
Thanks for that. It looks much better now. Mitch Ames (talk) 09:39, 24 May 2014 (UTC)

I was able to use a parser function (ifeq:) to return the "country" link on all pages that are not the "country" pagename. – Paine Ellsworth CLIMAX! 11:10, 20 May 2014 (UTC)

fine with me, but make sure there are no pipe-tricks with this parameter (e.g., |country=United States|USA. Frietjes (talk) 15:45, 20 May 2014 (UTC)
Good thought! Okay, the US article doesn't use this template; it uses {{Largest Metropolitan Areas of the United States}} instead, which does not appear to link to the US article at all. If there are any exceptions with pipes, it should be easy to deal with that. – Paine Ellsworth CLIMAX! 22:55, 20 May 2014 (UTC)
PS. Also, I did something similar at {{Largest Metropolitan Areas of Canada}}. – Paine

Largest cities IN[edit]

Most WP articles are written in formats along the lines of "List of cities in ...". To my mind this is more a specific format less vulnerable subjective interpretations. GregKaye 11:23, 1 March 2015 (UTC)

done. Frietjes (talk) 16:24, 8 March 2015 (UTC)
Frietjes just to clarify, most of the article titles, which are obviously themselves presented at tops of the article pages, are written in the format: "List of cities in ..." Titles of templates for some reason, and which are not themselves displayed, are written in the format, "Template:Largest cities of ..." I have also opened an extensive RM re these titles based at Template talk:Largest cities of Acre#Requested move 1 March 2015 and to my reading your edit is supported within this thread. I still thought that you should be aware of the other discussion. GregKaye 14:16, 11 March 2015 (UTC)
The RM mentioned failed mainly, by my reading, on the basis that the title of the large number of templates did not make a difference to the content actually displayed. The argument for consistent content with the 808 articles with titles beginning with the text List of cities in remains. Similar articles replace "cities" with "towns", "towns and cities", metropolitan areas etc. As far as I have seen all titles use "in". GregKaye 08:11, 21 March 2015 (UTC)

Infobox masquerading as a navbox?[edit]

Instances of this template are typically used as a navbox (in a collapsed state at the end of an article) and less frequently as an infobox (uncollapsed in the body of an article). The purpose of a navbox is to aid navigation between closely related articles, nothing more. This "navbox" includes optional parameter for sources (|stat_ref=), populations (|pop_n=) and for graphics (|img_n=). This extra data extends far beyond a navbox and is more appropriate for an infobox. This template currently has a |class=nav parameter. I propose to modify this template so that it accepts a |class=info(box)/nav(box) parameter that would control whether the template behaves like a navbox (displaying only links) or as an infobox (displaying links + populations + graphics + sources). Since this template is more frequently used as a navbox, I further propose that the default value of |class= be set to navbox. Is there support for this change? Boghog (talk) 12:30, 15 July 2015 (UTC)

I'm in support of these proposed updates to the template. The changes will allow a single template to display the content in better accordance with infobox/navbox guidelines, and avoid removal of valid content. —ADavidB 11:40, 16 July 2015 (UTC)

Template-protected edit request on 25 May 2017[edit]

Largest city is now Nashville, population 684,410. https://en.wikipedia.org/wiki/List_of_largest_cities_and_towns_in_Tennessee_by_population Bsutto04 (talk) 13:56, 25 May 2017 (UTC)

That doesn't require an edit to this template. An IP editor has updated the article. Cabayi (talk) 14:03, 25 May 2017 (UTC)

Template-protected edit request on 9 April 2018[edit]

Suppress the link to the country in the title. It is mainly unnecessary and in cases like the Netherlands, it creates a redirection. Thanks. WhatsUpWorld (talk) 21:07, 9 April 2018 (UTC)

 Done. As this change was not discussed, it is revertible on request — Martin (MSGJ · talk) 13:07, 10 April 2018 (UTC)

Withdrawn nominations for deletion[edit]

For the record, many templates using {{Largest cities}} were nominated for deletion at Wikipedia:Templates for discussion/Log/2018 June 19#Largest cities navboxes, but it was quickly withdrawn. PrimeHunter (talk) 16:08, 19 June 2018 (UTC)

style="width: 100%;"[edit]

Is there any reason to stretch the table to 100%? — Preceding unsigned comment added by 2003:E1:6714:4500:8D08:4C19:CF7E:DF59 (talk) 10:26, 5 December 2020 (UTC)

Template:Largest cities of Jordan[edit]

Greetings and felicitations. Template:Largest cities of Jordan (which uses this template as a base) has a reference in it. The problem is that it is used as a navbar at the bottom of the ten listed articles, causing the reference to appear below it and the other navbars. What do you suggest is the solution for this? Remove the "Largest cities of Jordan" from the ten articles? Something else? —DocWatson42 (talk) 16:05, 19 May 2021 (UTC)

This can be replaced with a navbox such as Template:Cities of the Philippines or Template:Metropolitan cities of China. The current template is a leaderboard/scoreboard.Catchpoke (talk) 18:08, 20 May 2021 (UTC)

Nomination for deletion[edit]

A newly-registered user randomly nominated one of the templates using this one for deletion. Discussion is at Wikipedia:Templates for discussion/Log/2021 May 17#Template:Largest cities of Israel. --Triggerhippie4 (talk) 07:04, 21 May 2021 (UTC)

This is an incorrect description of a sincere TfD nomination. I also note that User:Triggerhippie4 is WP:CANVASsing here against the TfD proposal, on dubious arguments and casting WP:PA's against an editor, postulating Bad Faith without base. Before this post, in the the TfD, Triggerhippie4 was already notified by multiple editors not to throw around PAs. -DePiep (talk) 16:30, 22 May 2021 (UTC)
We might have to go back to this.Catchpoke (talk) 01:25, 23 May 2021 (UTC)
@Catchpoke: The link you provided proves my point about your nomination being useless. The nominator withdrawn within an hour and admitted his mistake, because everybody agreed those templates are staying. --Triggerhippie4 (talk) 06:58, 23 May 2021 (UTC)
This is WP:harassment. The next attack will see you at WP:ani.Catchpoke (talk) 23:56, 23 May 2021 (UTC)

Guiding policy of WP:NAVCOLOR[edit]

In article space, this template is used in numerous city articles but in a recent template discussion, it was determined that there is no policy which states national level templates should be kept.

The policy relevant here is WP:NAVCOLOR and that would mean that this template and templates that implement it would need to be deprecated and deleted.

WP:NAVCOLOR is applicable here because the design is arbitrary and capricious. This is due to the fact that this template gives options to list either 10 or 20 city entries and either 0, 1, 2, 3, or 4 pictures of cities and these options prevent the internal dimensions of the template from staying consistent. Catchpoke (talk) 03:20, 12 June 2021 (UTC)

I fail to see the connection. WP:NAVCOLOR is about the use of non-default colours in navboxes, it has nothing whatsoever to do with whether a navbox should exist or not. --Redrose64 🌹 (talk) 12:47, 12 June 2021 (UTC)
"Navigation templates are not arbitrarily decorative" is the title.
The first bullet states: "There should be justification for a template to deviate from the colors and styles contained in MediaWiki:Common.css and MediaWiki:Vector.css (and the other skin.css pages)". If I interpret this correctly, it means there should be justification for a template to use a different color scheme as indicated by MediaWiki:Common.css and MediaWiki:Vector.css (and the other skin.css pages).
The second bullet states: "There are two basic layouts:": "On the right side of page" or "at the bottom of each article, stacked with other similar templates".
Paraphrasing WikiCleanerMan on my talk page, if they should be kept, they should be converted to navboxes instead of the list format they are currently designed as. --Catchpoke (talk) 16:46, 13 June 2021 (UTC)
Nope. Still not getting it. Template:Largest cities of Israel is built upon {{Largest cities}}. If its colours or photos are a problem, fix them. Don't condemn everything for the fault of one. --Redrose64 🌹 (talk) 21:52, 13 June 2021 (UTC)
Not exactly that, Redrose (but deletion is not based we agree). The problem is wider than just colors or navboxs colors.
As the TfD describes: when a template is a WP:NAVBOX it should be (css-)colored as a navbox, be used as a navbox, and have class="navbox". However, when not a navbox, it shall *not* be defined class="navbox" (e.g., see TfD post PrimeHunter 12:13, 23 May 2021).
The example template {{Largest cities of Israel}} you mention is *not* used as navbox, but is used *in the article body* here and everywhere. Therefor the navbox-class must be changed into class="info" (which also solves the incorrect usage of navbox colors and suggestion). This should be checked & corrected for at least all article instances of this meta {{Largest cities}}.
The different template {{Largest Israeli cities}} is a navbox. I'd advise to rename true navbox templates in this series into having "navbox" in their name. -DePiep (talk) 15:08, 14 June 2021 (UTC)
We should all mind the fact that this isn't about one template but all the templates with the title "Largest Cities of". A vast majority of these are not used and should be since they do serve a purpose, but a change in style must be considered because they certainly aren't navboxes in appearance. --WikiCleanerMan (talk) 19:28, 14 June 2021 (UTC)
Redrose64: Exactly what part of my explaination do you not understand? Does linking to WP:EMBED help? And regardless of colors or pictures, subnational templates are regularly deleted but it was argued that "national" templates are not. For example: {{Largest cities of the United States}} is not used but currently is part of this series of templates at the national level. I've included WP:NAVCOLOR because inclusionists were incorrectly stating that this template is a navigation template; it is not: it is an embedded list.Catchpoke (talk) 00:39, 15 June 2021 (UTC)
It seems that in some articles, this is used as a navbox and in others it is not:
On the left are the lists and on the right are the navboxes. If we remove the lists where a navbox already exists, would that be tolerable?--Catchpoke (talk) 17:02, 21 June 2021 (UTC)
Comment. This doesn't seem very complicated, and I have no idea how the discussion has evolved into this mess. Some thoughts:
  • First of all, these are good when used in the middle of articles about a country (or subnational entity) "X" and maybe "Demographics of X", and not much else. They should not be used as bottom-article navboxes in city articles, for instance, and should be removed on sight if this is done.
  • Relating to the first point, these templates are using (rather, abusing?) the navbox class for presentation purposes, which has clearly been misinterpreted by some editors as green-lighting for use at the bottom of city articles (this should not be done). This has resulted in the present confusion, where editors agree these are good presentations of info when used in the middle of country articles, but bad as city navboxes.
  • Because they are navboxes and not say, wikitables, they are not visible right now on mobile, which is a problem. They are also not good from an accessibility standpoint.
This has nothing to do with NAVCOLOR or anything else. Let's talk about ways to convert these away from navboxes and into something that is accessible and visible on mobile. It is a really appealing and useful presentation of relevant information, but it shouldn't be a navbox. — Goszei (talk) 00:59, 25 June 2021 (UTC)
You say it isn't a navbox, but then you say they are navboxes. You can't fix these templates without removing the pictures so WP:NAVCOLOR does apply. And the code doesn't use wikitables but parameters. But we can agree that where these templates are used as navboxes, they should be removed. Catchpoke (talk) 20:00, 25 June 2021 (UTC)
I am not sure how I am still being misunderstood: take the "largest cities" templates and turn them all into something (like a table) that has absolutely nothing to do with navboxes, neither in implementation nor usage. — Goszei (talk) 20:13, 25 June 2021 (UTC)
There is no consistent format with the way Template:Largest cities and its daughters are being used: Sometimes only 10 cities are used, while most of the time 20 cities are used. I might as well note here that not every country has these templates:
Template:Largest cities and its daughters has no consistent format with regard to the number of photos that are displayed: there may be none, 1, 2, 3, or 4. This isn't appealing, attractive, or useful at all. Catchpoke (talk) 20:24, 25 June 2021 (UTC)
Well both WP:SALs and WP:EMBEDDEDs are lists; whether or not they exist for all countries is another issue. Catchpoke (talk) 19:41, 26 June 2021 (UTC)

Nomination for deletion of templates[edit]

Ambox warning blue.svgTemplates "Largest cities of " has been nominated for deletion. You are invited to comment on the discussion at the entry on the Templates for discussion page. --Triggerhippie4 (talk) 06:58, 2 December 2021 (UTC)