Template:Voicing: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
m (Reverted edits by CHGiffen (Talk); changed back to last version by Carlos)
(updated documentation, and a test)
Line 1: Line 1:
'''Number of voices:''' {{switch|{{{1}}}
'''Number of voices:''' {{switch|{{{1}}}
|case: 1=1v
|case: 1=1v
|default={{{1}}}vv}} &nbsp; '''Voicing:''' [[:Category:{{{2}}}|{{{3|{{{2}}}}}}]]<includeonly>[[Category:{{{2}}}]]</includeonly><noinclude>{{prot-temp}}<br>
|default={{{1}}}vv}} &nbsp; '''Voicing:''' [[:Category:{{{2}}}|{{{3|{{{2}}}}}}]]<includeonly>[[Category:{{{2}}}]] {{#if:{{{3|}}}|[[Category:Good-bad]]}}</includeonly><noinclude>{{prot-temp}}<br>
<div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd">
<div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd">
<center><big>'''Documentation'''</big></center>
<center><big>'''Documentation'''</big></center>
Line 16: Line 16:
: '''Number of voices:''' 4vv&nbsp;&nbsp;&nbsp;'''Voicing:''' [[:Category:SATB|SATB divisi]]
: '''Number of voices:''' 4vv&nbsp;&nbsp;&nbsp;'''Voicing:''' [[:Category:SATB|SATB divisi]]
and inserts the page in [[:Category:SATB]].
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
: '''Number of voices:''' 4vv&nbsp;&nbsp;&nbsp;'''Voicing:''' [[:Category:SATB|SATB]]
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 13:08, 4 August 2009

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.