Module:Yesno: Difference between revisions
Content deleted Content added
pt>CaiusSPQR m Duplo "n" eliminado |
m Protected "Module:Yesno": High-risk Lua module ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
||
Line 6:
-- should replace "val:lower()" with "mw.ustring.lower(val)" in the
-- following line.
val = type(val) == 'string' and
if val == nil then
return nil
elseif val == true
or val == 'yes'
or val == 'y'
Line 21 ⟶ 18:
return true
elseif val == false
or val == 'no'
or val == 'n'
|