Difference between revisions of "Template:Smaller city"

From Transit.Wiki
m
m
(7 intermediate revisions by the same user not shown)
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
Line 10: Line 10:
 
|[[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=leaflet|layers=HERE.Street|overlaylayers=OpenMapSurfer.AdminBounds}}</div>}}
+
|format=leaflet|layers=HERE.Street}}</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>|default={{#ask: [[DAR area::{{PAGENAME}}]]| format=template|template=Liststn intercity bus| ?rfull=| ?to=| link=none| intro=<div><h2>Local transit</h2>| outro=</div> |default=}}}}<!--
 +
 
 
-->{{#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>}}<!--
  
 
-->{{#ask:[[City::{{{alternate city name|{{PAGENAME}}}}}]] [[Category:Rail stations]]|?rname=|?served by=|link=none|sep=,|format=ul|template=liststn| intro=<div><h2>Rail station</h2>| outro=</div>}}<!--
 
-->{{#ask:[[City::{{{alternate city name|{{PAGENAME}}}}}]] [[Category:Rail stations]]|?rname=|?served by=|link=none|sep=,|format=ul|template=liststn| intro=<div><h2>Rail station</h2>| outro=</div>}}<!--
  
-->{{#ask: [[Place.City::{{PAGENAME}}]] [[rtype::intercity bus||airporter]]
+
-->{{#ask: [[Place.City::{{PAGENAME}}||Place::{{PAGENAME}}]] [[rtype::intercity bus||airporter]] OR [[Place::{{PAGENAME}}]] [[rtype::intercity bus||airporter]]
 
| format=template|template=Liststn intercity bus| ?rfull=| ?to=|?greyhound stop=| link=none| intro=<div><h2>Intercity bus</h2>| outro=</div>}}<!--
 
| format=template|template=Liststn intercity bus| ?rfull=| ?to=|?greyhound stop=| link=none| intro=<div><h2>Intercity bus</h2>| outro=</div>}}<!--
  
Line 25: Line 26:
 
}}<!--
 
}}<!--
  
-->{{#ask:[[City::{{{alternate city name|{{PAGENAME}}}}}]] [[Category:Points of interest]] OR [[City::{{{alternate city name|{{PAGENAME}}}}}]] [[Category:Areas]]|format=ul| intro=<h2>Points of interest</h2>| default={{#ask: [[Place::{{PAGENAME}}]] OR [[DAR area::{{PAGENAME}}]]| format=template| template=listlines4a| ?rfull| ?to| link=none| sort=provider,rnum,rlet| intro=<h2>Bus</h2>}}}}
+
-->{{#ask:[[City::{{{alternate city name|{{PAGENAME}}}}}]] [[Category:Points of interest]] OR [[City::{{{alternate city name|{{PAGENAME}}}}}]] [[Category:Areas]]|format=ul| intro=<h2>Points of interest</h2>| default={{Morebus-for-city}}}}
 
<!--
 
<!--
  

Revision as of 04:04, 15 July 2021

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.