Template:Voicing: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(no old sort keys detected, remove old param 4 detection, add documentation)
(complemented Documentation with example for third parameter)
Line 5: Line 5:
<center><big>'''Documentation'''</big></center>
<center><big>'''Documentation'''</big></center>


'''Syntax with required first and second parameters:'''
'''Syntax with required <font color="orange">first</font> and <font color="green">second</font> parameters:'''
: <tt><nowiki>{{Voicing|5|SSATB}}</nowiki></tt>
: <tt><nowiki>{{Voicing|</nowiki><font color="orange">5</font>|<font color="green">SSATB</font>}}</tt>
which produces the text
which produces the text
: '''Number of voices:''' 5vv&nbsp;&nbsp;&nbsp;'''Voicing:''' [[:Category:SSATB|SSATB]]
: '''Number of voices:''' 5vv&nbsp;&nbsp;&nbsp;'''Voicing:''' [[:Category:SSATB|SSATB]]
and inserts the page in [[:Category:SSATB]]
and inserts the page in [[:Category:SSATB]]


'''Syntax with required parameters and optional sortkey:'''
'''Syntax with required parameters and optional <font color="green">third</font> parameter:'''
: <tt><nowiki>{{Voicing|4|SATB|9=Riddle Song, The}}</nowiki></tt>
: <tt><nowiki>{{Voicing|4|SATB|</nowiki><font color="green">SATB divisi</font>}}</tt>
which produces the text
: '''Number of voices:''' 4vv&nbsp;&nbsp;&nbsp;'''Voicing:''' [[:Category:SATB|SATB divisi]]
and inserts the page in [[:Category:SATB]].
 
'''Syntax with required parameters and optional <font color="green">sortkey</font>:'''
: <tt><nowiki>{{Voicing|4|SATB|</nowiki><font color="green">9=Riddle Song, The</font>}}</tt>
which produces the text
which produces the text
: '''Number of voices:''' 4vv&nbsp;&nbsp;&nbsp;'''Voicing:''' [[:Category:SATB|SATB]]
: '''Number of voices:''' 4vv&nbsp;&nbsp;&nbsp;'''Voicing:''' [[:Category:SATB|SATB]]
and inserts the page in [[:Category:SATB]], sorted under "Riddle Song, The".
and inserts the page in [[:Category:SATB]], sorted under "Riddle Song, The".
'''Both optional third parameter and sortkey may be used together.'''


</div>[[Category:Templates|{{PAGENAME}}]]</noinclude>
</div>[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 21:32, 29 May 2008

Number of voices: {{{1}}}vv   Voicing: [[:Category:{{{2}}}|{{{2}}}]]


Documentation

Syntax with required first and second parameters:

{{Voicing|5|SSATB}}

which produces the text

Number of voices: 5vv   Voicing: SSATB

and inserts the page in Category:SSATB

Syntax with required parameters and optional third parameter:

{{Voicing|4|SATB|SATB divisi}}

which produces the text

Number of voices: 4vv   Voicing: SATB divisi

and inserts the page in Category:SATB.

Syntax with required parameters and optional sortkey:

{{Voicing|4|SATB|9=Riddle Song, The}}

which produces the text

Number of voices: 4vv   Voicing: SATB

and inserts the page in Category:SATB, sorted under "Riddle Song, The".

Both optional third parameter and sortkey may be used together.