Jump to content

Module:Yesno: Difference between revisions

no edit summary
m>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: 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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.