Jump to content

Module:Yesno/sandbox: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

11 January 2026

  • curprev 15:0815:08, 11 January 2026 Rosie talk contribs 1,191 bytes +1,191 Created page with "--- Allows for consistent treatment of boolean-like wikitext input. --- Uses lookup table, instead of if-elseif-else statement, for efficiency. -- -- If your wiki uses non-ASCII characters for any of "yes", "no", etc., you -- should replace "string.lower" with "mw.ustring.lower" in the -- following line. NOTE: It is _much_ slower. local LOWER = string.lower local TO_NUMBER = tonumber local TYPE = type local BOOLEAN_MAP = { yes = true, y = true, ['true'] = true, t = t..."