Difference between revisions of "Template:Vcat"

From ChoralWiki
Jump to navigation Jump to search
(example)
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{switch|{{{2|}}}|case: ={{cat|{{{1}}}}}|default={{cat|{{{1}}}|{{{2}}}}}}}<!--
+
<includeonly>[[:Category:{{{1}}}|{{{2|{{Solo|{{{1}}}}}}}}]] {{#if:{{NAMESPACE}}| |[[Category:{{{1}}}]]}}<!--
-->{{#if: {{#pos:{{lc:{{{1|}}}}}|solo}}
+
-->{{#if: {{#pos:{{lc:{{{1|}}}}}|sol}}{{NAMESPACE}}
|<!--do nothing-->
+
|<!--if it's a Solo category OR Vcat is used on any namespace other than Main, then do not categorize-->
 
|{{#if: {{#pos:{{lc:{{{1|}}}}}|equal}}
 
|{{#if: {{#pos:{{lc:{{{1|}}}}}|equal}}
 
|[[Category:{{#explode:{{{1}}}}}-part choral music]]
 
|[[Category:{{#explode:{{{1}}}}}-part choral music]]
|{{#ifexpr: {{#len:{{#multireplace:{{lc:{{{1}}}}}|.=|unison=u|children=u}}}} < 17
+
|{{#ifexpr: {{#len:{{#replaceset:{{lc:{{{1}}}}}|.=|unison=u|children=u}}}} < 41
|[[Category:{{#len:{{#multireplace:{{lc:{{{1}}}}}|.=|unison=u|children=u}}}}-part choral music]]
+
|[[Category:{{#len:{{#replaceset:{{lc:{{{1}}}}}|.=|unison=u|children=u}}}}-part choral music]]
|[[Category:More than 16 voices]]
+
|[[Category:More than 40 voices]]
}} }} }}</includeonly><noinclude>{{DisplayBox|bgcolor=g|text=
+
}} }} }}</includeonly><noinclude>{{Doc|text=
 
Vcat stands for "VoiceCat". It is loosely based on {{tl|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 stands for "VoiceCat". It is loosely based on {{tl|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.
  
Line 16: Line 16:
 
{{tl|Voicing|4|SATB, TTBB}} with {{tl|vcat|SSAATB}} in some parts
 
{{tl|Voicing|4|SATB, TTBB}} with {{tl|vcat|SSAATB}} in some parts
 
}}
 
}}
 +
[[Category:DPL templates]]
 
[[Category:Templates]]
 
[[Category:Templates]]
 +
[[Category:Voicing templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 14:56, 6 July 2021

Documentation

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