Template:Largest cities: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
nswiki>Hazamaeia mNo edit summary |
(Created page with "{{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...") |
||
Line 1: | Line 1: | ||
{{Largest cities |
|||
<includeonly>{| {{#if:{{{class|}}} | class="navbox" style="width: 100%" | width="100%" style="margin-left: auto; margin-right: auto; width: 100%; border: 1px solid darkgray; background: #f9f9f9" }} |
|||
| name = <!-- name of the template, e.g. Largest cities of Chile --> |
|||
<!-- TITLE & SOURCE --> |
|||
| class = <!-- can be changed to "nav" to alter the template's colour scheme --> |
|||
!colspan="10" style="padding:0.3em 0; line-height:1.4em; <!--(for sake of wrapped line plus footnote ref)-->"| {{navbar|{{{name|{{FULLPAGENAME}}}}}|mini=1|style=float: left; margin-left:0.75em}} <span style="font-size:120%;">Largest {{{kind|cities or towns}}} of {{#if:{{{country_link|}}} | [[{{{country_link}}}]] | [[{{{country}}}]]}}</span><br/><span style="font-weight:normal;">{{#if:{{{stat_ref|}}} | {{{stat_ref|Source?}}} | Source? }}</span> |
|||
| country = <!-- the name of the country, e.g. Chile --> |
|||
|- <!-- TABLE HEADINGS --> |
|||
| kind = <!-- replace "cities and towns" in the title w/ anything, e.g. "conurbations" --> |
|||
! <!-- blank heading over images 1 & 2 -->{{#if:{{{img_1|}}}{{{img_2|}}} | !! |
|||
| stat_ref = <!-- source of the pop. figures, e.g. Instituto Nacional de Estadisticas de Chile or use {{URL| }} --> |
|||
}} {{#if:{{{list_by_pop|}}} | [[{{{list_by_pop}}}|Rank]] | {{#ifexist: List of cities in {{{country}}} by population | [[List of cities in {{{country}}} by population|Rank]] | Rank }} }} |
|||
| list_by_pop = <!-- link to the list of cities in the given country, if possible sorted by population --> |
|||
! {{#ifexist: List of cities in {{{country}}} | [[List of cities in {{{country}}}|Name]] | Name }} |
|||
| div_name = <!-- the name of the main administrative subdivision, e.g. Province, State, Region... --> |
|||
! {{#if:{{{div_link|}}} | [[{{{div_link}}}]] | [[{{{div_name|Administrative division}}}s of {{{country}}}|{{{div_name|Administrative division}}}]] }} |
|||
| 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 --> |
|||
! {{#if:{{{list_by_pop|}}} | [[{{{list_by_pop}}}| Pop.]] | {{#ifexist: List of cities in {{{country}}} by population | [[List of cities in {{{country}}} by population|Pop.]] | Pop. }} }} |
|||
{{#if:{{{city_11|}}} | <!-- determines whether there should be two columns or just one --> |
|||
| city_1 = <!-- a link to the article about the largest city --> |
|||
! {{#if:{{{list_by_pop|}}} | [[{{{list_by_pop}}}|Rank]] | {{#ifexist: List of cities in {{{country}}} by population | [[List of cities in {{{country}}} by population|Rank]] | Rank }} }} |
|||
| div_1 = <!-- link to the administrative subdivision where said city is located --> |
|||
! {{#ifexist: List of cities in {{{country}}} | [[List of cities in {{{country}}}|Name]] | Name }} |
|||
| pop_1 = <!-- population, do include the commas to separate the thousands --> |
|||
! {{#if:{{{div_link|}}} | [[{{{div_link}}}]] | [[{{{div_name}}}s of {{{country}}}|{{{div_name}}}]] }} |
|||
| img_1 = <!-- a picture showing an overview of the city --> |
|||
! {{#if:{{{list_by_pop|}}} | [[{{{list_by_pop}}}| Pop.]] | {{#ifexist: List of cities in {{{country}}} by population | [[List of cities in {{{country}}} by population|Pop.]] | Pop. }} }} {{#if:{{{img_3|}}}{{{img_4|}}} | !! }}<!-- blank heading over images 3 & 4 --> |
|||
| {{#if:{{{img_3|}}}{{{img_4|}}} | ! }}<!-- blank heading over images 3 & 4 --> |
|||
| city_2 = | div_2 = | pop_2 = | img_2 = |
|||
}} <!-- ends if city_11 --> |
|||
| city_3 = | div_3 = | pop_3 = | img_3 = |
|||
|- |
|||
| city_4 = | div_4 = | pop_4 = | img_4 = |
|||
{{#if:{{{img_1|}}}{{{img_2|}}} | <!-- IMAGES 1 & 2 --> |
|||
| city_5 = | div_5 = | pop_5 = |
|||
{{!}} rowspan=11 style="text-align: center" {{!}} {{br separated entries |
|||
| city_6 = | div_6 = | pop_6 = |
|||
| 1 = {{#if:{{{img_1|}}}|[[File:{{{img_1}}}|border|120px|{{{city_1}}}]]<br>[[{{{city_1}}}]]}} |
|||
| city_7 = | div_7 = | pop_7 = |
|||
| 2 = {{#if:{{{img_2|}}}|[[File:{{{img_2}}}|border|120px|{{{city_2}}}]]<br>[[{{{city_2}}}]]}} |
|||
| city_8 = | div_8 = | pop_8 = |
|||
}} }} |
|||
| city_9 = | div_9 = | pop_9 = |
|||
<!-- LIST OF CITIES, SUBDIVISIONS, POPULATION FIGURES --> |
|||
| city_10 = | div_10 = | pop_10 = |
|||
| align=center style="background:#f0f0f0;" | 1 ||align=left | '''[[{{{city_1}}}]]''' ||align=left | [[{{{div_1}}}]] ||align="right"| {{{pop_1}}} {{#if:{{{city_11|}}} | {{!!}} align=center style="background:#f0f0f0;" {{!}} 11 {{!!}}align=left {{!}} '''[[{{{city_11}}}]]''' {{!!}}align=left {{!}} [[{{{div_11}}}]] {{!!}}align="right" {{!}} {{{pop_11}}} |
|||
| 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 = |
|||
}} |
}} |
||
{{#if:{{{img_3|}}}{{{img_4|}}} | <!-- IMAGES 3 & 4 --> |
|||
{{!}} rowspan=11 style="text-align: center" {{!}} {{br separated entries |
|||
| 1 = {{#if:{{{img_3|}}}|[[File:{{{img_3}}}|border|120px|{{{city_3}}}]]<br>[[{{{city_3}}}]]}} |
|||
| 2 = {{#if:{{{img_4|}}}|[[File:{{{img_4}}}|border|120px|{{{city_4}}}]]<br>[[{{{city_4}}}]]}} |
|||
}} }} |
|||
|- |
|||
| align=center style="background:#f0f0f0;" | 2 ||align=left | '''[[{{{city_2}}}]]''' ||align=left | [[{{{div_2}}}]] ||align="right"| {{{pop_2}}} {{#if:{{{city_12|}}} | {{!!}} align=center style="background:#f0f0f0;" {{!}} 12 {{!!}}align=left {{!}} '''[[{{{city_12}}}]]''' {{!!}}align=left {{!}} [[{{{div_12}}}]] {{!!}}align="right" {{!}} {{{pop_12}}} |
|||
}} |
|||
|- |
|||
| align=center style="background:#f0f0f0;" | 3 ||align=left | '''[[{{{city_3}}}]]''' ||align=left | [[{{{div_3}}}]] ||align="right"| {{{pop_3}}} {{#if:{{{city_13|}}} | {{!!}} align=center style="background:#f0f0f0;" {{!}} 13 {{!!}}align=left {{!}} '''[[{{{city_13}}}]]''' {{!!}}align=left {{!}} [[{{{div_13}}}]] {{!!}}align="right" {{!}} {{{pop_13}}} |
|||
}} |
|||
|- |
|||
| align=center style="background:#f0f0f0;" | 4 ||align=left | '''[[{{{city_4}}}]]''' ||align=left | [[{{{div_4}}}]] ||align="right"| {{{pop_4}}} {{#if:{{{city_14|}}} | {{!!}} align=center style="background:#f0f0f0;" {{!}} 14 {{!!}}align=left {{!}} '''[[{{{city_14}}}]]''' {{!!}}align=left {{!}} [[{{{div_14}}}]] {{!!}}align="right" {{!}} {{{pop_14}}} |
|||
}} |
|||
|- |
|||
| align=center style="background:#f0f0f0;" | 5 ||align=left | '''[[{{{city_5}}}]]''' ||align=left | [[{{{div_5}}}]] ||align="right"| {{{pop_5}}} {{#if:{{{city_15|}}} | {{!!}} align=center style="background:#f0f0f0;" {{!}} 15 {{!!}}align=left {{!}} '''[[{{{city_15}}}]]''' {{!!}}align=left {{!}} [[{{{div_15}}}]] {{!!}}align="right" {{!}} {{{pop_15}}} |
|||
}} |
|||
|- |
|||
| align=center style="background:#f0f0f0;" | 6 ||align=left | '''[[{{{city_6}}}]]''' ||align=left | [[{{{div_6}}}]] ||align="right"| {{{pop_6}}} {{#if:{{{city_16|}}} | {{!!}} align=center style="background:#f0f0f0;" {{!}} 16 {{!!}}align=left {{!}} '''[[{{{city_16}}}]]''' {{!!}}align=left {{!}} [[{{{div_16}}}]] {{!!}}align="right" {{!}} {{{pop_16}}} |
|||
}} |
|||
|- |
|||
| align=center style="background:#f0f0f0;" | 7 ||align=left | '''[[{{{city_7}}}]]''' ||align=left | [[{{{div_7}}}]] ||align="right"| {{{pop_7}}} {{#if:{{{city_17|}}} | {{!!}} align=center style="background:#f0f0f0;" {{!}} 17 {{!!}}align=left {{!}} '''[[{{{city_17}}}]]''' {{!!}}align=left {{!}} [[{{{div_17}}}]] {{!!}}align="right" {{!}} {{{pop_17}}} |
|||
}} |
|||
|- |
|||
| align=center style="background:#f0f0f0;" | 8 ||align=left | '''[[{{{city_8}}}]]''' ||align=left | [[{{{div_8}}}]] ||align="right"| {{{pop_8}}} {{#if:{{{city_18|}}} | {{!!}} align=center style="background:#f0f0f0;" {{!}} 18 {{!!}}align=left {{!}} '''[[{{{city_18}}}]]''' {{!!}}align=left {{!}} [[{{{div_18}}}]] {{!!}}align="right" {{!}} {{{pop_18}}} |
|||
}} |
|||
|- |
|||
| align=center style="background:#f0f0f0;" | 9 ||align=left | '''[[{{{city_9}}}]]''' ||align=left | [[{{{div_9}}}]] ||align="right"| {{{pop_9}}} {{#if:{{{city_19|}}} | {{!!}} align=center style="background:#f0f0f0;" {{!}} 19 {{!!}}align=left {{!}} '''[[{{{city_19}}}]]''' {{!!}}align=left {{!}} [[{{{div_19}}}]] {{!!}}align="right" {{!}} {{{pop_19}}} |
|||
}} |
|||
|- |
|||
| align=center style="background:#f0f0f0;" | 10 ||align=left | '''[[{{{city_10}}}]]''' ||align=left | [[{{{div_10}}}]] ||align="right"| {{{pop_10}}} {{#if:{{{city_20|}}} | {{!!}} align=center style="background:#f0f0f0;" {{!}} 20 {{!!}}align=left {{!}} '''[[{{{city_20}}}]]''' {{!!}}align=left {{!}} [[{{{div_20}}}]] {{!!}}align="right" {{!}} {{{pop_20}}} |
|||
}} |
|||
|- |
|||
|}</includeonly><noinclude> |
|||
{{documentation}} |
|||
</noinclude> |
Revision as of 23:12, 12 May 2020
Template loop detected: Template:Largest cities