Difference between revisions of "Template:Smaller city"

From Transit.Wiki
m
Line 4: Line 4:
  
 
{{#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|}}}|service=leaflet|layers=HERE.Street|overlaylayers=OpenMapSurfer.AdminBounds|zoom=11}}</div>
+
| <div class=regmap>{{#display_map:{{{latlong|}}}|service=leaflet|layers=HERE.Street|zoom=11}}</div>
 
| <div class=regmap>{{#compound_query:[[City::{{{alternate city name|{{PAGENAME}}}}}]][[Category:Points of interest]];icon=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

Revision as of 14:48, 25 January 2020

Usage - Enter the following code to a city page:

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

This is intended for small and medium sized cities.