Module:Yesno: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 5: Line 5:
-- should replace "val:lower()" with "mw.ustring.lower(val)" in the
-- should replace "val:lower()" with "mw.ustring.lower(val)" in the
-- following line.
-- following line.
val = (type(val) == "string" and string.gsub(mw.ustring.lower(val), "%s+", "") or val)
val = (type(val) == "string" and mw.ustring.lower(val) or val)
if val == nil then
if val == nil then
return nil
return nil