Difference between revisions of "Template:Vcat"

From ChoralWiki
Jump to navigation Jump to search
(example)
(trick to avoid pages out of the Main namespace being categorized)
Line 1: Line 1:
 
<includeonly>{{switch|{{{2|}}}|case: ={{cat|{{{1}}}}}|default={{cat|{{{1}}}|{{{2}}}}}}}<!--
 
<includeonly>{{switch|{{{2|}}}|case: ={{cat|{{{1}}}}}|default={{cat|{{{1}}}|{{{2}}}}}}}<!--
-->{{#if: {{#pos:{{lc:{{{1|}}}}}|solo}}
+
-->{{#if: {{#pos:{{lc:{{{1|}}}}}|solo}}{{NAMESPACE}}
|<!--do nothing-->
+
|<!--if it's a Solo category OR Vcat is used on any namespace other than Main, then do nothing-->
 
|{{#if: {{#pos:{{lc:{{{1|}}}}}|equal}}
 
|{{#if: {{#pos:{{lc:{{{1|}}}}}|equal}}
 
|[[Category:{{#explode:{{{1}}}}}-part choral music]]
 
|[[Category:{{#explode:{{{1}}}}}-part choral music]]

Revision as of 06:10, 20 May 2014

Vcat stands for "VoiceCat". It is loosely based on {{cat}}, similarly creating a link to a category (in this case, a Voicing category). It also categorizes the work in one or more N-part choral music categories when appropriate.

Vcat is primarily used inside templates {{Voicing}} and {{MultiVoicing}}, but can also be used inside works pages, in combination with one of these templates.

Example:

{{Voicing|4|SATB, TTBB}} with {{vcat|SSAATB}} in some parts