Module:Yesno: Difference between revisions
imported>SunSeeker02 (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 uses non-ascii characters for any of "yes", "no", etc., you -- should replace "val:lower()" with "mw.ustring.lower(val)" in the -- following line. val = type(val) == 'string' and val:lower() or val if val == nil then return nil elseif val == true or val == 'yes' or val == 'y' or val =...") |
imported>SunSeeker02 (Blanked the page) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Latest revision as of 02:13, 1 February 2022
Documentation for this module may be created at Module:Yesno/doc