Difference between revisions of "Module:Yesno"

1 byte added ,  10:27, 27 April 2014
no edit summary
>Mr. Stradivarius
(use the Lua string.lower function instead of mw.ustring.lower; this makes the function around 25x faster)
Line 1: Line 1:
-- Function allowing for consistent treatment of boolean-like wikitext input.
-- Function allowing for consistent treatment of boolean-like wikitext input.
-- It works similarly to the template {{yesno}}.
-- It works similarly to the template {{yesno}}.
 
return function (val, default)
return function (val, default)
-- If your wiki uses non-ascii characters for any of "yes", "no", etc., you
-- If your wiki uses non-ascii characters for any of "yes", "no", etc., you
Anonymous user