Difference between revisions of "Template:Voicing"

From ChoralWiki
Jump to navigation Jump to search
m
(Thank you Chuck! Expanded last example; corrected next-to-last example)
Line 26: Line 26:
 
:and inserts the page in [[:category:ATB]], [[:category:SSA]] and [[:category:STB]]  
 
:and inserts the page in [[:category:ATB]], [[:category:SSA]] and [[:category:STB]]  
  
'''Syntax with required parameters and optional <font color="green">third</font> parameter:'''
+
'''Syntax with required parameters and optional <font color="green">third</font> parameter'''
*{{tl|Voicing|4|SATB|4=<font color="green">SATB divisi</font>}}
+
: The third parameter is plain text (no templates or links) which will be the display for the category linked to the <u>second</u> parameter
 +
*<tt><nowiki>{{Voicing|4|SATB|</nowiki><font color="green">SATB divisi</font><nowiki>}}</nowiki></tt>
 
:which produces the text
 
:which produces the text
 
:: '''Number of voices:''' 4vv&nbsp;&nbsp;&nbsp;'''Voicing:''' {{CC|SATB|SATB divisi}}
 
:: '''Number of voices:''' 4vv&nbsp;&nbsp;&nbsp;'''Voicing:''' {{CC|SATB|SATB divisi}}
 
:and inserts the page in [[:category:SATB]]
 
:and inserts the page in [[:category:SATB]]
  
'''Optinal 'add' parameter'''
+
'''Optional 'add' parameter'''
:use <nowiki>add=<any text></nowiki> to append any text (which may include templates such as {{tl|vcat}}) at the end of the voicing specification; e.g.
+
:Use <nowiki>add=<any text></nowiki> to append any text (which may include links or templates such as {{tl|Vcat}}); this parameter will display at the end of the voicing specification; e.g.
 
*<tt><nowiki>{{Voicing|5|SATBB|SATBarB|add=with optional S {{pcat|descant|s}} }}</nowiki></tt>
 
*<tt><nowiki>{{Voicing|5|SATBB|SATBarB|add=with optional S {{pcat|descant|s}} }}</nowiki></tt>
 +
:which produces the text
 +
:: '''Number of voices:''' 5vv&nbsp;&nbsp;'''Voicing:''' {{CC|SATBB|SATBarB}}, with optional S {{CC|descants|descant}}.
  
 
===See also===
 
===See also===

Revision as of 17:06, 5 July 2021

Documentation

Syntax with required first and second parameters:

which produces the text
Number of voices: 5vv   Voicing: SSATB
and inserts the page in category:SSATB
which produces the text
Number of voices: 3vv   Voicings: ATB, SSA or STB
and inserts the page in category:ATB, category:SSA and category:STB

Syntax with required parameters and optional third parameter

The third parameter is plain text (no templates or links) which will be the display for the category linked to the second parameter
  • {{Voicing|4|SATB|SATB divisi}}
which produces the text
Number of voices: 4vv   Voicing: SATB divisi
and inserts the page in category:SATB

Optional 'add' parameter

Use add=<any text> to append any text (which may include links or templates such as {{Vcat}}); this parameter will display at the end of the voicing specification; e.g.
  • {{Voicing|5|SATBB|SATBarB|add=with optional S {{pcat|descant|s}} }}
which produces the text
Number of voices: 5vv  Voicing: SATBarB, with optional S descant.

See also