Difference between revisions of "Template:Smaller city"
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|, |$1|[[In region::$1]]}}}} | {{#if:{{{region|}}}|:Region: {{#arraydefine:regions|{{{region|}}}|,|unique}}{{#arrayprint:regions|, |$1|[[In region::$1]]}}}} | ||
− | {{#if:{{{website|}}}|:[{{{website}}} Web site]}}{{#if:{{{latlong|}}}|[[City latlong::{{{latlong|}}}| ]]}} | + | {{#if:{{{website|}}}|:[{{{website}}} Web site]}}{{#if:{{{latlong|}}}|[[City latlong::{{{latlong|}}}| ]] {{#Widget:Bikemap|latlong={{{latlong|}}}|pagename={{PAGENAME}}}}}} |
{{#ifexpr: {{#ask: [[City::{{{alternate city name|{{PAGENAME}}}}}]]|format=count}} < 1 | {{#ifexpr: {{#ask: [[City::{{{alternate city name|{{PAGENAME}}}}}]]|format=count}} < 1 |
Revision as of 00:53, 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.