Difference between revisions of "Template:Smaller city"
m |
m (Text replacement - "Transit guide to" to "Public transportation guide for") |
||
(37 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{county|}}}|Located in [[In county::{{{county|}}}]].}} | <includeonly>{{#if:{{{county|}}}|Located in [[In county::{{{county|}}}]].}} | ||
− | {{#if:{{{ | + | {{#if:{{{region|}}}|:Region: {{#arraydefine:regions|{{{region|}}}|,|unique}}{{#arrayprint:regions|, |$1|[[In region::$1]]}}}} |
+ | {{#if:{{{latlong|}}}|See {{#Widget:Bikemap|latlong={{{latlong|}}}|pagename={{PAGENAME}}}} [[City latlong::{{{latlong|}}}| ]]}} | ||
+ | {{#if:{{{website|}}}|:[{{{website}}} Web site]}} | ||
− | |||
{{#ifexpr: {{#ask: [[City::{{{alternate city name|{{PAGENAME}}}}}]]|format=count}} < 1 | {{#ifexpr: {{#ask: [[City::{{{alternate city name|{{PAGENAME}}}}}]]|format=count}} < 1 | ||
− | | {{#display_map:{{{latlong|}}}| | + | | <div class=regmap>{{#display_map:{{{latlong|}}}|service=leaflet|layers=HERE.Street|zoom=11}}</div> |
− | | {{#compound_query:[[City::{{{alternate city name|{{PAGENAME}}}}}]][[Category:Points of interest]];icon= | + | | <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}}}}}]][[ | + | |[[City::{{{alternate city name|{{PAGENAME}}}}}]][[-Place.rtype::intercity bus]];?latlong;?-Place=Bus;?Served by=Line;?-Busway=Bus;?-Ferry=Ferry;icon=Bus20.png |
− | |format= | + | |format=leaflet|layers=HERE.Street}}</div>}} |
− | < | + | {{#ask:[[Local bus in::{{{county|}}}||{{PAGENAME}}]] OR [[service area::{{PAGENAME}}]] [[rtype::microtransit]]|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|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:[[City::{{ | + | -->{{#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=|?provider=| 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|sep=,|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}}}}}]] | ||
Line 26: | Line 27: | ||
}}<!-- | }}<!-- | ||
− | -->{{#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>| default={{Morebus-for-city}}}} |
+ | <!-- | ||
− | -->{{#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||?city name=|link=none|template=Liststn3|intro=<h2>Nearby cities and communities</h2>}}</includeonly><!-- |
− | -->{{#description2: | + | -->{{#description2:Public transportation guide for {{PAGENAME}}, located in {{{county|}}}. Transit stations, points of interest, bus service and more in {{PAGENAME}}...}}{{#set:City name={{{name|{{#explode:{{PAGENAME}}|,|0}}}}}}}<noinclude> |
Usage - Enter the following code to a city page: | Usage - Enter the following code to a city page: | ||
<pre> | <pre> | ||
{{smaller city | {{smaller city | ||
|latlong={{subst:#geocode:{{subst:PAGENAME}}, ??|format=float|directional=no}} | |latlong={{subst:#geocode:{{subst:PAGENAME}}, ??|format=float|directional=no}} | ||
+ | |region= | ||
|county= | |county= | ||
|website= | |website= |
Latest revision as of 07:42, 7 May 2024
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.