Template:City: Difference between revisions

From tango.info wiki
Jump to navigation Jump to search
mNo edit summary
 
(33 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[category:cities]]
[[Category:City]]<noinclude>
<noinclude>
==Usage==
==Usage==
*Edit this page, copy and paste the <b><i><nowiki>{{city ...}}</nowiki> block</i></b> in your city page, then fill in the requested fields in your city page.
*Edit this page, copy and paste the <b><i><nowiki>{{city ...}}</nowiki> block</i></b> in your city page, then fill in the requested fields in your city page.
Line 11: Line 10:
|iso_3166_2=
|iso_3166_2=
|un_locode=
|un_locode=
|geo_lat=
|geo_lon=
|nearby_cities=
|nearby_cities=
|kml_lat=
|kml_lon=
|city_map_url=
|city_map_url=
|tango_map=
}}
}}


Line 20: Line 20:
==Presentation==
==Presentation==
The information contained in the <b><i><nowiki>{{city ...}}</nowiki> block</i></b> will be presented by this template as follows:
The information contained in the <b><i><nowiki>{{city ...}}</nowiki> block</i></b> will be presented by this template as follows:
</noinclude>
</noinclude><div style="background-color:#eeeeee">{{#if:
{{#if: {{{un_locode|}}}|[[category:{{{un_locode}}}|*]]}}
{{{un_locode|}}}|[[category:{{{un_locode}}}|*]]}}
<small>[[Template:city]] is under construction</small>
{| class="wikitable"
{| class="wikitable"
|-
|-
|'''name'''
|'''name'''
| '''{{{name}}}''' [http://maps.google.com/?q={{urlencode:{{{name}}} {{{iso_3166_1}}} }} gmap]
| '''{{#if: {{{name|}}}|{{{name}}}|{{PAGENAME}}}}''' {{#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]]: [[:category:{{{iso_3166_1}}}|{{{iso_3166_1}}}]] }} {{#if:
| '''[[ISO 3166-2|Region code]]'''
{{{iso_3166_2|}}} | '''//''' [[ISO 3166-2|region]]: [[:category:{{{iso_3166_2}}}|{{{iso_3166_2}}}]] }} {{#if:  
| [[:category:{{{iso_3166_2}}}|{{{iso_3166_2}}}]]
{{{un_locode|}}} | '''//''' [[UN/LOCODE|city]]: [[:category:{{{un_locode}}}|{{{un_locode}}}]] }} {{#if:  
|-
{{{geo_lat|}}} | '''//''' Latitude (N/S): {{{geo_lat}}} Longitude (E/W): {{{geo_lon}}} (locate on [http://maps.google.com/?q={{urlencode:{{{geo_lat}}}, {{{geo_lon}}} }}&z=5 gmap]) }}
| {{#if:{{{un_locode|}}} | '''[[UN/LOCODE|City code]]'''
}}
| {{#if:{{{un_locode|}}} | [[:category:{{{un_locode}}}|{{{un_locode}}}]] - information related to {{{name}}} can be found in [[:category:{{{un_locode}}}]].
}}
|-
|Geo coordinates
| Lattitude (N/S): {{{kml_lat}}}<br />Longitude (E/W): {{{kml_lon}}}
|-
|-
| {{#if: {{{nearby_cities|}}} | '''nearby tango cities''' }}
| {{#if: {{{nearby_cities|}}} | '''nearby tango cities''' }}
Line 46: Line 38:


|-
|-
|'''venues'''
|'''[[:category:Venue|Venues]]'''
|{{#if:{{{un_locode|}}}|
|{{#if:{{{un_locode|}}}|
{{#if:{{{city_map_url|}}} | A map of tango venues is available [{{{city_map_url}}} here]. }}
{{#if:{{{city_map_url|}}} | '''A map of tango venues is available [{{{city_map_url}}} here].''' }}
{{#dpl:
{{#dpl:
  |category={{{un_locode}}}
  |category={{{un_locode}}}
  |category=venues
  |category=Venue
  |noresultsheader=&nbsp;
  |noresultsheader=&nbsp;
}}
}}
Line 57: Line 49:


|}
|}
 
<div align="right"><small>Presented by [[Template:city]] (under construction)</small></div>
----------
</div>

Latest revision as of 2013-06-13T03:40:04

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
Venues
Presented by Template:city (under construction)