Template:City: Difference between revisions

From tango.info wiki
Jump to navigation Jump to search
No edit summary
(→‎Presentation: geo codes in one line)
Line 28: Line 28:
| '''{{#if: {{{name|}}}|name|{{PAGENAME}}}}''' {{#if:{{{kml_lat|}}}|(locate on [http://maps.google.com/?q={{urlencode:{{{kml_lat}}}, {{{kml_lon}}} }}&z=5 gmap])}}{{#if:{{{tango_map|}}}|<br />Regional Map: [[gmap {{{tango_map}}}|{{{tango_map}}}]]'''}}
| '''{{#if: {{{name|}}}|name|{{PAGENAME}}}}''' {{#if:{{{kml_lat|}}}|(locate on [http://maps.google.com/?q={{urlencode:{{{kml_lat}}}, {{{kml_lon}}} }}&z=5 gmap])}}{{#if:{{{tango_map|}}}|<br />Regional Map: [[gmap {{{tango_map}}}|{{{tango_map}}}]]'''}}
|-
|-
| {{#if: {{{iso_3166_1|}}} | '''[[ISO 3166-1|Country code]]''' }}
| Geocodes
| {{#if: {{{iso_3166_1|}}} | [[:category:{{{iso_3166_1}}}|{{{iso_3166_1}}}]] }}
| {{#if: {{{iso_3166_1|}}} | '''[[ISO 3166-1|Country code]]''': [[:category:{{{iso_3166_1}}}|{{{iso_3166_1}}}]] }}
|-
{{#if: {{{iso_3166_2|}}} | '''[[ISO 3166-2|Region code]]''': [[:category:{{{iso_3166_2}}}|{{{iso_3166_2}}}]] }}
| '''[[ISO 3166-2|Region code]]'''
{{#if: {{{un_locode|}}} | '''[[UN/LOCODE|City code]]''': [[:category:{{{un_locode}}}|{{{un_locode}}}]] }}
| [[:category:{{{iso_3166_2}}}|{{{iso_3166_2}}}]]
|-
| {{#if:{{{un_locode|}}} | '''[[UN/LOCODE|City code]]'''  
}}
| {{#if:{{{un_locode|}}} | [[:category:{{{un_locode}}}|{{{un_locode}}}]] - information related to {{#if: {{{name|}}}|name|{{PAGENAME}}}} can be found in [[:category:{{{un_locode}}}]].
}}
|-
|-
|'''Geo coordinates  
|'''Geo coordinates  

Revision as of 2008-12-07T00:33:48


Usage

  • Edit this page, copy and paste the {{city ...}} block in your city page, then fill in the requested fields in your city page.

Presentation

The information contained in the {{city ...}} block will be presented by this template as follows:

name City
Geocodes


Geo coordinates Latitude (N/S): {{{kml_lat}}} Longitude (E/W): {{{kml_lon}}}
Venues
Presented by Template:city (under construction)