Template:Cities: Difference between revisions

From Medicine GPT
Jump to navigation Jump to search
No edit summary
No edit summary
Line 14: 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=String (mandatory)
|state=String (mandatory)
|State=String
|state_short=String (mandatory)
|State_short=String
|country=String
|Country=String
|population=Integer
|Population=Integer
|zipcodes=Integer
|Zipcodes=Integer
|rating=Rating
|Rating=Rating
|coordinates=Coordinates
|Coordinates=Coordinates
}}
}}
{{#cargo_declare:_table=uscities|_drilldownTabs=Map (format=openlayers;fields=_pageName,Coordinates),Table tab (format=table;fields=_pageName=Name,City,State,State_short|Country=Text|Population=Integer|Zipcodes=String|Rating=rating|Coordinates=Coordinates}}
</noinclude><includeonly>
</noinclude><includeonly>
{{#cargo_store:_table=uscities|Country={{{country|}}}|State={{{state|}}}|State_short={{{state_short|}}}|City={{{city|}}}|Population={{{population|}}}||Rating={{{Rating|}}}Coordinates={{{coordinates|}}} }}
{{#cargo_store:_table=uscities|City={{{City|}}}|State={{{State|}}}|State_short={{{State_short|}}}|Country={{{Country|}}}|Population={{{Population|}}}|Zipcodes={{{Zipcodes|}}}|Rating={{{Rating|}}}Coordinates={{{Coordinates|}}} }}
{| border=0 cellpadding=4 cellspacing=4
{| border=0 cellpadding=4 cellspacing=4
! City
! City
| {{{city|}}}
| {{{City|}}}
|-
|-
! Population
! Population
| {{{population|}}}
| {{{Population|}}}
|-
|-
! State
! State
| {{{state|}}}
| {{{State|}}}
|-
|-
! State short
! State short
| {{{state_short|}}}
| {{{State_short|}}}
|-
|-
! Country
! Country
| {{{country|}}}
| {{{Country|}}}
|-
|-
! Coordinates
! Coordinates
| {{#cargo_display_map:point={{{coordinates|}}}|service=openlayers}}
| {{#cargo_display_map:point={{{Coordinates|}}}|service=openlayers}}
|-
! Zipcodes
| {{{Zipcodes|}}}
|-
|-
! Rating
! Rating
| {{{rating|}}}
| {{{Rating|}}}
|-
! Zipcodes
| {{{zipcodes|}}}
|}
|}


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

Revision as of 19:10, 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=
|Zipcodes=
|Rating=
|Coordinates=
}}

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