Difference between revisions of "Template:Smaller city"
m |
m |
||
Line 2: | Line 2: | ||
{{#if:{{{website|}}}|:[{{{website}}} Web site]}}{{#if:{{{latlong|}}}|[[City latlong::{{{latlong|}}}| ]]}} | {{#if:{{{website|}}}|:[{{{website}}} Web site]}}{{#if:{{{latlong|}}}|[[City latlong::{{{latlong|}}}| ]]}} | ||
− | <div class= | + | <div class=regmap> |
{{#ifexpr: {{#ask: [[City::{{{alternate city name|{{PAGENAME}}}}}]]|format=count}} < 1 | {{#ifexpr: {{#ask: [[City::{{{alternate city name|{{PAGENAME}}}}}]]|format=count}} < 1 | ||
| {{#display_map:{{{latlong|}}}|width={{{width|400}}}|height={{{height|400}}}|gkml={{{kml|}}}|zoom=14|kmlrezoom=yes}} | | {{#display_map:{{{latlong|}}}|width={{{width|400}}}|height={{{height|400}}}|gkml={{{kml|}}}|zoom=14|kmlrezoom=yes}} | ||
Line 9: | Line 9: | ||
|[[City::{{{alternate city name|{{PAGENAME}}}}}]][[-Ferry::+]];icon=Ferry20.png; | |[[City::{{{alternate city name|{{PAGENAME}}}}}]][[-Ferry::+]];icon=Ferry20.png; | ||
|[[City::{{{alternate city name|{{PAGENAME}}}}}]][[Category:Bus stops]];?latlong;?-Place=Bus;?Served by=Line;?-Rail=Bus;?-Bus=Bus;?-Busway=Bus;?-Ferry=Ferry;icon=Bus20.png | |[[City::{{{alternate city name|{{PAGENAME}}}}}]][[Category:Bus stops]];?latlong;?-Place=Bus;?Served by=Line;?-Rail=Bus;?-Bus=Bus;?-Busway=Bus;?-Ferry=Ferry;icon=Bus20.png | ||
− | |format=googlemaps|zoomstyle=small|width= | + | |format=googlemaps|zoomstyle=small|width=100%|height=100%|zoom=12|{{#if:{{{kml|}}}|gkml={{{kml|}}}}}|kmlrezoom=yes}}}} |
</div> | </div> | ||
Revision as of 17:44, 6 February 2015
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.