Template:City: Difference between revisions

From Discourse DB
Jump to navigation Jump to search
No edit summary
No edit summary
Line 10: Line 10:
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
{{#cargo_declare:Country=Text|Date_founded=Date|Population=Integer|Coordinates=Coordinates}}
{{#cargo_declare:_table=Cities|Country=Text|Date_founded=Date|Population=Integer|Coordinates=Coordinates}}
</noinclude><includeonly>
</noinclude><includeonly>
{{#declare:Is in country=country|Was founded in=date founded|Has population=population|Has coordinates=coordinates}}{{#cargo_store:Country={{{country|}}}|Date_founded={{{date founded|}}}|Population={{{population|}}}|Coordinates={{{coordinates|}}} }}
{{#declare:Is in country=country|Was founded in=date founded|Has population=population|Has coordinates=coordinates}}{{#cargo_store:_table=Cities|Country={{{country|}}}|Date_founded={{{date founded|}}}|Population={{{population|}}}|Coordinates={{{coordinates|}}} }}
{| border=0 cellpadding=4 cellspacing=4
{| border=0 cellpadding=4 cellspacing=4
! Country
! Country

Revision as of 12:06, September 11, 2014

This is the 'City' template. It should be called in the following format:

{{City
|country=
|date founded=
|population=
|coordinates=
}}

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