Module:Yesno: Difference between revisions
From Mariopedia, a wiki on Mario, Yoshi, Wario, Donkey Kong, Super Smash Bros., and more!
Jump to navigationJump to search
Content deleted Content added
use the Lua string.lower function instead of mw.ustring.lower; this makes the function around 25x faster |
No edit summary |
||
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 |