Difference between revisions of "Template:Smaller city"

From Transit.Wiki
m (Text replacement - "=mm_20_red.png" to "=images/f/f5/Mm_20_red.png")
(Change map service)
Line 3: Line 3:
  
 
{{#ifexpr: {{#ask: [[City::{{{alternate city name|{{PAGENAME}}}}}]]|format=count}} < 1
 
{{#ifexpr: {{#ask: [[City::{{{alternate city name|{{PAGENAME}}}}}]]|format=count}} < 1
| <div class=regmap>{{#display_map:{{{latlong|}}}|width={{{width|400}}}|height={{{height|400}}}|gkml={{{kml|}}}|zoom=14|kmlrezoom=yes}}</div>
+
| <div class=regmap>{{#display_map:{{{latlong|}}}|service=leaflet|layers=HERE.Street|overlaylayers=OpenMapSurfer.AdminBounds|zoom=14}}</div>
| <div class=regmap>{{#compound_query:[[City::{{{alternate city name|{{PAGENAME}}}}}]][[Category:Points of interest]];icon=images/f/f5/Mm_20_red.png
+
| <div class=regmap>{{#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]];icon=Bus20.png
 
|[[City::{{{alternate city name|{{PAGENAME}}}}}]][[Category:Bus stops]];icon=Bus20.png
 
|[[City::{{{alternate city name|{{PAGENAME}}}}}]][[-Place.rtype::intercity bus]];?latlong;?-Place=Bus;?Served by=Line;?-Busway=Bus;?-Ferry=Ferry;icon=Bus20.png
 
|[[City::{{{alternate city name|{{PAGENAME}}}}}]][[-Place.rtype::intercity bus]];?latlong;?-Place=Bus;?Served by=Line;?-Busway=Bus;?-Ferry=Ferry;icon=Bus20.png
|format=googlemaps|zoomstyle=small|width=100%|height=100%|zoom=12|{{#if:{{{kml|}}}|gkml={{{kml|}}}}}|kmlrezoom=yes}}</div>}}
+
|format=leaflet|layers=HERE.Street|overlaylayers=OpenMapSurfer.AdminBounds}}</div>}}
 
{{#ask:[[Local bus in::{{{county|}}}||{{PAGENAME}}]]|format=ul| intro=<div><h2>Local transit</h2>| outro=</div>}}<!--
 
{{#ask:[[Local bus in::{{{county|}}}||{{PAGENAME}}]]|format=ul| intro=<div><h2>Local transit</h2>| outro=</div>}}<!--
 
-->{{#ask:[[City::{{{alternate city name|{{PAGENAME}}}}}]] [[Category:Transit centers]]|link=none|format=ul|template=liststn| intro=<div><h2>Transit center</h2>| outro=</div>}}<!--
 
-->{{#ask:[[City::{{{alternate city name|{{PAGENAME}}}}}]] [[Category:Transit centers]]|link=none|format=ul|template=liststn| intro=<div><h2>Transit center</h2>| outro=</div>}}<!--

Revision as of 13:31, 24 November 2018

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.