Difference between revisions of "Template:Smaller city"
m |
m (Text replacement - "=mm_20_red.png" to "=images/f/f5/Mm_20_red.png") |
||
Line 4: | Line 4: | ||
{{#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> | ||
− | | <div class=regmap>{{#compound_query:[[City::{{{alternate city name|{{PAGENAME}}}}}]][[Category:Points of interest]];icon= | + | | <div class=regmap>{{#compound_query:[[City::{{{alternate city name|{{PAGENAME}}}}}]][[Category:Points of interest]];icon=images/f/f5/Mm_20_red.png |
|[[City::{{{alternate city name|{{PAGENAME}}}}}]][[Category:Rail stations]];icon=Rail20.png | |[[City::{{{alternate city name|{{PAGENAME}}}}}]][[Category:Rail stations]];icon=Rail20.png | ||
|[[City::{{{alternate city name|{{PAGENAME}}}}}]][[-Ferry::+]];icon=Ferry20.png; | |[[City::{{{alternate city name|{{PAGENAME}}}}}]][[-Ferry::+]];icon=Ferry20.png; |
Revision as of 12:37, 16 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.