Difference between revisions of "Template:Smaller city"

From Transit.Wiki
m
m
 
(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|,&nbsp;|$1|[[In region::$1]]}}}}
 
{{#if:{{{region|}}}|:Region: {{#arraydefine:regions|{{{region|}}}|,|unique}}{{#arrayprint:regions|,&nbsp;|$1|[[In region::$1]]}}}}
{{#if:{{{latlong|}}}|[[City latlong::{{{latlong|}}}| ]] {{#Widget:Bikemap|latlong={{{latlong|}}}|pagename={{PAGENAME}}}}}}
+
{{#if:{{{latlong|}}}|See {{#Widget:Bikemap|latlong={{{latlong|}}}|pagename={{PAGENAME}}}} [[City latlong::{{{latlong|}}}| ]]}}
 
{{#if:{{{website|}}}|:[{{{website}}} Web site]}}
 
{{#if:{{{website|}}}|:[{{{website}}} Web site]}}
  

Latest revision as of 00:56, 14 September 2023

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.