Difference between revisions of "Template:County"

From Transit.Wiki
m
m
Line 1: Line 1:
<includeonly>{{#if:{{{kml|}}}|<div class="regmap">{{#compound_query:[[City.In county::{{PAGENAME}}]] [[Category:Airports]] OR [[In county::{{PAGENAME}}]] [[Category:Airports]];?latlong=latlong;icon=Icon-airport.png
+
<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}}
 +
|{{#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;icon=mm_20_red.png
 
|[[In county::{{PAGENAME}}]];?city latlong=city latlong;icon=mm_20_red.png
|format=googlemaps|zoomstyle=small|width={{{width|400}}}|height={{{height|400}}}|gkml={{{kml}}}|kmlrezoom=yes}}</div>}}
+
|format=googlemaps|zoomstyle=small|width={{{width|400}}}|height={{{height|400}}}|gkml={{{kml|}}}|kmlrezoom=yes}}
 +
}}</div>
 
{{#if:{{{state|}}}|State: [[In state::{{{state|}}}]]}}
 
{{#if:{{{state|}}}|State: [[In state::{{{state|}}}]]}}
  

Revision as of 11:29, 17 April 2016


Insert the following onto the page:

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