Module:Yesno: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
m
38 revisions imported from meta:Module:Yesno
(Created page with "-- Function allowing for consistent treatment of boolean-like wikitext input. -- It works similarly to the template {{yesno}}. return function (val, default) -- If your wiki...")
m (38 revisions imported from meta:Module:Yesno)
 
(34 intermediate revisions by 24 users not shown)
Line 14:
or val == 'true'
or val == 't'
or val == 'on'
or tonumber(val) == 1
then
Line 22 ⟶ 23:
or val == 'false'
or val == 'f'
or val == 'off'
or tonumber(val) == 0
then
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu