Open main menu

Changes

31 bytes added ,  22:34, 6 February 2017
m
1 revision imported: Category:Infobox
-- Function allowing for consistent treatment of boolean-like wikitext input.
-- It works similarly to the template {{yesno}}.
return function (val, default)
-- If your wiki uses non-ascii characters for any of "yes", "no", etc., you
or val == 'y'
or val == 'true'
or val == 't'
or tonumber(val) == 1
then
or val == 'n'
or val == 'false'
or val == 'f'
or tonumber(val) == 0
then
4,558

edits