Difference between revisions of "Template:Town queries"

From Culture.si
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{if2|<h2>Venues<h2>|
+
<includeonly>
{{#ask: [[Category:Venues]] [[Town::{{PAGENAME}}]]
+
{{{
 +
  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 8: Line 18:
 
|format=template
 
|format=template
 
|template=Address book item
 
|template=Address book item
}}}}
+
}}
{{if2|<h2>Museums<h2>|
+
|3=</div></div>
{{#ask: [[Category:Museums]] [[Town::{{PAGENAME}}]]
+
}}
 +
 
 +
{{if2|1=
 +
<div class="museums tab">
 +
<h2>Museums</h2><div class="tab-content">
 +
|2=
 +
{{#ask: [[Category:Museums]] [[TownName::{{{townName}}}]]
 +
|?Street
 +
|?Town
 +
|?Website
 +
|?Email
 +
|?Telephone
 +
|format=template
 +
|template=Address book item
 +
}}
 +
|3=</div></div>
 +
}}
 +
 
 +
{{if2|1=
 +
<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 18: Line 50:
 
|format=template
 
|format=template
 
|template=Address book item
 
|template=Address book item
}}}}
+
}}
{{if2|<h2>Monuments and sites<h2>|
+
|3=</div></div>
{{#ask: [[Category:Monuments and sites]] [[Town::{{PAGENAME}}]]
+
}}
 +
 
 +
{{if2|1=
 +
<div class="libraries tab">
 +
<h2>Libraries</h2><div class="tab-content">
 +
|2=
 +
{{#ask: [[Category:Libraries]] [[TownName::{{{townName}}}]]
 
|?Street
 
|?Street
 
|?Town
 
|?Town
Line 28: Line 66:
 
|format=template
 
|format=template
 
|template=Address book item
 
|template=Address book item
}}}}
+
}}
{{if2|<h2>Libraries<h2>|
+
|3=</div></div>
{{#ask: [[Category:Libraries]] [[Town::{{PAGENAME}}]]
+
}}
 +
 
 +
{{if2|1=
 +
<div class="festivals tab">
 +
<h2>Festivals</h2><div class="tab-content">
 +
|2=
 +
{{#ask: [[Category:Festivals]] [[TownName::{{{townName}}}]]
 
|?Street
 
|?Street
 
|?Town
 
|?Town
Line 38: Line 82:
 
|format=template
 
|format=template
 
|template=Address book item
 
|template=Address book item
}}}}
+
}}
{{if2|<h2>Festivals<h2>|
+
|3=</div></div>
{{#ask: [[Category:Festivals]] [[Town::{{PAGENAME}}]]
+
}}
 +
 
 +
{{if2|1=
 +
<div class="producers tab">
 +
<h2>Producers</h2><div class="tab-content">
 +
|2=
 +
{{#ask: [[Category:Producers]] [[TownName::{{{townName}}}]]
 
|?Street
 
|?Street
 
|?Town
 
|?Town
Line 48: Line 98:
 
|format=template
 
|format=template
 
|template=Address book item
 
|template=Address book item
}}}}
+
}}
{{if2|<h2>Producers<h2>|
+
|3=</div></div>
{{#ask: [[Category:Producers]] [[Town::{{PAGENAME}}]]
+
}}
 +
 
 +
{{if2|1=
 +
<div class="media tab">
 +
<h2>Media</h2><div class="tab-content">
 +
|2=
 +
{{#ask: [[Category:Media]] [[TownName::{{{townName}}}]]
 
|?Street
 
|?Street
 
|?Town
 
|?Town
Line 59: Line 115:
 
|template=Address book item
 
|template=Address book item
 
}}
 
}}
<includeonly>
+
|3=</div></div>
[[Category:Towns]]
+
}}
 +
[[Category:Towns|{{{townName}}}]]
 
</includeonly>
 
</includeonly>

Latest revision as of 14:59, 26 February 2014