Template:NumChoirs: Difference between revisions
Jump to navigation
Jump to search
(counts the number of choirs in a voicing ... eg. {{NumChoirs|SSAT.SATB.ATBB}} = 3) |
(better, more compact code, no limits on number of choirs) |
||
Line 1: | Line 1: | ||
{{#expr: {{# | <includeonly>{{#expr:{{#len:{{{1|}}}}}-{{#len:{{#replace:{{{1|}}}|.|}}}}+1}}</includeonly><noinclude> | ||
}}<noinclude> | |||
[[Category:Templates|{{PAGENAME}}]] | [[Category:Templates|{{PAGENAME}}]] | ||
{{prot-temp}} | {{prot-temp}} | ||
Line 11: | Line 5: | ||
|'''Usage:''' Returns the number of choirs in a voicing specification. Thus, | |'''Usage:''' Returns the number of choirs in a voicing specification. Thus, | ||
<pre>{{NumChoirs|SA.TB.ATB}}</pre> | <pre>{{NumChoirs|SA.TB.ATB}}</pre> | ||
returns 3 | returns 3. | ||
}} | }} |
Revision as of 03:43, 27 June 2010
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. |
Usage: Returns the number of choirs in a voicing specification. Thus,
{{NumChoirs|SA.TB.ATB}}
returns 3.