Template:Cities: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 17: | Line 17: | ||
|state=String (mandatory) | |state=String (mandatory) | ||
|state_short=String (mandatory) | |state_short=String (mandatory) | ||
|country=String | |country=String | ||
|population=Integer | |population=Integer | ||
|zipcodes=List (,) of Integer | |zipcodes=List (,) of Integer | ||
| Line 24: | Line 24: | ||
}} | }} | ||
{{#cargo_declare:_table=uscities|_drilldownTabs=Map (format=openlayers;fields=_pageName,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|Rating=rating|Coordinates=Coordinates}} | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
{{#cargo_store:_table=uscities|Country={{{country|}}}|State={{{state|}}}|State code={{{state_short|}}}|City={{{city|}}}|Population={{{population|}}}|Coordinates={{{coordinates|}}} }} | {{#cargo_store:_table=uscities|Country={{{country|}}}|State={{{state|}}}|State code={{{state_short|}}}|City={{{city|}}}|Population={{{population|}}}||Rating={{{Rating|}}}Coordinates={{{coordinates|}}} }} | ||
{| border=0 cellpadding=4 cellspacing=4 | {| border=0 cellpadding=4 cellspacing=4 | ||
! Country | ! Country | ||
| Line 42: | Line 42: | ||
! Population | ! Population | ||
| {{{population|}}} | | {{{population|}}} | ||
|- | |||
! Coordinates | |||
| {{#cargo_display_map:point={{{coordinates|}}}|service=openlayers}} | |||
|- | |||
! Rating | |||
| {{{zipcodes|}}} | |||
|- | |- | ||
! Zipcodes | ! Zipcodes | ||
| {{{zipcodes|}}} | | {{{zipcodes|}}} | ||
|} | |} | ||
[[Category:US-cities]] | [[Category:US-cities]] | ||
</includeonly> | </includeonly> | ||
Revision as of 18:24, 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.
This template defines the table "uscities". View table.