Jump to content

Module:Yesno: Difference between revisions

m
Duplo "n" eliminado
m (7 revisions imported: importing all languages)
pt>CaiusSPQR
m (Duplo "n" eliminado)
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 == 'onsim'
or val == 'offs'
or val == 'verdadeiro'
or val == 'yes'
or val == 'y'
or val == 'true'
or val == 't'
or val == 'on'
or tonumber(val) == 1
then
return true
elseif val == false
or val == 'não'
or val == 'nao'
or val == 'falso'
or val == 'no'
or val == 'n'
or val == 'false'
or val == 'f'
or val == 'off'
or tonumber(val) == 0
then
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.