Difference between revisions of "Template:Smaller city"
m |
m (Text replacement - "Transit guide to" to "Public transportation guide for") |
||
(One intermediate revision 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:{{{region|}}}|:Region: {{#arraydefine:regions|{{{region|}}}|,|unique}}{{#arrayprint:regions|, |$1|[[In region::$1]]}}}} | {{#if:{{{region|}}}|:Region: {{#arraydefine:regions|{{{region|}}}|,|unique}}{{#arrayprint:regions|, |$1|[[In region::$1]]}}}} | ||
− | {{#if:{{{latlong|}}}|{{#Widget:Bikemap|latlong={{{latlong|}}}|pagename={{PAGENAME}}}} [[City latlong::{{{latlong|}}}| ]]}} | + | {{#if:{{{latlong|}}}|See {{#Widget:Bikemap|latlong={{{latlong|}}}|pagename={{PAGENAME}}}} [[City latlong::{{{latlong|}}}| ]]}} |
{{#if:{{{website|}}}|:[{{{website}}} Web site]}} | {{#if:{{{website|}}}|:[{{{website}}} Web site]}} | ||
Line 32: | Line 32: | ||
-->{{#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><!-- | -->{{#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> |
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.