Module:Yesno: Difference between revisions
Jump to navigation
Jump to search
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..." |
MeowyCats2 (talk | contribs) m 67 revisions imported |
||
(37 intermediate revisions by 27 users not shown) | |||
Line 14: | Line 14: | ||
or val == 'true' | or val == 'true' | ||
or val == 't' | or val == 't' | ||
or val == 'on' | |||
or tonumber(val) == 1 | or tonumber(val) == 1 | ||
then | then | ||
Line 22: | Line 23: | ||
or val == 'false' | or val == 'false' | ||
or val == 'f' | or val == 'f' | ||
or val == 'off' | |||
or tonumber(val) == 0 | or tonumber(val) == 0 | ||
then | then |