Template:Voicing: Difference between revisions
Jump to navigation
Jump to search
Documentation
(More categories) |
(Removed extraneous ;) |
||
Line 9: | Line 9: | ||
|{{#if:{{#explode:{{{2}}}|,|4}} |'''Voicings:''' {{vcat|{{#explode:{{{2}}}|,|0}}}}, {{vcat|{{#explode:{{{2}}}|,|1}}}}, {{vcat|{{#explode:{{{2}}}|,|2}}}}, {{vcat|{{#explode:{{{2}}}|,|3}}}} or {{vcat|{{#explode:{{{2}}}|,|4}}}} | |{{#if:{{#explode:{{{2}}}|,|4}} |'''Voicings:''' {{vcat|{{#explode:{{{2}}}|,|0}}}}, {{vcat|{{#explode:{{{2}}}|,|1}}}}, {{vcat|{{#explode:{{{2}}}|,|2}}}}, {{vcat|{{#explode:{{{2}}}|,|3}}}} or {{vcat|{{#explode:{{{2}}}|,|4}}}} | ||
|{{#if:{{#explode:{{{2}}}|,|3}} |'''Voicings:''' {{vcat|{{#explode:{{{2}}}|,|0}}}}, {{vcat|{{#explode:{{{2}}}|,|1}}}}, {{vcat|{{#explode:{{{2}}}|,|2}}}} or {{vcat|{{#explode:{{{2}}}|,|3}}}} | |{{#if:{{#explode:{{{2}}}|,|3}} |'''Voicings:''' {{vcat|{{#explode:{{{2}}}|,|0}}}}, {{vcat|{{#explode:{{{2}}}|,|1}}}}, {{vcat|{{#explode:{{{2}}}|,|2}}}} or {{vcat|{{#explode:{{{2}}}|,|3}}}} | ||
|{{#if:{{#explode:{{{2}}}|,|2}} |'''Voicings:''' {{vcat|{{#explode:{{{2}}}|,|0}}}}, {{vcat|{{#explode:{{{2}}}|,|1}}}} or {{vcat|{{#explode:{{{2}}}|,|2}}}} | |{{#if:{{#explode:{{{2}}}|,|2}} |'''Voicings:''' {{vcat|{{#explode:{{{2}}}|,|0}}}}, {{vcat|{{#explode:{{{2}}}|,|1}}}} or {{vcat|{{#explode:{{{2}}}|,|2}}}} | ||
|{{#if:{{#explode:{{{2}}}|,|1}} |'''Voicings:''' {{vcat|{{#explode:{{{2}}}|,|0}}}} or {{vcat|{{#explode:{{{2}}}|,|1}}}} | |{{#if:{{#explode:{{{2}}}|,|1}} |'''Voicings:''' {{vcat|{{#explode:{{{2}}}|,|0}}}} or {{vcat|{{#explode:{{{2}}}|,|1}}}} | ||
|'''Voicing:''' {{#if:{{{3|}}} | {{vcat|{{{2}}}|{{{3}}}}} | {{vcat|{{{2}}}}} }} }} }} }} }} }}<!-- else --> | |'''Voicing:''' {{#if:{{{3|}}} | {{vcat|{{{2}}}|{{{3}}}}} | {{vcat|{{{2}}}}} }} }} }} }} }} }}<!-- else --> |
Revision as of 19:23, 5 July 2021
This high-risk template has been protected from editing to prevent vandalism. Please use the talk page to ask an administrator about making an edit to change this template. |
This template is intended for use in a work page, to display the number of voices and the voicing of the original work. It has two required parameters and two optional parameters.
Parameters
- 1. Number of voices. An integer number (42 or less) or combination of integer numbers with possible punctuation; the letters vv will be displayed to the end of what you enter.
- This parameter is not standardized: but it is recommended to use one integer (e.g., 8 or 16), and explain further in following parameters.
- 2. Identification of parts. A string of letters only the letters S A T B, with no spaces. It is possible to use one of two punctuation marks within the string: period (.) or comma (,).
- Periods indicate multiple choirs (e.g., SATTB.SATTB.SATTB – three five-voice choirs), which will display as written; in this case, the total number of letters should be the number in the first parameter (15 in this example). Assigns page to a category of the same name (SATTB.SATTB.SATTB in this example), and to a category for number of voices (15-part choral music in this example).
- Commas indicate up to six alternate voicings (e.g., SAT,SAB,SST), which will display with or between; the number of letters delimited by commas should be the same, which is the number in the first parameter (3 in this example). Assigns page to all the categories delimited by the commas (SAT, SAB, and SST in this example), and to a category for number of voices (3-part choral music in this example).
- 3. Optional substitute text. Plain text that will display for the category specified in the second parameter. Cannot include a link or a template.
- Please do not use special characters (such as & # $ / \ | [ ] ).
- add=. Text that will display after the voicing. It could include links or templates. Please do not use special characters.
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 and category:5-part choral music
- {{Voicing|3|ATB,SSA,STB}}
- which produces the text
- and inserts the page in category:ATB, category:SSA, category:STB, and category:3-part choral music
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 and category:4-part choral music
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
- and inserts the page in category:SATBB, category:5-part choral music, and category:Descants