Template:he-ot-sofit/documentation

Usage
This template is fairly simple to use: pass it a letter, and it will evaluate to the final form of the letter. (For most letters, it means no change.) In the special case that the letter is כ or ך and the second argument is sh'va, it will also add a sh'va. The template is included in various conjugation templates; it allows the same template to be used whether or not the last letter of the root has a distinct final form.

The template has some limitations; to wit: (If either of these constraints is violated, the template simply evaluates to the value of its parameter. This is because the template works by simply comparing its parameter to each element of {כ,ך,מ,נ,פ,<tt>צ</tt>}, producing the right value if one of these is the case, and otherwise evaluating to the value of the parameter.)
 * The parameter must be the actual Hebrew letter in Unicode, not an (X)HTML numeric character reference. (So, something like <tt>כ</tt>, not something like <tt>&amp;#x5DB;</tt>.)
 * The parameter must be just the letter; it must not contain any vowels or whatnot. Any vowels should be added to the result of the template, not its parameter.