Difference between revisions of "Template:Smaller city"

From Transit.Wiki
m
m
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:{{{website|}}}|:[{{{website}}} Web site]}}{{#if:{{{latlong|}}}|[[City latlong::{{{latlong|}}}| ]]}}
 
{{#if:{{{website|}}}|:[{{{website}}} Web site]}}{{#if:{{{latlong|}}}|[[City latlong::{{{latlong|}}}| ]]}}
  

Revision as of 14:54, 28 November 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.