Template:City: Difference between revisions
Jump to navigation
Jump to search
Yaron Koren (talk | contribs) No edit summary |
Yaron Koren (talk | contribs) No edit summary |
||
(17 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
This is the | This is the 'City' template. It should be called in the following format: | ||
It should be called in the following format: | |||
<pre> | <pre> | ||
{{City | {{City | ||
| | |country= | ||
| | |date founded= | ||
| | |population= | ||
|coordinates= | |||
}} | }} | ||
</pre> | </pre> | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
{{#cargo_declare:_table=Cities|_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,Country,Population,Date_founded)|Country=Text|Date_founded=Date|Population=Integer|Coordinates=Coordinates}} | |||
</noinclude><includeonly> | </noinclude><includeonly> | ||
{| | {{#cargo_store:_table=Cities|Country={{{country|}}}|Date_founded={{{date founded|}}}|Population={{{population|}}}|Coordinates={{{coordinates|}}} }} | ||
{| border=0 cellpadding=4 cellspacing=4 | |||
! Country | |||
| {{{country|}}} | |||
|- | |||
! Date founded | |||
| {{{date founded|}}} | |||
|- | |||
! Population | ! Population | ||
| | | {{{population|}}} | ||
|- | |- | ||
! | ! Coordinates | ||
| {{# | | {{#cargo_display_map:point={{{coordinates|}}}|service=openlayers}} | ||
|} | |} | ||
[[Category: | [[Category:Cities]] | ||
</includeonly> | </includeonly> |
Latest revision as of 19:50, June 29, 2020
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.