Template:NumParts: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(counts the number of parts in a voicing ... eg. {{NumParts|SSAT.ATTB}} = 8)
 
m (Text replace - "{{PAGENAME}}" to "Category:Templates")
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{#expr: {{#len: {{#explode: {{{1|}}}|.|0}}}}
{{#len:{{#replace:{{{1|}}}|.|}}}}<noinclude>
+ {{#len: {{#explode: {{{1|}}}|.|1}}}}
[[Category:Templates]]
+ {{#len: {{#explode: {{{1|}}}|.|2}}}}
+ {{#len: {{#explode: {{{1|}}}|.|3}}}}
+ {{#len: {{#explode: {{{1|}}}|.|4}}}}
+ {{#len: {{#explode: {{{1|}}}|.|5}}}} }}
<noinclude>
[[Category:Templates|{{PAGENAME}}]]
{{prot-temp}}
{{prot-temp}}
{{DisplayBox
{{DisplayBox
Line 13: Line 7:
returns 8.
returns 8.
}}
}}
</noinclude>

Latest revision as of 06:44, 1 June 2015

0

Usage: This template returns the number of parts in a voicing specification. For example,

{{NumParts|SSAT.ATTB}}

returns 8.