Difference between revisions of "Template:County"

From Transit.Wiki
m
m
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{state|}}}|State: [[In state::{{{state|}}}]]}}
+
<includeonly><div class="regmap">{{#ifexpr: {{#ask: [[City.In county::{{PAGENAME}}]] OR [[In county::{{PAGENAME}}]]|format=count}} < 1
 +
|{{#display_map:center={{PAGENAME}}|service=leaflet|layers=HERE.Street|zoom=8}}
 +
|{{#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
 +
|[[In county::{{PAGENAME}}]];?city latlong=city latlong;limit=200;icon=Mm_20_red.png
 +
|format=leaflet|layers=HERE.Street|zoom=8}}
 +
}}</div>
 +
{{#if:{{{state|}}}|State: [[In state::{{{state|}}}]]}}
  
{{#if:{{{region|}}}|Region: [[In region::{{{region|}}}]]}}{{#if:{{{website|}}}|
+
{{#if:{{{name|}}}|{{#set:County name={{{name|}}}}}}}{{#if:{{{region|}}}|Region: {{#arraydefine:regions|{{{region|}}}|,|unique}}{{#arrayprint:regions|,&nbsp;|$1|[[In region::$1]]}}}}{{#if:{{{website|}}}|
 
:[{{{website}}} Web site]}}
 
:[{{{website}}} Web site]}}
  
{{#ask:[[In county::{{{1|{{PAGENAME}}}}}]] [[Category:cities]]|format=ul|limit=250|intro=<h2>Cities</h2>}}
+
{{#ask:[[Local bus in::{{PAGENAME}}]]|format=ul| intro=<h2>Local transit</h2>}}
{{#ask:[[In county::{{{1|{{PAGENAME}}}}}]] [[Category:communities]]|format=ul|intro=<h2>Unincorporated/rural communities</h2>}}
+
{{#ask:[[In county::{{{1|{{PAGENAME}}}}}]] [[Category:cities]]|format=ul|?city name=|link=none|template=Liststn3|limit=250|intro=<h2>Cities</h2>}}
 +
{{#ask:[[In county::{{{1|{{PAGENAME}}}}}]] [[Category:communities]]|format=ul|?city name=|link=none|template=Liststn3|intro=<h2>Unincorporated/rural communities</h2>}}{{#description2:Transit guide to {{PAGENAME}}. Cities, points of interest, bus service and more in {{PAGENAME}}...}}
 
</includeonly>
 
</includeonly>
 +
<noinclude>
 +
Insert the following onto the page:
 +
 +
<pre>{{County
 +
| kml=
 +
| state=
 +
| region=
 +
| website=
 +
}}
 +
</pre>
 +
</noinclude>

Latest revision as of 01:19, 13 February 2020


Insert the following onto the page:

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