Difference between revisions of "Template:Town queries"
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
− | {{if2|<h2>Venues</h2>| | + | {{{ |
− | {{#ask: [[Category:Venues]] [[ | + | townName = {{#str:replace|{{PAGENAME}}|^[A-Z][A-Z]-\S+ |}} |
+ | }}} | ||
+ | |||
+ | * Town: {{{townName}}} | ||
+ | |||
+ | {{if2|1= | ||
+ | <div class="venues tab active"> | ||
+ | <h2>Venues</h2><div class="tab-content"> | ||
+ | |2= | ||
+ | {{#ask: [[Category:Venues]] [[TownName::{{{townName}}}]] | ||
|?Street | |?Street | ||
|?Town | |?Town | ||
Line 10: | Line 19: | ||
|template=Address book item | |template=Address book item | ||
}} | }} | ||
+ | |3=</div></div> | ||
}} | }} | ||
− | {{if2|<h2>Museums</h2>| | + | {{if2|1= |
− | {{#ask: [[Category:Museums]] [[ | + | <div class="museums tab"> |
+ | <h2>Museums</h2><div class="tab-content"> | ||
+ | |2= | ||
+ | {{#ask: [[Category:Museums]] [[TownName::{{{townName}}}]] | ||
|?Street | |?Street | ||
|?Town | |?Town | ||
Line 22: | Line 35: | ||
|template=Address book item | |template=Address book item | ||
}} | }} | ||
+ | |3=</div></div> | ||
}} | }} | ||
− | {{if2|<h2>Monuments and sites</h2>| | + | {{if2|1= |
− | {{#ask: [[Category:Monuments and sites]] [[ | + | <div class="monuments tab"> |
+ | <h2>Monuments and sites</h2><div class="tab-content"> | ||
+ | |2= | ||
+ | {{#ask: [[Category:Monuments and sites]] [[TownName::{{{townName}}}]] | ||
|?Street | |?Street | ||
|?Town | |?Town | ||
Line 34: | Line 51: | ||
|template=Address book item | |template=Address book item | ||
}} | }} | ||
+ | |3=</div></div> | ||
}} | }} | ||
− | {{if2|<h2>Libraries</h2>| | + | {{if2|1= |
− | {{#ask: [[Category:Libraries]] [[ | + | <div class="libraries tab"> |
+ | <h2>Libraries</h2><div class="tab-content"> | ||
+ | |2= | ||
+ | {{#ask: [[Category:Libraries]] [[TownName::{{{townName}}}]] | ||
|?Street | |?Street | ||
|?Town | |?Town | ||
Line 46: | Line 67: | ||
|template=Address book item | |template=Address book item | ||
}} | }} | ||
+ | |3=</div></div> | ||
}} | }} | ||
− | {{if2|<h2>Festivals</h2>| | + | {{if2|1= |
− | {{#ask: [[Category:Festivals]] [[ | + | <div class="festivals tab"> |
+ | <h2>Festivals</h2><div class="tab-content"> | ||
+ | |2= | ||
+ | {{#ask: [[Category:Festivals]] [[TownName::{{{townName}}}]] | ||
|?Street | |?Street | ||
|?Town | |?Town | ||
Line 58: | Line 83: | ||
|template=Address book item | |template=Address book item | ||
}} | }} | ||
+ | |3=</div></div> | ||
}} | }} | ||
− | {{if2|<h2>Producers</h2>| | + | {{if2|1= |
− | {{#ask: [[Category:Producers]] [[ | + | <div class="producers tab"> |
+ | <h2>Producers</h2><div class="tab-content"> | ||
+ | |2= | ||
+ | {{#ask: [[Category:Producers]] [[TownName::{{{townName}}}]] | ||
|?Street | |?Street | ||
|?Town | |?Town | ||
Line 70: | Line 99: | ||
|template=Address book item | |template=Address book item | ||
}} | }} | ||
+ | |3=</div></div> | ||
}} | }} | ||
− | {{if2|<h2>Media</h2>| | + | {{if2|1= |
− | {{#ask: [[Category:Media]] [[ | + | <div class="media tab"> |
+ | <h2>Media</h2><div class="tab-content"> | ||
+ | |2= | ||
+ | {{#ask: [[Category:Media]] [[TownName::{{{townName}}}]] | ||
|?Street | |?Street | ||
|?Town | |?Town | ||
Line 82: | Line 115: | ||
|template=Address book item | |template=Address book item | ||
}} | }} | ||
+ | |3=</div></div> | ||
}} | }} | ||
− | + | [[Category:Towns|{{{townName}}}]] | |
− | [[Category:Towns]] | ||
</includeonly> | </includeonly> |