Template:VoiceCode: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(Multireplace -> replaceset)
(Added categories)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#replaceset:{{{1|}}}|S=1|A=2|T=3|B=4}}<noinclude>
{{#replaceset:{{{1|}}}|S=1|A=2|T=3|B=4}}<noinclude>
[[Category:Templates]]
{{prot-temp}}
{{prot-temp}}
{{DisplayBox
{{DisplayBox
Line 7: Line 6:
returns the string <tt>{{VoiceCode|SAT.SAB.ATB}}</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