Jump to content

Module:Yesno: Difference between revisions

125 bytes removed ,  5 years ago
m
Protected "Module:Yesno": High-risk Lua module ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
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 mw.ustring.val:lower(val) or val
if val == nil then
return nil
elseif val == true
or val == 'sim'
or val == 's'
or val == 'verdadeiro'
or val == 'yes'
or val == 'y'
Line 21 ⟶ 18:
return true
elseif val == false
or val == 'não'
or val == 'nao'
or val == 'falso'
or val == 'no'
or val == 'n'
Cookies help us deliver our services. By using our services, you agree to our use of cookies.