Template:City: Difference between revisions

From tango.info wiki
Jump to navigation Jump to search
→‎Presentation: geo codes in one line
mNo edit summary
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}}}]]'''}}
|-
|-
| Geocodes
| '''Geocodes'''
| {{#if: {{{iso_3166_1|}}} | '''[[ISO 3166-1|Country code]]''': [[: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}}}]] }}
{{#if: {{{iso_3166_2|}}} | [[ISO 3166-2|Region code]]: [[:category:{{{iso_3166_2}}}|{{{iso_3166_2}}}]] }}
{{#if: {{{un_locode|}}} | '''[[UN/LOCODE|City code]]''': [[:category:{{{un_locode}}}|{{{un_locode}}}]] }}
{{#if: {{{un_locode|}}} | [[UN/LOCODE|City code]]: [[:category:{{{un_locode}}}|{{{un_locode}}}]] }}
|-
|-
|'''Geo coordinates  
|'''Geo coordinates  

Revision as of 2008-12-06T22:35:18


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)