Permanently protected template

Template:Largest cities

From Wikipedia, the free encyclopedia
 
Largest cities or towns in {{{country}}}
Source?
Rank Pop.
1 [[{{{city_1}}}]] {{{pop_1}}}
2 [[{{{city_2}}}]] {{{pop_2}}}
3 [[{{{city_3}}}]] {{{pop_3}}}
4 [[{{{city_4}}}]] {{{pop_4}}}
5 [[{{{city_5}}}]] {{{pop_5}}}
6 [[{{{city_6}}}]] {{{pop_6}}}
7 [[{{{city_7}}}]] {{{pop_7}}}
8 [[{{{city_8}}}]] {{{pop_8}}}
9 [[{{{city_9}}}]] {{{pop_9}}}
10 [[{{{city_10}}}]] {{{pop_10}}}
Template documentation[ view] [ ] [ history] [ purge]

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.

Usage

{{Largest cities
| name        = <!-- name of the template, e.g. Largest cities of Chile -->
| class       = <!-- can be changed to "nav" to alter the template's colour scheme -->
| 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 = 
}}

Template data

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Largest cities

Template data

No description.

Template parameters

ParameterDescriptionTypeStatus
classclass

when has any value, taable will show in full navbox style (See [[WP:NAVBOX]])

Suggested values
navbox or <blank>
Default
blank
Example
class=navbox
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

See also