Revision as of 15:39, 9 January 2014 editJackmcbarn (talk | contribs)31,380 edits sync← Previous edit | Revision as of 18:55, 19 May 2014 edit undoFrietjes (talk | contribs)Autopatrolled, Extended confirmed users, Template editors1,000,827 editsNo edit summaryNext edit → | ||
Line 22: | Line 22: | ||
}} }} | }} }} | ||
<!-- LIST OF CITIES, SUBDIVISIONS, POPULATION FIGURES --> | <!-- LIST OF CITIES, SUBDIVISIONS, POPULATION FIGURES --> | ||
| align=center style="background:#f0f0f0;" | 1 ||align=left | |
| align=center style="background:#f0f0f0;" | 1 ||align=left | ] ||align=left | ] ||align="right"| {{{pop_1}}} {{#if:{{{city_11|}}} | {{!!}} align=center style="background:#f0f0f0;" {{!}} 11 {{!!}}align=left {{!}} ] {{!!}}align=left {{!}} ] {{!!}}align="right" {{!}} {{{pop_11}}} | ||
}} | }} | ||
{{#if:{{{img_3|}}}{{{img_4|}}} | <!-- IMAGES 3 & 4 --> | {{#if:{{{img_3|}}}{{{img_4|}}} | <!-- IMAGES 3 & 4 --> | ||
Line 30: | Line 30: | ||
}} }} | }} }} | ||
|- | |- | ||
| align=center style="background:#f0f0f0;" | 2 ||align=left | |
| align=center style="background:#f0f0f0;" | 2 ||align=left | ] ||align=left | ] ||align="right"| {{{pop_2}}} {{#if:{{{city_12|}}} | {{!!}} align=center style="background:#f0f0f0;" {{!}} 12 {{!!}}align=left {{!}} ] {{!!}}align=left {{!}} ] {{!!}}align="right" {{!}} {{{pop_12}}} | ||
}} | }} | ||
|- | |- | ||
| align=center style="background:#f0f0f0;" | 3 ||align=left | |
| align=center style="background:#f0f0f0;" | 3 ||align=left | ] ||align=left | ] ||align="right"| {{{pop_3}}} {{#if:{{{city_13|}}} | {{!!}} align=center style="background:#f0f0f0;" {{!}} 13 {{!!}}align=left {{!}} ] {{!!}}align=left {{!}} ] {{!!}}align="right" {{!}} {{{pop_13}}} | ||
}} | }} | ||
|- | |- | ||
| align=center style="background:#f0f0f0;" | 4 ||align=left | |
| align=center style="background:#f0f0f0;" | 4 ||align=left | ] ||align=left | ] ||align="right"| {{{pop_4}}} {{#if:{{{city_14|}}} | {{!!}} align=center style="background:#f0f0f0;" {{!}} 14 {{!!}}align=left {{!}} ] {{!!}}align=left {{!}} ] {{!!}}align="right" {{!}} {{{pop_14}}} | ||
}} | }} | ||
|- | |- | ||
| align=center style="background:#f0f0f0;" | 5 ||align=left | |
| align=center style="background:#f0f0f0;" | 5 ||align=left | ] ||align=left | ] ||align="right"| {{{pop_5}}} {{#if:{{{city_15|}}} | {{!!}} align=center style="background:#f0f0f0;" {{!}} 15 {{!!}}align=left {{!}} ] {{!!}}align=left {{!}} ] {{!!}}align="right" {{!}} {{{pop_15}}} | ||
}} | }} | ||
|- | |- | ||
| align=center style="background:#f0f0f0;" | 6 ||align=left | |
| align=center style="background:#f0f0f0;" | 6 ||align=left | ] ||align=left | ] ||align="right"| {{{pop_6}}} {{#if:{{{city_16|}}} | {{!!}} align=center style="background:#f0f0f0;" {{!}} 16 {{!!}}align=left {{!}} ] {{!!}}align=left {{!}} ] {{!!}}align="right" {{!}} {{{pop_16}}} | ||
}} | }} | ||
|- | |- | ||
| align=center style="background:#f0f0f0;" | 7 ||align=left | |
| align=center style="background:#f0f0f0;" | 7 ||align=left | ] ||align=left | ] ||align="right"| {{{pop_7}}} {{#if:{{{city_17|}}} | {{!!}} align=center style="background:#f0f0f0;" {{!}} 17 {{!!}}align=left {{!}} ] {{!!}}align=left {{!}} ] {{!!}}align="right" {{!}} {{{pop_17}}} | ||
}} | }} | ||
|- | |- | ||
| align=center style="background:#f0f0f0;" | 8 ||align=left | |
| align=center style="background:#f0f0f0;" | 8 ||align=left | ] ||align=left | ] ||align="right"| {{{pop_8}}} {{#if:{{{city_18|}}} | {{!!}} align=center style="background:#f0f0f0;" {{!}} 18 {{!!}}align=left {{!}} ] {{!!}}align=left {{!}} ] {{!!}}align="right" {{!}} {{{pop_18}}} | ||
}} | }} | ||
|- | |- | ||
| align=center style="background:#f0f0f0;" | 9 ||align=left | |
| align=center style="background:#f0f0f0;" | 9 ||align=left | ] ||align=left | ] ||align="right"| {{{pop_9}}} {{#if:{{{city_19|}}} | {{!!}} align=center style="background:#f0f0f0;" {{!}} 19 {{!!}}align=left {{!}} ] {{!!}}align=left {{!}} ] {{!!}}align="right" {{!}} {{{pop_19}}} | ||
}} | }} | ||
|- | |- | ||
| align=center style="background:#f0f0f0;" | 10 ||align=left | |
| align=center style="background:#f0f0f0;" | 10 ||align=left | ] ||align=left | ] ||align="right"| {{{pop_10}}} {{#if:{{{city_20|}}} | {{!!}} align=center style="background:#f0f0f0;" {{!}} 20 {{!!}}align=left {{!}} ] {{!!}}align=left {{!}} ] {{!!}}align="right" {{!}} {{{pop_20}}} | ||
}} | }} | ||
|- | |- |
Revision as of 18:55, 19 May 2014
This is the template sandbox page for Template:Largest cities (diff). See also the companion subpage for test cases. |
This 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.
|
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: