Difference between revisions of "Template:Smaller city"
m |
m |
||
Line 4: | Line 4: | ||
<div class=regmap> | <div class=regmap> | ||
{{#ifexpr: {{#ask: [[City::{{{alternate city name|{{PAGENAME}}}}}]]|format=count}} < 1 | {{#ifexpr: {{#ask: [[City::{{{alternate city name|{{PAGENAME}}}}}]]|format=count}} < 1 | ||
− | | {{#display_map:{{{latlong|}}}|width={{{width|400}}}|height={{{height|400}}}|gkml={{{kml|}}}|zoom=14|kmlrezoom=yes}} | + | | <div class=regmap>{{#display_map:{{{latlong|}}}|width={{{width|400}}}|height={{{height|400}}}|gkml={{{kml|}}}|zoom=14|kmlrezoom=yes}}</div> |
− | | {{#compound_query:[[City::{{{alternate city name|{{PAGENAME}}}}}]][[Category:Points of interest]];icon=mm_20_red.png | + | {{#ask: [[Place::{{PAGENAME}}]] OR [[DAR area::{{same city}}]] |
+ | | format=template| template=listlines4a| ?rfull| ?to| link=none| sort=provider,rnum,rlet| intro=<h2>Bus</h2> | ||
+ | }} | ||
+ | | <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}} | + | |format=googlemaps|zoomstyle=small|width=100%|height=100%|zoom=12|{{#if:{{{kml|}}}|gkml={{{kml|}}}}}|kmlrezoom=yes}}</div> |
− | </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>}}<!-- | ||
Line 18: | Line 19: | ||
-->{{#ask:[[City::{{{alternate city name|{{PAGENAME}}}}}]] [[Category:Rail stations]]|?rname=|?served by=|link=none|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|format=ul|template=liststn| intro=<div><h2>Rail station</h2>| outro=</div>}}<!-- | ||
− | -->{{#ask: [[City::{{PAGENAME}}]] [[Greyhound name::+]] OR [[Place.City::{{PAGENAME}}]] [[rtype::intercity bus||airporter]] | + | -->{{#ask: [[City::{{PAGENAME}}]] [[Greyhound name::+]] OR [[Place.City::{{PAGENAME}}]] [[rtype::intercity bus||airporter]]| format=template|template=Liststn intercity bus| ?rfull=| ?to=|?greyhound name=| link=none| intro=<div><h2>Intercity bus</h2>| outro=</div>}}<!-- |
− | | format=template|template=Liststn intercity bus| ?rfull=| ?to=|?greyhound name=| link=none| intro=<div><h2>Intercity bus</h2>| outro=</div>}}<!-- | ||
-->{{#ask:[[City::{{{alternate city name|{{PAGENAME}}}}}]] [[-Ferry::+]]|?rname=|?-ferry=|link=none|format=ul|template=liststn| intro=<div><h2>Ferry terminals</h2>| outro=</div>}}<!-- | -->{{#ask:[[City::{{{alternate city name|{{PAGENAME}}}}}]] [[-Ferry::+]]|?rname=|?-ferry=|link=none|format=ul|template=liststn| intro=<div><h2>Ferry terminals</h2>| outro=</div>}}<!-- | ||
− | -->{{#ask: [[Bikeshare city::{{{alternate city name|{{PAGENAME}}}}}]] | + | -->{{#ask: [[Bikeshare city::{{{alternate city name|{{PAGENAME}}}}}]]| format=ul| intro=<div><h2>Bike share system</h2>| outro=</div>}}<!-- |
− | | format=ul| intro=<div><h2>Bike share system</h2>| outro=</div> | ||
− | }}<!-- | ||
− | -->{{#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>}}<!-- | + | -->{{#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>}} |
+ | }} | ||
+ | <!-- | ||
-->{{#ask:[[City latlong::{{{latlong|}}} (6 miles)]] [[City latlong::!{{{latlong|}}}]] OR [[Area latlong::{{{latlong|}}} (6 miles)]] [[Category:Large city regions]]|format=ul| intro=<h2>Nearby cities and communities</h2>}}</includeonly><!-- | -->{{#ask:[[City latlong::{{{latlong|}}} (6 miles)]] [[City latlong::!{{{latlong|}}}]] OR [[Area latlong::{{{latlong|}}} (6 miles)]] [[Category:Large city regions]]|format=ul| intro=<h2>Nearby cities and communities</h2>}}</includeonly><!-- |
Revision as of 23:06, 19 April 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.