Jump to content

Module:Yesno: Difference between revisions

125 bytes added ,  5 years ago
m
1 revision imported
m (Protected "Module:Yesno": High-risk Lua module ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
m (1 revision imported)
Line 6:
-- should replace "val:lower()" with "mw.ustring.lower(val)" in the
-- following line.
val = type(val) == 'string' and val:mw.ustring.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 18 ⟶ 21:
return true
elseif val == false
or val == 'não'
or val == 'nao'
or val == 'falso'
or val == 'no'
or val == 'n'
13

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.