Module:Yesno

-- -- Taken from: -- 	https://en.wikipedia.org/wiki/Module:Yesno --		https://runescape.wiki/w/Module:Yesno -- return function (val, default) val = type(val) == 'string' and mw.ustring.lower(val) or val -- Native if val == nil then return nil elseif arg == true then return true elseif arg == false then return false end -- True if val == 'yes' or		val == 'y' or		val == 'true' or		tonumber(val) == 1 then return true end -- False if val == 'no' or		val == 'n' or		val == 'false' or		tonumber(val) == 0 then return false end -- Default return default end