Difference between revisions of "Template:Town queries"
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
+ | {{{ | ||
+ | townName = {{#str:replace|{{PAGENAME}}|^[A-Z][A-Z]-\S+ |}} | ||
+ | }}} | ||
{{if2|1= | {{if2|1= | ||
<div class="venues tab active"> | <div class="venues tab active"> | ||
<h2>Venues</h2><div class="tab-content"> | <h2>Venues</h2><div class="tab-content"> | ||
|2= | |2= | ||
− | {{#ask: [[Category:Venues]] [[ | + | {{#ask: [[Category:Venues]] [[TownName::{{{townName}}}]] |
|?Street | |?Street | ||
|?Town | |?Town | ||
Line 20: | Line 23: | ||
<h2>Museums</h2><div class="tab-content"> | <h2>Museums</h2><div class="tab-content"> | ||
|2= | |2= | ||
− | {{#ask: [[Category:Museums]] [[ | + | {{#ask: [[Category:Museums]] [[TownName::{{{townName}}}]] |
|?Street | |?Street | ||
|?Town | |?Town | ||
Line 36: | Line 39: | ||
<h2>Monuments and sites</h2><div class="tab-content"> | <h2>Monuments and sites</h2><div class="tab-content"> | ||
|2= | |2= | ||
− | {{#ask: [[Category:Monuments and sites]] [[ | + | {{#ask: [[Category:Monuments and sites]] [[TownName::{{{townName}}}]] |
|?Street | |?Street | ||
|?Town | |?Town | ||
Line 52: | Line 55: | ||
<h2>Libraries</h2><div class="tab-content"> | <h2>Libraries</h2><div class="tab-content"> | ||
|2= | |2= | ||
− | {{#ask: [[Category:Libraries]] [[ | + | {{#ask: [[Category:Libraries]] [[TownName::{{{townName}}}]] |
|?Street | |?Street | ||
|?Town | |?Town | ||
Line 68: | Line 71: | ||
<h2>Festivals</h2><div class="tab-content"> | <h2>Festivals</h2><div class="tab-content"> | ||
|2= | |2= | ||
− | {{#ask: [[Category:Festivals]] [[ | + | {{#ask: [[Category:Festivals]] [[TownName::{{{townName}}}]] |
|?Street | |?Street | ||
|?Town | |?Town | ||
Line 84: | Line 87: | ||
<h2>Producers</h2><div class="tab-content"> | <h2>Producers</h2><div class="tab-content"> | ||
|2= | |2= | ||
− | {{#ask: [[Category:Producers]] [[ | + | {{#ask: [[Category:Producers]] [[TownName::{{{townName}}}]] |
|?Street | |?Street | ||
|?Town | |?Town | ||
Line 100: | Line 103: | ||
<h2>Media</h2><div class="tab-content"> | <h2>Media</h2><div class="tab-content"> | ||
|2= | |2= | ||
− | {{#ask: [[Category:Media]] [[ | + | {{#ask: [[Category:Media]] [[TownName::{{{townName}}}]] |
|?Street | |?Street | ||
|?Town | |?Town |