Misplaced Pages

Template: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 19:54, 13 November 2021 view sourcePlastikspork (talk | contribs)Edit filter managers, Administrators258,851 edits Add Category:Pages using largest cities with class to find sample values for the |class= parameter, since it would be nice to allow only values like |class=nav make this a navbox, also it looks like in many cases we are ignoring that this doesn't appear in mobile?← Previous edit Latest revision as of 15:39, 25 June 2024 view source Beland (talk | contribs)Autopatrolled, Administrators236,626 edits Restored revision 1147944658 by Seddon (talk): Restore "Pop." because some articles use this template for metropolitan areasTags: Twinkle Undo 
(16 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<templatestyles src="Template:Largest_cities/styles.css" />
{{#if:{{{class|}}}

|{{navbox top
{{#switch:{{{class|}}}
| name = {{#if:{{{nonav|}}}||{{{name|{{FULLPAGENAME}}}}}}}
|nav={{navbox top
| name = {{{name|}}}
| navbar = {{#if:{{{nonav|}}}|off|{{#if:{{{name|}}}||off}}}}
| title = {{#if:{{{largest|}}}|{{{largest}}}|Largest}} {{{kind|cities or towns}}} in {{{country}}}<br /><div style="display:inline;font-weight:normal;font-size:90%;">{{#if:{{{stat_ref|}}} | {{{stat_ref|Source?}}} | Source? }}</div> | title = {{#if:{{{largest|}}}|{{{largest}}}|Largest}} {{{kind|cities or towns}}} in {{{country}}}<br /><div style="display:inline;font-weight:normal;font-size:90%;">{{#if:{{{stat_ref|}}} | {{{stat_ref|Source?}}} | Source? }}</div>
| state = {{if empty|{{{collapsed_state|}}}|plain}} | state = {{{collapsed_state|}}}
}} }}
{{(!}} style="width:100%" class="wraplinks" {{(!}} style="width:100%" class="wraplinks"
|<div> |#default=<div>
{{(!}} {{#if:{{{collapsed_state|}}}|class="collapsible {{{collapsed_state}}}"}} style="font-size:88%;margin-left: auto; margin-right: auto; width: 100%; border: 1px solid darkgray; background: #f9f9f9" {{(!}} {{#if:{{{collapsed_state|}}}|class="collapsible {{{collapsed_state}}} largestCities-table-background"}} style="font-size:88%;margin-left: auto; margin-right: auto; width: 100%; border: 1px solid darkgray;"
{{!}}-<!-- TITLE & SOURCE --> {{!}}-<!-- TITLE & SOURCE -->
!colspan="{{#if:{{{metro|}}}|12|10}}" style="padding:0.3em 0.75em;"{{!}} {{#if:{{{collapsed_state|}}}||<div style="float:right; width:6em; height:2.6em">&nbsp;</div>}}{{#if:{{{nonav|}}}||{{navbar|{{{name|{{FULLPAGENAME}}}}}|mini=1|style=float: left;height:2.6em;}}}} <div style="height:2.6em;line-height:1.3em;"><span style="font-size:110%;">{{#if:{{{largest|}}}|{{{largest}}}|Largest}} {{{kind|cities or towns}}} in {{{country}}}</span><br /><div style="display:inline;font-weight:normal;">{{#if:{{{stat_ref|}}} | {{{stat_ref|Source?}}} | Source? }}</div></div> !colspan="{{#if:{{{metro|}}}|12|10}}" style="padding:0.3em 0.75em;"{{!}} {{#if:{{{collapsed_state|}}}||<div style="float:right; width:6em; height:2.6em">&nbsp;</div>}}{{#if:{{{nonav|}}}||{{#if:{{{name|}}}|{{navbar|{{{name|}}}|mini=1|style=float: left;height:2.6em;}}|<div style="float:left; width:6em; height:2.6em">&nbsp;</div>}}}} <div style="height:2.6em;line-height:1.3em;"><span style="font-size:110%;">{{#if:{{{largest|}}}|{{{largest}}}|Largest}} {{{kind|cities or towns}}} in {{{country}}}</span><br /><div style="display:inline;font-weight:normal;">{{#if:{{{stat_ref|}}} | {{{stat_ref|Source?}}} | Source? }}</div></div>
}}<!-- END IF CLASS--> }}<!-- END IF CLASS-->
|- <!-- TABLE HEADINGS --> |- <!-- TABLE HEADINGS -->
Line 31: Line 34:
}} }} }} }}
<!-- LIST OF CITIES, SUBDIVISIONS, POPULATION FIGURES --> <!-- LIST OF CITIES, SUBDIVISIONS, POPULATION FIGURES -->
| style="text-align:center;background:#f0f0f0;" | 1 || style="text-align:left;" | ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} || style="text-align:right;" | {{{pop_1}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_1}}} }} {{#if:{{{city_11|}}} | {{!!}} style="text-align:center;background:#f0f0f0;" {{!}} 11 {{!!}} style="text-align:left;" {{!}} ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} {{!!}} style="text-align:right;" {{!}} {{{pop_11}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_11}}} }} | class="largestCities-cell-background" style="text-align:center;" | 1 || style="text-align:left;" | ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} || style="text-align:right;" | {{{pop_1}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_1}}} }} {{#if:{{{city_11|}}} | {{!!}} class="largestCities-cell-background" style="text-align:center;" {{!}} 11 {{!!}} style="text-align:left;" {{!}} ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} {{!!}} style="text-align:right;" {{!}} {{{pop_11}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_11}}} }}
}} }}
{{#if:{{{img_3|}}}{{{img_4|}}} | <!-- IMAGES 3 & 4 --> {{#if:{{{img_3|}}}{{{img_4|}}} | <!-- IMAGES 3 & 4 -->
Line 39: Line 42:
}} }} }} }}
|- |-
| style="text-align:center;background:#f0f0f0;" | 2 || style="text-align:left;" | ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} || style="text-align:right;" | {{{pop_2}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_2}}} }} {{#if:{{{city_12|}}} | {{!!}} style="text-align:center;background:#f0f0f0;" {{!}} 12 {{!!}} style="text-align:left;" {{!}} ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} {{!!}} style="text-align:right;" {{!}} {{{pop_12}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_12}}} }} | class="largestCities-cell-background" style="text-align:center;" | 2 || style="text-align:left;" | ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} || style="text-align:right;" | {{{pop_2}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_2}}} }} {{#if:{{{city_12|}}} | {{!!}} class="largestCities-cell-background" style="text-align:center;" {{!}} 12 {{!!}} style="text-align:left;" {{!}} ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} {{!!}} style="text-align:right;" {{!}} {{{pop_12}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_12}}} }}
}} }}
|- |-
| style="text-align:center;background:#f0f0f0;" | 3 || style="text-align:left;" | ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} || style="text-align:right;" | {{{pop_3}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_3}}} }} {{#if:{{{city_13|}}} | {{!!}} style="text-align:center;background:#f0f0f0;" {{!}} 13 {{!!}} style="text-align:left;" {{!}} ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} {{!!}} style="text-align:right;" {{!}} {{{pop_13}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_13}}} }} | class="largestCities-cell-background" style="text-align:center;" | 3 || style="text-align:left;" | ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} || style="text-align:right;" | {{{pop_3}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_3}}} }} {{#if:{{{city_13|}}} | {{!!}} class="largestCities-cell-background" style="text-align:center;" {{!}} 13 {{!!}} style="text-align:left;" {{!}} ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} {{!!}} style="text-align:right;" {{!}} {{{pop_13}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_13}}} }}
}} }}
|- |-
| style="text-align:center;background:#f0f0f0;" | 4 || style="text-align:left;" | ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} || style="text-align:right;" | {{{pop_4}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_4}}} }} {{#if:{{{city_14|}}} | {{!!}} style="text-align:center;background:#f0f0f0;" {{!}} 14 {{!!}} style="text-align:left;" {{!}} ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} {{!!}} style="text-align:right;" {{!}} {{{pop_14}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_14}}} }} | class="largestCities-cell-background" style="text-align:center;" | 4 || style="text-align:left;" | ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} || style="text-align:right;" | {{{pop_4}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_4}}} }} {{#if:{{{city_14|}}} | {{!!}} class="largestCities-cell-background" style="text-align:center;" {{!}} 14 {{!!}} style="text-align:left;" {{!}} ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} {{!!}} style="text-align:right;" {{!}} {{{pop_14}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_14}}} }}
}} }}
|- |-
| style="text-align:center;background:#f0f0f0;" | 5 || style="text-align:left;" | ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} || style="text-align:right;" | {{{pop_5}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_5}}} }} {{#if:{{{city_15|}}} | {{!!}} style="text-align:center;background:#f0f0f0;" {{!}} 15 {{!!}} style="text-align:left;" {{!}} ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} {{!!}} style="text-align:right;" {{!}} {{{pop_15}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_15}}} }} | class="largestCities-cell-background" style="text-align:center;" | 5 || style="text-align:left;" | ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} || style="text-align:right;" | {{{pop_5}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_5}}} }} {{#if:{{{city_15|}}} | {{!!}} class="largestCities-cell-background" style="text-align:center;" {{!}} 15 {{!!}} style="text-align:left;" {{!}} ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} {{!!}} style="text-align:right;" {{!}} {{{pop_15}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_15}}} }}
}} }}
|- |-
| style="text-align:center;background:#f0f0f0;" | 6 || style="text-align:left;" | ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} || style="text-align:right;" | {{{pop_6}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_6}}} }} {{#if:{{{city_16|}}} | {{!!}} style="text-align:center;background:#f0f0f0;" {{!}} 16 {{!!}} style="text-align:left;" {{!}} ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} {{!!}} style="text-align:right;" {{!}} {{{pop_16}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_16}}} }} | class="largestCities-cell-background" style="text-align:center;" | 6 || style="text-align:left;" | ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} || style="text-align:right;" | {{{pop_6}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_6}}} }} {{#if:{{{city_16|}}} | {{!!}} class="largestCities-cell-background" style="text-align:center;" {{!}} 16 {{!!}} style="text-align:left;" {{!}} ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} {{!!}} style="text-align:right;" {{!}} {{{pop_16}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_16}}} }}
}} }}
|- |-
| style="text-align:center;background:#f0f0f0;" | 7 || style="text-align:left;" | ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} || style="text-align:right;" | {{{pop_7}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_7}}} }} {{#if:{{{city_17|}}} | {{!!}} style="text-align:center;background:#f0f0f0;" {{!}} 17 {{!!}} style="text-align:left;" {{!}} ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} {{!!}} style="text-align:right;" {{!}} {{{pop_17}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_17}}} }} | class="largestCities-cell-background" style="text-align:center;" | 7 || style="text-align:left;" | ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} || style="text-align:right;" | {{{pop_7}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_7}}} }} {{#if:{{{city_17|}}} | {{!!}} class="largestCities-cell-background" style="text-align:center;" {{!}} 17 {{!!}} style="text-align:left;" {{!}} ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} {{!!}} style="text-align:right;" {{!}} {{{pop_17}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_17}}} }}
}} }}
|- |-
| style="text-align:center;background:#f0f0f0;" | 8 || style="text-align:left;" | ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} || style="text-align:right;" | {{{pop_8}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_8}}} }} {{#if:{{{city_18|}}} | {{!!}} style="text-align:center;background:#f0f0f0;" {{!}} 18 {{!!}} style="text-align:left;" {{!}} ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} {{!!}} style="text-align:right;" {{!}} {{{pop_18}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_18}}} }} | class="largestCities-cell-background" style="text-align:center;" | 8 || style="text-align:left;" | ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} || style="text-align:right;" | {{{pop_8}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_8}}} }} {{#if:{{{city_18|}}} | {{!!}} class="largestCities-cell-background" style="text-align:center;" {{!}} 18 {{!!}} style="text-align:left;" {{!}} ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} {{!!}} style="text-align:right;" {{!}} {{{pop_18}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_18}}} }}
}} }}
|- |-
| style="text-align:center;background:#f0f0f0;" | 9 || style="text-align:left;" | ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} || style="text-align:right;" | {{{pop_9}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_9}}} }} {{#if:{{{city_19|}}} | {{!!}} style="text-align:center;background:#f0f0f0;" {{!}} 19 {{!!}} style="text-align:left;" {{!}} ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} {{!!}} style="text-align:right;" {{!}} {{{pop_19}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_19}}} }} | class="largestCities-cell-background" style="text-align:center;" | 9 || style="text-align:left;" | ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} || style="text-align:right;" | {{{pop_9}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_9}}} }} {{#if:{{{city_19|}}} | {{!!}} class="largestCities-cell-background" style="text-align:center;" {{!}} 19 {{!!}} style="text-align:left;" {{!}} ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} {{!!}} style="text-align:right;" {{!}} {{{pop_19}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_19}}} }}
}} }}
|- |-
| style="text-align:center;background:#f0f0f0;" | 10 || style="text-align:left;" | ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} || style="text-align:right;" | {{{pop_10}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_10}}} }} {{#if:{{{city_20|}}} | {{!!}} style="text-align:center;background:#f0f0f0;" {{!}} 20 {{!!}} style="text-align:left;" {{!}} ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} {{!!}} style="text-align:right;" {{!}} {{{pop_20}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_20}}} }} | class="largestCities-cell-background" style="text-align:center;" | 10 || style="text-align:left;" | ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} || style="text-align:right;" | {{{pop_10}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_10}}} }} {{#if:{{{city_20|}}} | {{!!}} class="largestCities-cell-background" style="text-align:center;" {{!}} 20 {{!!}} style="text-align:left;" {{!}} ] {{#if:{{{div_1|}}}{{{div_2|}}}{{{div_4|}}}{{{div_5|}}}|{{!!}} style="text-align:left;" {{!}} ]}} {{!!}} style="text-align:right;" {{!}} {{{pop_20}}} {{#if:{{{metro|}}}|{{!!}} style="text-align:right" {{!}} {{{metro_20}}} }}
}} }}
|- |-
{{#if:{{{class|}}} {{#switch:{{{class|}}}
|{{!)}} |nav={{!)}}
{{navbox bottom}}
{{navbox bottom}}||plain=false}} ]]
|{{!)}}</div> |#default={{!)}}</div>
}}{{#switch:{{{class|}}}
}}<noinclude>
| =
| nav = ]
| #default = ||plain=false}} ]]
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|]}}|preview=Page using ] with unknown parameter "_VALUE_"|ignoreblank=y| city_1 | city_2 | city_3 | city_4 | city_5 | city_6 | city_7 | city_8 | city_9 | city_10 | city_11 | city_12 | city_13 | city_14 | city_15 | city_16 | city_17 | city_18 | city_19 | city_20 | class | collapsed_state | country | div_1 | div_2 | div_3 | div_4 | div_5 | div_6 | div_7 | div_8 | div_9 | div_10 | div_11 | div_12 | div_13 | div_14 | div_15 | div_16 | div_17 | div_18 | div_19 | div_20 | div_link | div_name | img_1 | img_2 | img_3 | img_4 | kind | largest | list_by_metro | list_by_Metro | list_by_pop | metro | metro_1 | metro_2 | metro_3 | metro_4 | metro_5 | metro_6 | metro_7 | metro_8 | metro_9 | metro_10 | metro_11 | metro_12 | metro_13 | metro_14 | metro_15 | metro_16 | metro_17 | metro_18 | metro_19 | metro_20 | name | name_link | nonav | pop_1 | pop_2 | pop_3 | pop_4 | pop_5 | pop_6 | pop_7 | pop_8 | pop_9 | pop_10 | pop_11 | pop_12 | pop_13 | pop_14 | pop_15 | pop_16 | pop_17 | pop_18 | pop_19 | pop_20 | stat_ref | img_5 }}<noinclude>
{{documentation}} {{documentation}}
</noinclude> </noinclude>

Latest revision as of 15:39, 25 June 2024

   Largest cities or towns in {{{country}}}
Source?
Rank Pop.
1 ] {{{pop_1}}}
2 ] {{{pop_2}}}
3 ] {{{pop_3}}}
4 ] {{{pop_4}}}
5 ] {{{pop_5}}}
6 ] {{{pop_6}}}
7 ] {{{pop_7}}}
8 ] {{{pop_8}}}
9 ] {{{pop_9}}}
10 ] {{{pop_10}}}
Template documentation[view] [edit] [history] [purge]
CSSThis template uses TemplateStyles:
This template contains coding that is not compatible with mobile versions of Misplaced Pages, causing display and accessibility problems. Read the documentation for an explanation.

A template meant to facilitate the creation of a "Largest cities in country X" template. It accommodates either 10 or 20 entries, plus 4 pictures representing the 4 largest cities.

This template is also used with the names of U.S. states in place of "country".

Usage

{{Largest cities
| name        = <!-- name of the template, e.g. Largest cities of Chile -->
| class       = <!-- can be changed to "nav" to hide the table in mobile view and print -->
| country     = <!-- the name of the country, e.g. Chile -->
| kind        = <!-- replace "cities and towns" in the title w/ anything, e.g. "conurbations" -->
| stat_ref    = <!-- source of the pop. figures, e.g. Instituto Nacional de Estadisticas de Chile or use {{URL| }} -->
| list_by_pop = <!-- link to the list of cities in the given country, if possible sorted by population -->
| div_name    = <!-- the name of the main administrative subdivision, e.g. Province, State, Region... -->
| div_link    = <!-- the template will automatically create a link for "div_name of country" (e.g. Provinces of Chile), if this doesn't work you can use this field -->
| city_1      = <!-- a link to the article about the largest city. Use {{!}} as pipe to separate article name and link text if needed. -->
| div_1       = <!-- link to the administrative subdivision where said city is located -->
| pop_1       = <!-- population, do include the commas to separate the thousands -->
| img_1       = <!-- a picture showing an overview of the city -->
| city_2 =  | div_2 =  | pop_2 = | img_2 =
| city_3 =  | div_3 =  | pop_3 = | img_3 = 
| city_4 =  | div_4 =  | pop_4 = | img_4 =
| city_5 =  | div_5 =  | pop_5 = 
| city_6 =  | div_6 =  | pop_6 = 
| city_7 =  | div_7 =  | pop_7 = 
| city_8 =  | div_8 =  | pop_8 = 
| city_9 =  | div_9 =  | pop_9 = 
| city_10 = | div_10 = | pop_10 =
| city_11 = | div_11 = | pop_11 =
| city_12 = | div_12 = | pop_12 = 
| city_13 = | div_13 = | pop_13 = 
| city_14 = | div_14 = | pop_14 = 
| city_15 = | div_15 = | pop_15 = 
| city_16 = | div_16 = | pop_16 = 
| city_17 = | div_17 = | pop_17 = 
| city_18 = | div_18 = | pop_18 = 
| city_19 = | div_19 = | pop_19 = 
| city_20 = | div_20 = | pop_20 = 
}}

Second and fourth population columns with the header "Metro." can be created by adding "metro_1", "metro_2", etc. This is used for displaying both the incorporated city and metropolitan area populations.

Display in the mobile view

This template is not very mobile-friendly and does not display at all if the navbox class is used.

Template data

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Largest cities in articles based on its TemplateData.

TemplateData for Largest cities

Template data

No description.

Template parameters

ParameterDescriptionTypeStatus
classclass

when set to nav, table will show in full navbox style and not appear in mobile view or print (see ])

Suggested values
nav or <blank>
Default
blank
Example
class=nav
Stringoptional
collapsed_statecollapsed_state

no description

Unknownoptional
nonavnonav

no description

Unknownoptional
namename

no description

Unknownoptional
kindkind

no description

Unknownoptional
countrycountry

no description

Unknownoptional
stat_refstat_ref

no description

Unknownoptional
img_1img_1

no description

Unknownoptional
img_2img_2

no description

Unknownoptional
list_by_poplist_by_pop

no description

Unknownoptional
name_linkname_link

no description

Unknownoptional
div_1div_1

no description

Unknownoptional
div_2div_2

no description

Unknownoptional
div_4div_4

no description

Unknownoptional
div_5div_5

no description

Unknownoptional
div_linkdiv_link

no description

Unknownoptional
div_namediv_name

no description

Unknownoptional
city_11city_11

no description

Unknownoptional
img_3img_3

no description

Unknownoptional
img_4img_4

no description

Unknownoptional
city_1city_1

no description

Unknownoptional
city_2city_2

no description

Unknownoptional
pop_1pop_1

no description

Unknownoptional
div_11div_11

no description

Unknownoptional
pop_11pop_11

no description

Unknownoptional
city_3city_3

no description

Unknownoptional
city_4city_4

no description

Unknownoptional
pop_2pop_2

no description

Unknownoptional
city_12city_12

no description

Unknownoptional
div_12div_12

no description

Unknownoptional
pop_12pop_12

no description

Unknownoptional
div_3div_3

no description

Unknownoptional
pop_3pop_3

no description

Unknownoptional
city_13city_13

no description

Unknownoptional
div_13div_13

no description

Unknownoptional
pop_13pop_13

no description

Unknownoptional
pop_4pop_4

no description

Unknownoptional
city_14city_14

no description

Unknownoptional
div_14div_14

no description

Unknownoptional
pop_14pop_14

no description

Unknownoptional
city_5city_5

no description

Unknownoptional
pop_5pop_5

no description

Unknownoptional
city_15city_15

no description

Unknownoptional
div_15div_15

no description

Unknownoptional
pop_15pop_15

no description

Unknownoptional
city_6city_6

no description

Unknownoptional
div_6div_6

no description

Unknownoptional
pop_6pop_6

no description

Unknownoptional
city_16city_16

no description

Unknownoptional
div_16div_16

no description

Unknownoptional
pop_16pop_16

no description

Unknownoptional
city_7city_7

no description

Unknownoptional
div_7div_7

no description

Unknownoptional
pop_7pop_7

no description

Unknownoptional
city_17city_17

no description

Unknownoptional
div_17div_17

no description

Unknownoptional
pop_17pop_17

no description

Unknownoptional
city_8city_8

no description

Unknownoptional
div_8div_8

no description

Unknownoptional
pop_8pop_8

no description

Unknownoptional
city_18city_18

no description

Unknownoptional
div_18div_18

no description

Unknownoptional
pop_18pop_18

no description

Unknownoptional
city_9city_9

no description

Unknownoptional
div_9div_9

no description

Unknownoptional
pop_9pop_9

no description

Unknownoptional
city_19city_19

no description

Unknownoptional
div_19div_19

no description

Unknownoptional
pop_19pop_19

no description

Unknownoptional
city_10city_10

no description

Unknownoptional
div_10div_10

no description

Unknownoptional
pop_10pop_10

no description

Unknownoptional
city_20city_20

no description

Unknownoptional
div_20div_20

no description

Unknownoptional
pop_20pop_20

no description

Unknownoptional

Tracking category

See also

The above documentation is transcluded from Template:Largest cities/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template. Category: