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
Line 4: Line 4:
{{City
{{City
|State=
|State=
|State_short=
|Country=
|Country=
|Population=
|Population=
Line 14: Line 15:
|city=String (mandatory)
|city=String (mandatory)
|state=String (mandatory)
|state=String (mandatory)
|state_short=String (mandatory)
|country=String (mandatory)
|country=String (mandatory)
|population=Integer
|population=Integer
Line 21: Line 23:
}}
}}


{{#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}}
{{#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,State_short|Country=Text|Population=Integer|Date_founded=Date|Rating=rating|Coordinates=Coordinates}}
</noinclude><includeonly>
</noinclude><includeonly>
{{#cargo_store:_table=uscities|Country={{{country|}}}|State={{{state|}}}|City={{{city|}}}|Date_founded={{{date founded|}}}|Population={{{population|}}}|Coordinates={{{coordinates|}}} }}
{{#cargo_store:_table=uscities|Country={{{country|}}}|State={{{state|}}}|State code={{{state_short|}}}|City={{{city|}}}|Date_founded={{{date founded|}}}|Population={{{population|}}}|Coordinates={{{coordinates|}}} }}
{| border=0 cellpadding=4 cellspacing=4
{| border=0 cellpadding=4 cellspacing=4
! Country
! Country
Line 30: Line 32:
! State
! State
| {{{state|}}}
| {{{state|}}}
|-
! State short
| {{{state_short|}}}
|-
|-
! City
! City

Revision as of 17:13, 23 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=
|Rating=
|Coordinates=
}}

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

This template defines the table "uscities". View table.