Template:he-dagesh-kal/documentation

Usage
This template is fairly simple to use: pass it a letter, and it will return the same letter, adding a dagesh (dot in the middle) if the letter is a letter that accepts d'gashím kalím (soft dageshes). The template is included in various conjugation templates; it allows the same template to be used for, say, &#x20;(makhár) and &#x20;(ganáv) (which are conjugated the same way except for using d'gashím kalím in different places).

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 {ב,ג,ד,כ,פ,ת}, appending a dagesh if and only if one of the comparisons is a match, and evaluating to the result.)
 * The parameter must be the actual Hebrew letter in Unicode, not an (X)HTML numeric character reference. (So, something like ב, not something like &amp;#x5D1;.)
 * 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.