Template:Cities: Difference between revisions

From Medicine GPT
Jump to navigation Jump to search
(Created page with "<noinclude> This is the list of cities in the United States template. It should be called in the following format: <pre> {{City |State= |Country= |Population= |Rating= |Coordinates= }} </pre> Edit the page to see the template text. {{#cargo_declare:_table=uscities |city=String (mandatory) |state=String (mandatory) |country=String (mandatory) |population=Integer |date_founded= |rating=Rating |coordinates=Coordinates }} {{#cargo_declare:_table=uscities|_drilldownTabs=Map...")
 
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 2: Line 2:
This is the list of cities in the United States template. It should be called in the following format:
This is the list of cities in the United States template. It should be called in the following format:
<pre>
<pre>
{{City
{{City=
|State=
|State=
|State_short=
|Country=
|Country=
|Population=
|Population=
|Zipcodes=
|Rating=
|Rating=
|Coordinates=
|Coordinates=
Line 12: Line 14:
Edit the page to see the template text.
Edit the page to see the template text.
{{#cargo_declare:_table=uscities
{{#cargo_declare:_table=uscities
|city=String (mandatory)
|City=Page (mandatory)
|state=String (mandatory)
|State=Page
|country=String (mandatory)
|State_short=Page
|population=Integer
|Country=Page
|date_founded=
|Population=Integer
|rating=Rating
|Zipcodes=List (,) of Page
|coordinates=Coordinates
|Rating=Rating
|Coordinates=Coordinates
}}
}}
 
</noinclude>
{{#cargo_declare:_table=uscities|_drilldownTabs=Map (format=openlayers;fields=_pageName,Coordinates), Timeline (format=timeline;fields=_pageName,Date_founded),Category tab (format=category;fields=_pageName,Date_founded),Table tab (format=table;fields=_pageName=Name,City,State|Country=Text|Population=Integer|Date_founded=Date|Rating=rating|Coordinates=Coordinates}}
<includeonly>
</noinclude><includeonly>
{{#cargo_store:_table=uscities|City={{{City|}}}|State={{{State|}}}|State_short={{{State_short|}}}|Country={{{Country|}}}|Population={{{Population|}}}|Zipcodes={{{Zipcodes|}}}|Rating={{{Rating|}}}|Coordinates={{{Coordinates|}}} }}
{{#cargo_store:_table=uscities|Country={{{country|}}}|State={{{state|}}}|City={{{city|}}}|Date_founded={{{date founded|}}}|Population={{{population|}}}|Coordinates={{{coordinates|}}} }}
{| border=0 cellpadding=4 cellspacing=4
{| border=0 cellpadding=4 cellspacing=4
! Country
! City
| {{{country|}}}
| {{{City|}}}
|-
! Population
| {{{Population|}}}
|-
|-
! State
! State
| {{{state|}}}
| {{{State|}}}
|-
! State short
| {{{State_short|}}}
|-
|-
! City
! Country
| {{{city|}}}
| {{{Country|}}}
|-
|-
! Date founded
! Coordinates
| {{{date founded|}}}
| {{#cargo_display_map:point={{{Coordinates|}}}|service=openlayers}}
|-
|-
! Population
! Zipcodes
| {{{population|}}}
| {{{Zipcodes|}}}
|-
|-
! Coordinates
! Rating
| {{#cargo_display_map:point={{{coordinates|}}}|service=openlayers}}
| {{{Rating|}}}
|}
|}


[[Category:US-cities]]
[[Category:US-cities]]
</includeonly>
</includeonly>

Latest revision as of 04:32, 24 September 2022

This is the list of cities in the United States template. It should be called in the following format:

{{City=
|State=
|State_short=
|Country=
|Population=
|Zipcodes=
|Rating=
|Coordinates=
}}

Edit the page to see the template text. This template defines the table "uscities". View table.