Template:he-ot-lo-sofit/documentation
Usage
[edit]This template is fairly simple to use: pass it a parameter, and it will evaluate right back to that parameter, unless its parameter is the final form of a letter (that is, an element of {ך
,ם
,ן
,ף
,ץ
}), in which case it will return the corresponding non-final form. 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:
- The parameter must be the actual Hebrew letter in Unicode, not an (X)HTML numeric character reference. (So, something like
ך
, not something likeך
.) - 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.
(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 final form, producing the right value if one of these comparisons is a match, and otherwise evaluating to the value of the parameter.)