Navigation menu

Module:Yesno: Difference between revisions

From The Kodiak Republic Wiki

recognise "t" for true and "f" for false, per request
(use the Lua string.lower function instead of mw.ustring.lower; this makes the function around 25x faster)
(recognise "t" for true and "f" for false, per request)
Line 13:
or val == 'y'
or val == 'true'
or val == 't'
or tonumber(val) == 1
then
Line 20 ⟶ 21:
or val == 'n'
or val == 'false'
or val == 'f'
or tonumber(val) == 0
then
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.