Module:Yesno: Difference between revisions
Content deleted Content added
Enwikipedia>Mr. Stradivarius use the Lua string.lower function instead of mw.ustring.lower; this makes the function around 25x faster |
No edit summary |
||
Line 1:
-- 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
|