Difference between revisions of "Template:Town queries"

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

Latest revision as of 14:59, 26 February 2014