Module:Yesno: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
Ganaram inukshuk (talk | contribs)
m Undo revision 214713 by Ganaram inukshuk (talk) refactor (hopefully) not necessary
Tag: Undo
 
(2 intermediate revisions by 2 users not shown)
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