Template:Sif
This template can extract the substring " " (space) from a string. i.e. it can tell if a parameter contains the space character.
It doesn't actually recognize spaces, but will return the "then
" value if the first parameter contains anything besides alphanumerical characters or any of "_;:@$!*(),/
". So in particular, dashes, percent signs, umlauts or any letters outside A-Za-z will trigger the "space recognition" logic.
This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here. |