Misplaced Pages

Template talk:Largest cities: 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 16:05, 19 May 2021 editDocWatson42 (talk | contribs)Extended confirmed users, Pending changes reviewers217,145 edits Template:Largest cities of Jordan: new section← Previous edit Latest revision as of 13:45, 5 July 2024 edit undoCewbot (talk | contribs)Bots7,272,420 editsm Maintain {{WPBS}}: 1 WikiProject template. Create {{WPBS}}.Tag: Talk banner shell conversion 
(67 intermediate revisions by 13 users not shown)
Line 1: Line 1:
{{WikiProject banner shell|
{{WPCITIES}}
{{WikiProject Cities}}

}}
== Capitalization == == Capitalization ==
Per ] ("Misplaced Pages 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. ] (]) 06:10, 28 November 2011 (UTC) Per ] ("Misplaced Pages 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. ] (]) 06:10, 28 November 2011 (UTC)
Line 46: Line 47:
:::What Jackmcbarn said. --] (]) 23:36, 3 January 2014 (UTC) :::What Jackmcbarn said. --] (]) 23:36, 3 January 2014 (UTC)
::::No, I think this is a great place for it. — ] (]) 00:20, 4 January 2014 (UTC) ::::No, I think this is a great place for it. — ] (]) 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 ] with all due speed. &ndash;&nbsp;'''''<small>]</small>'''''&nbsp;<sup><font size="1" color="blue">]</font></sup> 00:44, 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 ] with all due speed. &ndash;&nbsp;'''''<small>]</small>'''''&nbsp;<sup>]</sup> 00:44, 4 January 2014 (UTC)
* ] '''Not done:''' requests for changes to the page protection level should be made at ].<!-- Template:EP --> Like {{U|Jackmcbarn|Jack}} & {{U|Redrose64|Rose}} said. ] (]) 00:38, 4 January 2014 (UTC) * ] '''Not done:''' requests for changes to the page protection level should be made at ].<!-- Template:EP --> Like {{U|Jackmcbarn|Jack}} & {{U|Redrose64|Rose}} said. ] (]) 00:38, 4 January 2014 (UTC)


Line 67: Line 68:
: are you asking for the bold to be removed ? if so, seems reasonable, and doesn't require any change to the MediaWiki software :) ] (]) 18:59, 19 May 2014 (UTC) : are you asking for the bold to be removed ? if so, seems reasonable, and doesn't require any change to the MediaWiki software :) ] (]) 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? &mdash;&nbsp;Martin <small>(]&nbsp;·&nbsp;])</small> 19:05, 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? &mdash;&nbsp;Martin <small>(]&nbsp;·&nbsp;])</small> 19:05, 19 May 2014 (UTC)
:{{done}} – names of cities are no longer in bold format &ndash;&nbsp;''''']'''''&nbsp;<sup><font size="1" color="blue">]</font></sup> 04:28, 20 May 2014 (UTC) :{{done}} – names of cities are no longer in bold format &ndash;&nbsp;''''']'''''&nbsp;<sup>]</sup> 04:28, 20 May 2014 (UTC)
:'''PS.''' The country (or state) will no longer be excessively bold. Clear your browser's cache. <small>PS left by &ndash;&nbsp;''''']'''''&nbsp;<sup><font size="1" color="blue">]</font></sup> 10:52, 20 May 2014 (UTC)</small> :'''PS.''' The country (or state) will no longer be excessively bold. Clear your browser's cache. <small>PS left by &ndash;&nbsp;''''']'''''&nbsp;<sup>]</sup> 10:52, 20 May 2014 (UTC)</small>
:Does anyone know the rationale behind the {{code|]}} 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. &ndash;&nbsp;''''']'''''&nbsp;<sup><font size="1" color="blue">]</font></sup> 05:56, 20 May 2014 (UTC) :Does anyone know the rationale behind the {{code|]}} 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. &ndash;&nbsp;''''']'''''&nbsp;<sup>]</sup> 05:56, 20 May 2014 (UTC)
::Thanks for that. It looks much better now. ] (]) 09:39, 24 May 2014 (UTC) ::Thanks for that. It looks much better now. ] (]) 09:39, 24 May 2014 (UTC)
{{od}} {{od}}
I was able to use a parser function (ifeq:) to return the "country" link on all pages that are not the "country" pagename. &ndash;&nbsp;''''']'''''&nbsp;<sup><font size="1" color="blue">]</font></sup> 11:10, 20 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. &ndash;&nbsp;''''']'''''&nbsp;<sup>]</sup> 11:10, 20 May 2014 (UTC)
: fine with me, but make sure there are no pipe-tricks with this parameter (e.g., {{para|country|United States{{!}}USA}}. ] (]) 15:45, 20 May 2014 (UTC) : fine with me, but make sure there are no pipe-tricks with this parameter (e.g., {{para|country|United States{{!}}USA}}. ] (]) 15:45, 20 May 2014 (UTC)
:: Good thought! Okay, the ] article doesn't use this template; it uses {{tl|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. &ndash;&nbsp;''''']'''''&nbsp;<sup><font size="1" color="blue">]</font></sup> 22:55, 20 May 2014 (UTC) :: Good thought! Okay, the ] article doesn't use this template; it uses {{tl|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. &ndash;&nbsp;''''']'''''&nbsp;<sup>]</sup> 22:55, 20 May 2014 (UTC)
::'''PS.''' Also, I did something similar at {{tl|Largest Metropolitan Areas of Canada}}. &ndash;&nbsp;''''']'''''<!-- template:pell --> ::'''PS.''' Also, I did something similar at {{tl|Largest Metropolitan Areas of Canada}}. &ndash;&nbsp;''''']'''''<!-- template:pell -->


Line 111: Line 112:


Greetings and felicitations. ] (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? —] (]) 16:05, 19 May 2021 (UTC) Greetings and felicitations. ] (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? —] (]) 16:05, 19 May 2021 (UTC)
:This can be replaced with a navbox such as ] or ]. The current template is a leaderboard/scoreboard.] (]) 18:08, 20 May 2021 (UTC)

== Nomination for deletion ==

A newly-registered user randomly nominated one of the templates using this one for deletion. Discussion is at ]. --] (]) 07:04, 21 May 2021 (UTC)
:This is an incorrect description of a sincere TfD nomination. I also note that ] is ]sing here against the TfD proposal, on dubious arguments and ''casting ]'s against an editor, postulating Bad Faith without base''. Before this post, in the ], Triggerhippie4 was already notified by multiple editors not to throw around PAs. -] (]) 16:30, 22 May 2021 (UTC)
::We might have to go back to ].] (]) 01:25, 23 May 2021 (UTC)
:::{{re|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. --] (]) 06:58, 23 May 2021 (UTC)
::::This is ]. The next attack will see you at ].] (]) 23:56, 23 May 2021 (UTC)

== Guiding policy of ] ==

<!-- ] 04:01, 17 July 2021 (UTC) -->{{User:ClueBot III/DoNotArchiveUntil|1626494480}}
{{anchor|rfc_FC1A4A5}}<!-- ] 13:01, 17 July 2021 (UTC) -->{{User:ClueBot III/DoNotArchiveUntil|1626526881}}

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

The policy relevant here is ] and that would mean that this template and would need to be deprecated and deleted.

] 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. ] (]) 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. --] &#x1f339; (]) 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 {{u|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. --] (]) 16:46, 13 June 2021 (UTC)
:::Nope. Still not getting it. ] is built upon {{tlx|Largest cities}}. If its colours or photos are a problem, fix them. Don't condemn everything for the fault of one. --] &#x1f339; (]) 21:52, 13 June 2021 (UTC)
:::::Not exactly that, {{U|Redrose}} (but deletion is not based we agree). The problem is wider than just colors or navboxs colors.
:::::As the ] describes: when a template is a ] it should be (css-)colored as a navbox, be ''used'' as a navbox, and have <code>class="navbox"</code>. However, when ''not'' a navbox, it shall *not* be defined <code>class="<s>navbox</s>"</code> (e.g., see TfD post PrimeHunter 12:13, 23 May 2021).
:::::The example template {{tl|Largest cities of Israel}} you mention is *not* used as navbox, but is used *in the article body* ] and . Therefor the navbox-class must be changed into <code>class="info"</code> (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 {{tl|Largest cities}}.
:::::The different template {{tl|Largest Israeli cities}} ''is'' a navbox. I'd advise to rename true navbox templates in this series into having "navbox" in their name. -] (]) 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. --] (]) 19:28, 14 June 2021 (UTC)
:::::::{{U|Redrose64}}: Exactly what part of my explaination do you not understand? Does linking to ] help? And regardless of colors or pictures, subnational templates are regularly deleted but it was argued that "national" templates are not. For example: {{tl|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 ] because inclusionists were incorrectly stating that this template is a navigation template; it is not: it is an embedded list.] (]) 00:39, 15 June 2021 (UTC)
::::::::It seems that in some articles, this is used as a navbox and in others it is not:
::::::::{| class="wikitable collapsible collapsed" style="width:100%;"
|-
! colspan=2 | List of 'Largest cities ...' templates
|-
! Article !! Navbox
|-
| {{tl|Largest cities of Australia}} || {{tl|Cities of Australia}}
|-
| {{tl|Largest cities of Bangladesh}} || {{tl|Bangladesh cities}}
|-
| {{tl|Largest cities of Chile}} || {{tl|Large cities of Chile}}
|-
| {{tl|Largest cities of Denmark}} || {{tl|30 most populous cities of Denmark}}
|-
| {{tl|Largest cities of Egypt}} || {{tl|Egyptian cities}}
|-
| {{tl|Largest cities or towns of Ethiopia}} || {{tl|Cities of Ethiopia}}
|-
| {{tl|Largest cities of France}} || {{tl|Cities in France}}
|-
| {{tl|Largest cities of Georgia (country)}} || {{tl|Cities and towns in Georgia (country)}}
|-
| {{tl|Largest cities of Germany}} || {{tl|Cities in Germany}}
|-
| {{tl|Largest cities of Hungary}} || {{tl|Principal cities of Hungary}}
|-
| {{tl|Largest cities of Indonesia}} || {{tl|Most populous cities in Indonesia}}
|-
| {{tl|Largest cities of Italy}} || {{tl|Cities in Italy}}
|-
| {{tl|Largest cities of Japan}} || {{tl|Most populous cities in Japan}}
|-
| {{tl|Largest cities of Myanmar}} || {{tl|Most populous cities in Myanmar}}
|-
| {{tl|Largest cities of Pakistan}} || {{tl|Pakistani cities}}
|-
| {{tl|Largest cities of Peru}} || {{tl|Large cities of Peru}}
|-
| {{tl|Largest cities of the Philippines}} || {{tl|Cities of the Philippines}}
|-
| {{tl|Largest cities of Poland}} || {{tl|Principal cities of Poland}}
|-
| {{tl|Largest cities of Saudi Arabia}} || {{tl|Saudi cities}}
|-
| {{tl|Largest cities of South Korea}} || {{tl|Most populous cities in South Korea}}
|-
| {{tl|Largest cities of Spain}} || {{tl|Cities in Spain}}
|-
| {{tl|Largest cities of Switzerland}} || {{tl|Cities in Switzerland}}
|-
| {{tl|Largest cities of Thailand}} || {{tl|Most populous cities in Thailand}}
|-
| {{tl|Largest cities of Ukraine}} || {{tl|Cities in Ukraine}}
|-
| {{tl|Largest cities of the United Arab Emirates}} || {{tl|UAE cities}}
|-
| {{tl|Largest Urban Areas of the United Kingdom}} || {{tl|UK cities}}
|-
| {{tl|Largest cities of Vietnam}} || {{tl|Most populous cities in Vietnam}}
|}
::::::::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?--] (]) 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 <u>in the middle of</u> 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. — ] (]) 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 ] 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. ] (]) 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. — ] (]) 20:13, 25 June 2021 (UTC)
::::There is no consistent format with the way ] 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:
{{World topic|Template:Largest cities of|title=Largest cities in the world templates}}
::::] 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. ] (]) 20:24, 25 June 2021 (UTC)
:::::Well both ]s and ]s are lists; whether or not they exist for all countries is another issue. ] (]) 19:41, 26 June 2021 (UTC)

== Nomination for deletion of templates ==

]Templates "Largest cities of " has been ]. You are invited to comment on the discussion at ]. --] (]) 06:58, 2 December 2021 (UTC)

== Better if statements needed? ==

I found ] in an article, and it is displaying template code to readers. It looks like we need better if statements. – ] (]) 16:27, 27 May 2022 (UTC)

== Images in Vector 2022 layout ==

As Vector 2022 layout has become Misplaced Pages's default theme, the images in this template (like ]) have been causing image overflow on top of text or the right sidebar in smaller laptops with screens like 1280x800 px. Can the template be modified to hide the images for narrower screens (or just disable adding images altogether )? ] (]) 14:36, 23 April 2023 (UTC)

== Option for not full width ==

To allow the template to be used to display a decent table ''within'' the body of an article, there needs to be an option for {{param|class}} which does not set {{code|margin-left: auto;}} or {{code|width: 100%;}} — ] <sup>]</sup> 13:40, 7 May 2024 (UTC)

== Municipal Pop. ==

Sorry, could a ] undo by {{u|Beland}} from last month? I just noticed the change, and I think it potentially makes the template misleading. I use this to rank U.S. Census designated ]s on ], which are specifically not always individual "municipalities", and I'm sure that is not the only article to use this template to rank a broader definition of "cities" than one which ends at some municipal line. The rationale given was "avoid confusion between population of cities and population of counties", but there is already a ] wrapper for ]. Better to just keep this one as general as possible with simply "Pop." Thanks -- ], ] 17:15, 24 June 2024 (UTC)

:Hmm, the problem is when a higher-level administrative division is included, e.g. counties as it's used on ], it's unclear whether the population listed is for the municipality or the county. Maybe it would be appropriate to use a template other than "Largest cities" for tables that don't actually list the largest cities and towns? ]? Or if there's an override for the column header in question, that would also work. -- ] (]) 19:37, 24 June 2024 (UTC)
::Personally, I don't find it particularly unclear, the population listed there refers to the city because it's a table topped with the bold text "Largest cities or towns". So I'm not sure why the default here should to be changed from "Pop.", and even if it should change, why choose to add "Municipal", an adjective that restricts the flexibility. Wiktionary defines "{{linktext|municipality}}" as "a district with a government that typically encloses no other governed districts." To me, it is a term synonymous with "city proper". Of the thousand articles that transclude this template, what percent limit their numbers to the city proper? Paris's municipal population is 2.1{{nbsp}}million but the metro population is six times that, and it's the bigger number that is used on the table at ]. We could call the column "City pop.", but again, that just seems unnecessary to me in a table that is made for listing cities.
::And yes, could we go through and switch the template on ] to use ] (which currently is ]), and then do that for any articles that use ] for any urban area that isn't a defined municipality? I guess? Though why wouldn't we go the other way and use the existing ] for any that did limit their definition of city? And if there was to be yet another wrapper template created, maybe the new one would be the more specific template, with the words "Municipal pop.", and this root template would stay more generalized, with just "Pop." But yes, an override for the column header would work too! That would look ]. -- ], ] 22:26, 24 June 2024 (UTC)
:::Sure, some people will be able to figure out the ambiguous labels and others will be confused.
:::There are certainly municipalities that contain other municipalities. For example, as ] explains, NYC spans five separately administered counties, and some cities and towns contain incorporated villages, which sometimes cross town borders. ] are not considered municipalties when they are an intermediate level between county and city.
:::"City proper" sounds ambiguous to me. It could mean the incorporated city at the center of a metropolitan area, e.g. the City of Boston in the Boston metropolitan area. But we also use phrases like "Boston proper" to mean "the parts of Boston not including outlying neighborhood and formerly independent cities like Dorchester and Brighton" - that is to say, the downtown business district, which is not incorporated as a governing entity.
:::In the United States, it looks like the population fields in our infoboxes use "City" to refer to the core incorporated municipality, "Urban" to refer to the ], and "Metro" to refer to the ]. I would avoid using the term "city" to refer to metropolitan areas, which is why using the template "largest cities" for metro areas is unexpected, and why it's logical to treat cities as a subset of incorporated municipalities. -- ] (]) 03:26, 25 June 2024 (UTC)
::::It looks like this template already has conditions for ranking metro areas; perhaps they are simply not being triggered by the usage in ]? It's also possible the metro branch doesn't use a different header for the population column and metro areas are now showing up as "Municipal pop."? This template is probably too complicated and I think could benefit from splitting up. -- ] (]) 03:54, 25 June 2024 (UTC)
:::::If you find the template too complicated, maybe don't be messing with it? Yes, there is a "metro" flag here that users can turn on, it creates an additional column with the heading "Metro." and then users can add a second population figure with "metro_1=", "metro_2=", and on. ] added that when {{oldid|Template:Largest cities|1054916872|they merged in}} a fork that only ] was using. It doesn't replace the "Municipal pop." column, and as far as I can tell, Sweden and its subarticles are still the only ones that use it. And yes, could the table at ] be changed to include two population figures? Probably. I'm just not sure this template should be forcing that decision onto the editors of every article it's transcluded on. If the editors on ] want to define "city" as "metro area" on their table, then who are you to say "no, that's wrong, you can't use this template that way"? The significant portion of my own family who hail from Boston certainly feel that their fair city is the nexus by which all other human settlement should be graded and measured, but I just really feel we should keep an open mind and leave the default here as simply "Pop."
:::::Also, while we're at it, I can tell you that despite the "missed a couple" edit, you didn't actually change that heading for all situations. There is a scenario by which we get one column named "Municipal pop." and one named "Pop." It happens on lists of more than ten when both the "name" and "list_by_pop" field are used, but then the latter is left blank to be its default. See this in action on ], ], ], ], or ]. So those tables, like the one ], are currently displaying confusing information because of the edits you made here. These are not minor articles, all have over 10,000 daily readers. But I could be wrong, and I'd love some additional opinions on this. I'll post to ] to see if any experts there want to weigh in. Thanks -- ], ] 14:33, 25 June 2024 (UTC)
::::::I've reverted the column headers to "Pop." since there are articles currently using it for metro area populations.
::::::I have a degree in computer science from MIT; if ''I'' find the template too complicated, then the number of editors who are going to be able to use it without making mistakes - much less improve its workings - is vanishingly small, and that creates a long-term problem. When software engineers find code too complex to be intuitively obvious, the best practice to avoid bugs is to refactor the API or implementation if possible.
::::::In this case, the documentation didn't even mention the metro options. (I just added a note.) Those parameters are also confusingly named; I would expect to use either city_1 or metro_1, but actually those are for the population, so metro_pop_1 would probably be better. The column header "Metro." is also a little unclear; I would kind of prefer something like "Metro pop." "Population" would also be better than "Pop." for readers with English as a second language, if there's room. It's weird and confusing that some articles use the metro_X fields for metro populations, and other articles use the pop_X fields for metro populations.
::::::I'm happy to use this same layout flexibly for both municipalities and metro areas; we just need to enable more differences for the two use cases and possibly local vocabulary differences across global jurisdictions. We could do that and reduce the branching in this template at the same time by refactoring it so there's just a layout template that takes the display strings and link types as parameters, and then two or three wrapper templates that set defaults for common cases. The layout template should have a single point of truth for column header names, so it's not possible to have the same data under one name on the left and an accidentally different name on the right.
::::::While I'm catalogging problems, the fact that the column headers are centered and cell values are left-aligned or right-aligned is visually unattractive. This is not the case for the Rank column, because there's a color box that gives the header something to be centered above. In cases like ], it just looks like the chunks of text are aligned to nothing in particular, which is why it feels messy. -- ] (]) 16:23, 25 June 2024 (UTC)
:::::::Thank you thank you! 100% agree the ugly misaligned column headers should be fixed. And that "metro" needs to be added to the documentation here, and that "Population" is better than "Pop." (when space allows). This template certainly is horribly overdue for a mobile-friendly re-write. I will reiterate though that I am not as confused that some articles use pop_X for metro populations because the tables typically identify in their overall heading what they're listing. Look at ], where this template is used twice, once with "Largest cities or towns" and once with "Largest metropolitan areas". And I think that's fine.
:::::::Lastly, I wanted to note that, if it is confusing to have "City", "Region", "Pop." in that order, the ] does it "Metro.", "Pop.", "Principal city", with the population figure in the middle. So perhaps putting the population figure next to the place it is for, as in "City", "Pop.", "Region", would be an alternative solution to the instigating issue. Thoughts? -- ], ] 17:33, 25 June 2024 (UTC)
::::::::Certainly having e.g. county name next to the city population makes it feel more like the number is a county population. But swapping the order would put the e.g. county name next to the rank number, which would make it feel more like the counties are what's being ranked. With ], it's unclear from the column headers which entity the number belongs to; the table title kind of implies the answer, but it's not until you read the fine print under the table title that it's firmly established.
::::::::I think the best solution would actually be to just drop secondary entity columns. In many cases they don't seem all that important (e.g. counties in US states) and sometimes they are highly redundant (e.g. on ], the principal settlement almost always has the same name as the metro area). -- ] (]) 20:45, 25 June 2024 (UTC)
:::::::::Sorry, just to clarify, that last suggestion was to move the administrative division (i.e. region) column to the right of the population column, so the order would be rank, city name, population, region. I was just using the UK template to say that different column orders exist. The region field is certainly used by many, if not most, of the country articles that use this template, so I would be hesitant to remove something that many editors found a use for. -- ], ] 21:01, 25 June 2024 (UTC)
::::::::::That order then also makes it look like the population could belong either to the city or the region.
::::::::::Dropping the region column also makes things more compact and mobile-friendly, and if the information isn't important for a given context, the fact that someone has previously put it in isn't that great of an argument for keeping it. Maybe they are just using the field because it's there, not because they had good reasons or strong feelings. But we can certainly chat with Wikiproject and page editors to see if they have strong reasons for wanting these columns. It's also possible they are desirable in some geographic contexts but not others. Like here in Massachusetts, I think most people don't even know what county they live in, because almost all counties have been disincorporated, and the boundaries just generally aren't used for all that much.
::::::::::If we absolutely did need region columns, maybe we can clarify with color - that is, put the population and the city it's quantifying in the same color, and the region in a different color (like white vs. light grey). Putting the province in the linked city name (like ]) could also clarify. -- ] (]) 21:22, 25 June 2024 (UTC)

Latest revision as of 13:45, 5 July 2024

This template does not require a rating on Misplaced Pages's content assessment scale.
It is of interest to the following WikiProjects:
WikiProject iconCities
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 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.CitiesWikipedia:WikiProject CitiesTemplate:WikiProject CitiesWikiProject Cities

Capitalization

Per Misplaced Pages:Manual of Style/Capital letters ("Misplaced Pages 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. 71.197.244.119 (talk) 06:10, 28 November 2011 (UTC)

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

No div needed

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

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

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

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

City 4, but not City 3

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.
99.237.143.219 (talk) 07:48, 29 June 2013 (UTC)

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

The "Pop." column heading

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.
99.237.143.219 (talk) 14:47, 29 June 2013 (UTC)

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

Template-protected edit request on 30 December 2013

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

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 Misplaced Pages: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  00:44, 4 January 2014 (UTC)

Remove whitespace

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

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

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

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)

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}} 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  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  10:52, 20 May 2014 (UTC)
Does anyone know the rationale behind the ] 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  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  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  22:55, 20 May 2014 (UTC)
PS. Also, I did something similar at {{Largest Metropolitan Areas of Canada}}. – Paine

Largest cities IN

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?

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

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

Largest city is now Nashville, population 684,410. https://en.wikipedia.org/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

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

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

For the record, many templates using {{Largest cities}} were nominated for deletion at Misplaced Pages: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%;"

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

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

A newly-registered user randomly nominated one of the templates using this one for deletion. Discussion is at Misplaced Pages: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

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:
List of 'Largest cities ...' templates
Article Navbox
{{Largest cities of Australia}} {{Cities of Australia}}
{{Largest cities of Bangladesh}} {{Bangladesh cities}}
{{Largest cities of Chile}} {{Large cities of Chile}}
{{Largest cities of Denmark}} {{30 most populous cities of Denmark}}
{{Largest cities of Egypt}} {{Egyptian cities}}
{{Largest cities or towns of Ethiopia}} {{Cities of Ethiopia}}
{{Largest cities of France}} {{Cities in France}}
{{Largest cities of Georgia (country)}} {{Cities and towns in Georgia (country)}}
{{Largest cities of Germany}} {{Cities in Germany}}
{{Largest cities of Hungary}} {{Principal cities of Hungary}}
{{Largest cities of Indonesia}} {{Most populous cities in Indonesia}}
{{Largest cities of Italy}} {{Cities in Italy}}
{{Largest cities of Japan}} {{Most populous cities in Japan}}
{{Largest cities of Myanmar}} {{Most populous cities in Myanmar}}
{{Largest cities of Pakistan}} {{Pakistani cities}}
{{Largest cities of Peru}} {{Large cities of Peru}}
{{Largest cities of the Philippines}} {{Cities of the Philippines}}
{{Largest cities of Poland}} {{Principal cities of Poland}}
{{Largest cities of Saudi Arabia}} {{Saudi cities}}
{{Largest cities of South Korea}} {{Most populous cities in South Korea}}
{{Largest cities of Spain}} {{Cities in Spain}}
{{Largest cities of Switzerland}} {{Cities in Switzerland}}
{{Largest cities of Thailand}} {{Most populous cities in Thailand}}
{{Largest cities of Ukraine}} {{Cities in Ukraine}}
{{Largest cities of the United Arab Emirates}} {{UAE cities}}
{{Largest Urban Areas of the United Kingdom}} {{UK cities}}
{{Largest cities of Vietnam}} {{Most populous cities in Vietnam}}
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:
Largest cities in the world templates
  • Afghanistan
  • Albania
  • Algeria
  • Andorra
  • Angola
  • Antigua and Barbuda
  • Argentina
  • Armenia
  • Australia
  • Austria
  • Azerbaijan
  • Bahamas
  • Bahrain
  • Bangladesh
  • Barbados
  • Belarus
  • Belgium
  • Belize
  • Benin
  • Bhutan
  • Bolivia
  • Bosnia and Herzegovina
  • Botswana
  • Brazil
  • Brunei
  • Bulgaria
  • Burkina Faso
  • Burundi
  • Cambodia
  • Cameroon
  • Canada
  • Cape Verde
  • Central African Republic
  • Chad
  • Chile
  • China
  • Colombia
  • Comoros
  • Costa Rica
  • Croatia
  • Cuba
  • Cyprus
  • Czech Republic
  • Democratic Republic of the Congo
  • Denmark
  • Djibouti
  • Dominica
  • Dominican Republic
  • East Timor
  • Ecuador
  • Egypt
  • El Salvador
  • Equatorial Guinea
  • Eritrea
  • Estonia
  • Eswatini
  • Ethiopia
  • Federated States of Micronesia
  • Fiji
  • Finland
  • France
  • Gabon
  • Gambia
  • Georgia
  • Germany
  • Ghana
  • Greece
  • Grenada
  • Guatemala
  • Guinea
  • Guinea-Bissau
  • Guyana
  • Haiti
  • Honduras
  • Hungary
  • Iceland
  • India
  • Indonesia
  • Iran
  • Iraq
  • Ireland
  • Israel
  • Italy
  • Ivory Coast
  • Jamaica
  • Japan
  • Jordan
  • Kazakhstan
  • Kenya
  • Kiribati
  • Kosovo
  • Kuwait
  • Kyrgyzstan
  • Laos
  • Latvia
  • Lebanon
  • Lesotho
  • Liberia
  • Libya
  • Liechtenstein
  • Lithuania
  • Luxembourg
  • Madagascar
  • Malawi
  • Malaysia
  • Maldives
  • Mali
  • Malta
  • Marshall Islands
  • Mauritania
  • Mauritius
  • Mexico
  • Moldova
  • Monaco
  • Mongolia
  • Montenegro
  • Morocco
  • Mozambique
  • Myanmar
  • Namibia
  • Nauru
  • Nepal
  • Netherlands
  • New Zealand
  • Nicaragua
  • Niger
  • Nigeria
  • North Korea
  • North Macedonia
  • Norway
  • Oman
  • Pakistan
  • Palau
  • Palestine
  • Panama
  • Papua New Guinea
  • Paraguay
  • Peru
  • Philippines
  • Poland
  • Portugal
  • Qatar
  • Republic of the Congo
  • Romania
  • Russia
  • Rwanda
  • Saint Kitts and Nevis
  • Saint Lucia
  • Saint Vincent and the Grenadines
  • Samoa
  • San Marino
  • Saudi Arabia
  • Senegal
  • Serbia
  • Seychelles
  • Sierra Leone
  • Singapore
  • Slovakia
  • Slovenia
  • Solomon Islands
  • Somalia
  • South Africa
  • South Korea
  • South Sudan
  • Spain
  • Sri Lanka
  • Sudan
  • Suriname
  • Sweden
  • Switzerland
  • Syria
  • São Tomé and Príncipe
  • Taiwan
  • Tajikistan
  • Tanzania
  • Thailand
  • Togo
  • Tonga
  • Trinidad and Tobago
  • Tunisia
  • Turkey
  • Turkmenistan
  • Tuvalu
  • Uganda
  • Ukraine
  • United Arab Emirates
  • United Kingdom
  • United States
  • Uruguay
  • Uzbekistan
  • Vanuatu
  • Vatican City
  • Venezuela
  • Vietnam
  • Western Sahara
  • Yemen
  • Zambia
  • Zimbabwe
  • 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

    Templates "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)

    Better if statements needed?

    I found this test case in an article, and it is displaying template code to readers. It looks like we need better if statements. – Jonesey95 (talk) 16:27, 27 May 2022 (UTC)

    Images in Vector 2022 layout

    As Vector 2022 layout has become Misplaced Pages's default theme, the images in this template (like Template:Largest cities of the Philippines) have been causing image overflow on top of text or the right sidebar in smaller laptops with screens like 1280x800 px. Can the template be modified to hide the images for narrower screens (or just disable adding images altogether )? Sanglahi86 (talk) 14:36, 23 April 2023 (UTC)

    Option for not full width

    To allow the template to be used to display a decent table within the body of an article, there needs to be an option for {{{class}}} which does not set margin-left: auto; or width: 100%;GhostInTheMachine 13:40, 7 May 2024 (UTC)

    Municipal Pop.

    Sorry, could a WP:TED undo those edits by Beland from last month? I just noticed the change, and I think it potentially makes the template misleading. I use this to rank U.S. Census designated metropolitan statistical areas on Virginia, which are specifically not always individual "municipalities", and I'm sure that is not the only article to use this template to rank a broader definition of "cities" than one which ends at some municipal line. The rationale given was "avoid confusion between population of cities and population of counties", but there is already a Template:Largest municipalities wrapper for Template:Largest cities. Better to just keep this one as general as possible with simply "Pop." Thanks -- Patrick Neil, oѺ/Talk 17:15, 24 June 2024 (UTC)

    Hmm, the problem is when a higher-level administrative division is included, e.g. counties as it's used on Massachusetts#Cities, towns, and counties, it's unclear whether the population listed is for the municipality or the county. Maybe it would be appropriate to use a template other than "Largest cities" for tables that don't actually list the largest cities and towns? Template:Largest population centres? Or if there's an override for the column header in question, that would also work. -- Beland (talk) 19:37, 24 June 2024 (UTC)
    Personally, I don't find it particularly unclear, the population listed there refers to the city because it's a table topped with the bold text "Largest cities or towns". So I'm not sure why the default here should to be changed from "Pop.", and even if it should change, why choose to add "Municipal", an adjective that restricts the flexibility. Wiktionary defines "municipality" as "a district with a government that typically encloses no other governed districts." To me, it is a term synonymous with "city proper". Of the thousand articles that transclude this template, what percent limit their numbers to the city proper? Paris's municipal population is 2.1 million but the metro population is six times that, and it's the bigger number that is used on the table at France#Major cities. We could call the column "City pop.", but again, that just seems unnecessary to me in a table that is made for listing cities.
    And yes, could we go through and switch the template on France to use Template:Largest population centres (which currently is mostly for trans-state entities), and then do that for any articles that use Template:Largest cities for any urban area that isn't a defined municipality? I guess? Though why wouldn't we go the other way and use the existing Template:Largest municipalities for any that did limit their definition of city? And if there was to be yet another wrapper template created, maybe the new one would be the more specific template, with the words "Municipal pop.", and this root template would stay more generalized, with just "Pop." But yes, an override for the column header would work too! That would look something like this. -- Patrick Neil, oѺ/Talk 22:26, 24 June 2024 (UTC)
    Sure, some people will be able to figure out the ambiguous labels and others will be confused.
    There are certainly municipalities that contain other municipalities. For example, as List of municipalities in New York explains, NYC spans five separately administered counties, and some cities and towns contain incorporated villages, which sometimes cross town borders. Civil townships are not considered municipalties when they are an intermediate level between county and city.
    "City proper" sounds ambiguous to me. It could mean the incorporated city at the center of a metropolitan area, e.g. the City of Boston in the Boston metropolitan area. But we also use phrases like "Boston proper" to mean "the parts of Boston not including outlying neighborhood and formerly independent cities like Dorchester and Brighton" - that is to say, the downtown business district, which is not incorporated as a governing entity.
    In the United States, it looks like the population fields in our infoboxes use "City" to refer to the core incorporated municipality, "Urban" to refer to the urban area, and "Metro" to refer to the metropolitan area. I would avoid using the term "city" to refer to metropolitan areas, which is why using the template "largest cities" for metro areas is unexpected, and why it's logical to treat cities as a subset of incorporated municipalities. -- Beland (talk) 03:26, 25 June 2024 (UTC)
    It looks like this template already has conditions for ranking metro areas; perhaps they are simply not being triggered by the usage in Virginia? It's also possible the metro branch doesn't use a different header for the population column and metro areas are now showing up as "Municipal pop."? This template is probably too complicated and I think could benefit from splitting up. -- Beland (talk) 03:54, 25 June 2024 (UTC)
    If you find the template too complicated, maybe don't be messing with it? Yes, there is a "metro" flag here that users can turn on, it creates an additional column with the heading "Metro." and then users can add a second population figure with "metro_1=", "metro_2=", and on. User:Frietjes added that when they merged in a fork that only Sweden was using. It doesn't replace the "Municipal pop." column, and as far as I can tell, Sweden and its subarticles are still the only ones that use it. And yes, could the table at France#Major cities be changed to include two population figures? Probably. I'm just not sure this template should be forcing that decision onto the editors of every article it's transcluded on. If the editors on France want to define "city" as "metro area" on their table, then who are you to say "no, that's wrong, you can't use this template that way"? The significant portion of my own family who hail from Boston certainly feel that their fair city is the nexus by which all other human settlement should be graded and measured, but I just really feel we should keep an open mind and leave the default here as simply "Pop."
    Also, while we're at it, I can tell you that despite the "missed a couple" edit, you didn't actually change that heading for all situations. There is a scenario by which we get one column named "Municipal pop." and one named "Pop." It happens on lists of more than ten when both the "name" and "list_by_pop" field are used, but then the latter is left blank to be its default. See this in action on China, Italy, Brazil, Japan, or California. So those tables, like the one France, are currently displaying confusing information because of the edits you made here. These are not minor articles, all have over 10,000 daily readers. But I could be wrong, and I'd love some additional opinions on this. I'll post to WP:CITIES to see if any experts there want to weigh in. Thanks -- Patrick Neil, oѺ/Talk 14:33, 25 June 2024 (UTC)
    I've reverted the column headers to "Pop." since there are articles currently using it for metro area populations.
    I have a degree in computer science from MIT; if I find the template too complicated, then the number of editors who are going to be able to use it without making mistakes - much less improve its workings - is vanishingly small, and that creates a long-term problem. When software engineers find code too complex to be intuitively obvious, the best practice to avoid bugs is to refactor the API or implementation if possible.
    In this case, the documentation didn't even mention the metro options. (I just added a note.) Those parameters are also confusingly named; I would expect to use either city_1 or metro_1, but actually those are for the population, so metro_pop_1 would probably be better. The column header "Metro." is also a little unclear; I would kind of prefer something like "Metro pop." "Population" would also be better than "Pop." for readers with English as a second language, if there's room. It's weird and confusing that some articles use the metro_X fields for metro populations, and other articles use the pop_X fields for metro populations.
    I'm happy to use this same layout flexibly for both municipalities and metro areas; we just need to enable more differences for the two use cases and possibly local vocabulary differences across global jurisdictions. We could do that and reduce the branching in this template at the same time by refactoring it so there's just a layout template that takes the display strings and link types as parameters, and then two or three wrapper templates that set defaults for common cases. The layout template should have a single point of truth for column header names, so it's not possible to have the same data under one name on the left and an accidentally different name on the right.
    While I'm catalogging problems, the fact that the column headers are centered and cell values are left-aligned or right-aligned is visually unattractive. This is not the case for the Rank column, because there's a color box that gives the header something to be centered above. In cases like Template:Largest cities of Maryland, it just looks like the chunks of text are aligned to nothing in particular, which is why it feels messy. -- Beland (talk) 16:23, 25 June 2024 (UTC)
    Thank you thank you! 100% agree the ugly misaligned column headers should be fixed. And that "metro" needs to be added to the documentation here, and that "Population" is better than "Pop." (when space allows). This template certainly is horribly overdue for a mobile-friendly re-write. I will reiterate though that I am not as confused that some articles use pop_X for metro populations because the tables typically identify in their overall heading what they're listing. Look at Demographics of Canada#Cities, where this template is used twice, once with "Largest cities or towns" and once with "Largest metropolitan areas". And I think that's fine.
    Lastly, I wanted to note that, if it is confusing to have "City", "Region", "Pop." in that order, the UK specific template Largest Urban areas does it "Metro.", "Pop.", "Principal city", with the population figure in the middle. So perhaps putting the population figure next to the place it is for, as in "City", "Pop.", "Region", would be an alternative solution to the instigating issue. Thoughts? -- Patrick Neil, oѺ/Talk 17:33, 25 June 2024 (UTC)
    Certainly having e.g. county name next to the city population makes it feel more like the number is a county population. But swapping the order would put the e.g. county name next to the rank number, which would make it feel more like the counties are what's being ranked. With Template:Largest Urban areas, it's unclear from the column headers which entity the number belongs to; the table title kind of implies the answer, but it's not until you read the fine print under the table title that it's firmly established.
    I think the best solution would actually be to just drop secondary entity columns. In many cases they don't seem all that important (e.g. counties in US states) and sometimes they are highly redundant (e.g. on United Kingdom#Demographics, the principal settlement almost always has the same name as the metro area). -- Beland (talk) 20:45, 25 June 2024 (UTC)
    Sorry, just to clarify, that last suggestion was to move the administrative division (i.e. region) column to the right of the population column, so the order would be rank, city name, population, region. I was just using the UK template to say that different column orders exist. The region field is certainly used by many, if not most, of the country articles that use this template, so I would be hesitant to remove something that many editors found a use for. -- Patrick Neil, oѺ/Talk 21:01, 25 June 2024 (UTC)
    That order then also makes it look like the population could belong either to the city or the region.
    Dropping the region column also makes things more compact and mobile-friendly, and if the information isn't important for a given context, the fact that someone has previously put it in isn't that great of an argument for keeping it. Maybe they are just using the field because it's there, not because they had good reasons or strong feelings. But we can certainly chat with Wikiproject and page editors to see if they have strong reasons for wanting these columns. It's also possible they are desirable in some geographic contexts but not others. Like here in Massachusetts, I think most people don't even know what county they live in, because almost all counties have been disincorporated, and the boundaries just generally aren't used for all that much.
    If we absolutely did need region columns, maybe we can clarify with color - that is, put the population and the city it's quantifying in the same color, and the region in a different color (like white vs. light grey). Putting the province in the linked city name (like Boston, Massachusetts) could also clarify. -- Beland (talk) 21:22, 25 June 2024 (UTC)
    Categories: