Difference between revisions of "Template:County"

From Transit.Wiki
m (Text replacement - "=mm_20_red.png" to "=images/f/f5/Mm_20_red.png")
(Change map service)
Line 1: Line 1:
 
<includeonly><div class="regmap">{{#ifexpr: {{#ask: [[City.In county::{{PAGENAME}}]] OR [[In county::{{PAGENAME}}]]|format=count}} < 1
 
<includeonly><div class="regmap">{{#ifexpr: {{#ask: [[City.In county::{{PAGENAME}}]] OR [[In county::{{PAGENAME}}]]|format=count}} < 1
|{{#display_map:center={{PAGENAME}}|width={{{width|400}}}|height={{{height|400}}}|gkml={{{kml|}}}|zoom=8|kmlrezoom=yes}}
+
|{{#display_map:center={{PAGENAME}}|service=leaflet|layers=HERE.Street|overlaylayers=OpenMapSurfer.AdminBounds|zoom=8}}
 
|{{#compound_query:[[City.In county::{{PAGENAME}}]] [[Category:Airports]] OR [[In county::{{PAGENAME}}]] [[Category:Airports]];?latlong=latlong;icon=Icon-airport.png
 
|{{#compound_query:[[City.In county::{{PAGENAME}}]] [[Category:Airports]] OR [[In county::{{PAGENAME}}]] [[Category:Airports]];?latlong=latlong;icon=Icon-airport.png
 
||[[City.In county::{{PAGENAME}}]] [[Category:Amtrak stations]] OR [[In county::{{PAGENAME}}]] [[Category:Amtrak stations]];?latlong=latlong;icon=Rail20.png
 
||[[City.In county::{{PAGENAME}}]] [[Category:Amtrak stations]] OR [[In county::{{PAGENAME}}]] [[Category:Amtrak stations]];?latlong=latlong;icon=Rail20.png
|[[In county::{{PAGENAME}}]];?city latlong=city latlong;limit=200;icon=images/f/f5/Mm_20_red.png
+
|[[In county::{{PAGENAME}}]];?city latlong=city latlong;limit=200;icon=Mm_20_red.png
|format=googlemaps|zoomstyle=small|width={{{width|400}}}|height={{{height|400}}}|gkml={{{kml|}}}|kmlrezoom=yes}}
+
|format=leaflet|layers=HERE.Street|overlaylayers=OpenMapSurfer.AdminBounds}}
 
}}</div>
 
}}</div>
 
{{#if:{{{state|}}}|State: [[In state::{{{state|}}}]]}}
 
{{#if:{{{state|}}}|State: [[In state::{{{state|}}}]]}}

Revision as of 14:13, 24 November 2018


Insert the following onto the page:

{{County
| kml=
| state=
| region=
| website=
}}