Difference between revisions of "Template:VoiceCode"

From ChoralWiki
Jump to navigation Jump to search
(returns a numeric code (S=1,A=2,T=3,B=4) so that {{VoiceCode|SSAT.ATBB}} = 1123.2344)
 
(Added categories)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#multireplace:{{{1|}}}|S=1|A=2|T=3|B=4}}<noinclude>
+
{{#replaceset:{{{1|}}}|S=1|A=2|T=3|B=4}}<noinclude>
[[Category:Templates|{{PAGENAME}}]]
 
 
{{prot-temp}}
 
{{prot-temp}}
 
{{DisplayBox
 
{{DisplayBox
 
|'''Usage:'''  This converts S to 1, A to 2, T to 3 and B to 4 in a voicing specification.  For example,
 
|'''Usage:'''  This converts S to 1, A to 2, T to 3 and B to 4 in a voicing specification.  For example,
 
<pre>{{VoiceCode|SAT.SAB.ATB}}</pre>
 
<pre>{{VoiceCode|SAT.SAB.ATB}}</pre>
returns the string <tt>123.124.234</tt>
+
returns the string <tt>{{VoiceCode|SAT.SAB.ATB}}</tt>
 
}}
 
}}
 +
[[Category:DPL templates]]
 +
[[Category:Templates]]
 +
[[Category:Voicing templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 15:37, 6 July 2021

Usage: This converts S to 1, A to 2, T to 3 and B to 4 in a voicing specification. For example,

{{VoiceCode|SAT.SAB.ATB}}

returns the string 123.124.234