Difference between revisions of "Template:Town queries"

From Culture.si
m (1 revision: import dev changes)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
<div class="tabs">
+
{{{
 +
  townName = {{#str:replace|{{PAGENAME}}|^[A-Z][A-Z]-\S+ |}}
 +
}}}
 +
 
 +
* Town: {{{townName}}}
 +
 
 
{{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]] [[Town::{{PAGENAME}}]]
+
{{#ask: [[Category:Venues]] [[TownName::{{{townName}}}]]
 
|?Street
 
|?Street
 
|?Town
 
|?Town
Line 21: Line 26:
 
<h2>Museums</h2><div class="tab-content">
 
<h2>Museums</h2><div class="tab-content">
 
|2=
 
|2=
{{#ask: [[Category:Museums]] [[Town::{{PAGENAME}}]]
+
{{#ask: [[Category:Museums]] [[TownName::{{{townName}}}]]
 
|?Street
 
|?Street
 
|?Town
 
|?Town
Line 37: Line 42:
 
<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]] [[Town::{{PAGENAME}}]]
+
{{#ask: [[Category:Monuments and sites]] [[TownName::{{{townName}}}]]
 
|?Street
 
|?Street
 
|?Town
 
|?Town
Line 53: Line 58:
 
<h2>Libraries</h2><div class="tab-content">
 
<h2>Libraries</h2><div class="tab-content">
 
|2=
 
|2=
{{#ask: [[Category:Libraries]] [[Town::{{PAGENAME}}]]
+
{{#ask: [[Category:Libraries]] [[TownName::{{{townName}}}]]
 
|?Street
 
|?Street
 
|?Town
 
|?Town
Line 69: Line 74:
 
<h2>Festivals</h2><div class="tab-content">
 
<h2>Festivals</h2><div class="tab-content">
 
|2=
 
|2=
{{#ask: [[Category:Festivals]] [[Town::{{PAGENAME}}]]
+
{{#ask: [[Category:Festivals]] [[TownName::{{{townName}}}]]
 
|?Street
 
|?Street
 
|?Town
 
|?Town
Line 85: Line 90:
 
<h2>Producers</h2><div class="tab-content">
 
<h2>Producers</h2><div class="tab-content">
 
|2=
 
|2=
{{#ask: [[Category:Producers]] [[Town::{{PAGENAME}}]]
+
{{#ask: [[Category:Producers]] [[TownName::{{{townName}}}]]
 
|?Street
 
|?Street
 
|?Town
 
|?Town
Line 101: Line 106:
 
<h2>Media</h2><div class="tab-content">
 
<h2>Media</h2><div class="tab-content">
 
|2=
 
|2=
{{#ask: [[Category:Media]] [[Town::{{PAGENAME}}]]
+
{{#ask: [[Category:Media]] [[TownName::{{{townName}}}]]
 
|?Street
 
|?Street
 
|?Town
 
|?Town
Line 112: Line 117:
 
|3=</div></div>
 
|3=</div></div>
 
}}
 
}}
</div>
+
[[Category:Towns|{{{townName}}}]]
[[Category:Towns]]
 
 
</includeonly>
 
</includeonly>

Latest revision as of 14:59, 26 February 2014