Difference between revisions of "Template:Smaller city"

From Transit.Wiki
m (Undo revision 71805 by Andy (talk))
m
Line 3: Line 3:
  
 
<div class=map>
 
<div class=map>
{{#compound_query:[[City::{{{alternate city name|{{PAGENAME}}}}}]][[Category:Points of interest]];icon=mm_20_red.png
+
{{#ifexpr: {{#ask: [[City::{{{alternate city name|{{PAGENAME}}}}}]]|format=count}} < 1
 +
| {{#display_map:|center={{{latlong|}}}|width=80%|height=350|kml={{{kml|}}}|zoom=15|kmlrezoom=yes}}
 +
| {{#compound_query:[[City::{{{alternate city name|{{PAGENAME}}}}}]][[Category:Points of interest]];icon=mm_20_red.png
 
|[[City::{{{alternate city name|{{PAGENAME}}}}}]][[Category:Rail stations]];icon=Rail20.png
 
|[[City::{{{alternate city name|{{PAGENAME}}}}}]][[Category:Rail stations]];icon=Rail20.png
 
|[[City::{{{alternate city name|{{PAGENAME}}}}}]][[-Ferry::+]];icon=Ferry20.png;
 
|[[City::{{{alternate city name|{{PAGENAME}}}}}]][[-Ferry::+]];icon=Ferry20.png;
 
|[[City::{{{alternate city name|{{PAGENAME}}}}}]][[Category:Bus stops]];?latlong;?-Place=Bus;?Served by=Line;?-Rail=Bus;?-Bus=Bus;?-Busway=Bus;?-Ferry=Ferry;icon=Bus20.png
 
|[[City::{{{alternate city name|{{PAGENAME}}}}}]][[Category:Bus stops]];?latlong;?-Place=Bus;?Served by=Line;?-Rail=Bus;?-Bus=Bus;?-Busway=Bus;?-Ferry=Ferry;icon=Bus20.png
|format=googlemaps|zoomstyle=small|width={{{width|400}}}|height={{{height|400}}}|zoom=12|{{#if:{{{kml|}}}|gkml={{{kml|}}}}}|kmlrezoom=yes}}
+
|format=googlemaps|zoomstyle=small|width={{{width|400}}}|height={{{height|400}}}|zoom=12|{{#if:{{{kml|}}}|gkml={{{kml|}}}}}|kmlrezoom=yes}}}}
 
</div>
 
</div>
  

Revision as of 18:53, 19 November 2013

Usage - Enter the following code to a city page:

{{smaller city
|latlong={{subst:#geocode:{{subst:PAGENAME}}, ??|format=float|directional=no}}
|county=
|website=
}}
[[Category:Cities]]

This is intended for small and medium sized cities.