Difference between revisions of "Template:Smaller city"

From Transit.Wiki
m
m
Line 1: Line 1:
<includeonly>{{#if:{{{county|}}}|Located in [[In county::{{{county|}}}]].}}
+
{{#if:{{{county|}}}|Located in [[In county::{{{county|}}}]].}}
 
{{#if:{{{website|}}}|:[{{{website}}} Web site]}}{{#if:{{{latlong|}}}|[[City latlong::{{{latlong|}}}| ]]}}
 
{{#if:{{{website|}}}|:[{{{website}}} Web site]}}{{#if:{{{latlong|}}}|[[City latlong::{{{latlong|}}}| ]]}}
  
<div class=regmap>
 
 
{{#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|}}}|width={{{width|400}}}|height={{{height|400}}}|gkml={{{kml|}}}|zoom=14|kmlrezoom=yes}}</div>
Line 19: Line 18:
 
-->{{#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]]| format=template|template=Liststn intercity bus| ?rfull=| ?to=|?greyhound name=| link=none| intro=<div><h2>Intercity bus</h2>| outro=</div>}}<!--
+
-->{{#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>}}<!--
  
 
-->{{#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}}}}}]]| format=ul| intro=<div><h2>Bike share system</h2>| outro=</div>}}<!--
+
-->{{#ask: [[Bikeshare city::{{{alternate city name|{{PAGENAME}}}}}]]
 +
| 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>}}

Revision as of 23:07, 19 April 2018


Loading map...

Nearby cities and communities

... further resultsThe following coordinate was not recognized: .</includeonly>

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.