Module:If match: Revision history

Jump to navigation Jump to search

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.

9 August 2023

  • curprev 10:2910:29, 9 August 2023Admin coral island talk contribs 731 bytes +731 Created page with "local p = {} local lib = require('Module:Feature') function p.main(frame) local args = require('Module:Arguments').getArgs(frame) if lib.isEmpty(args[1]) then return '' end return p._main(args) end function p._main(args) local str = tostring(args[1]) local truthy = args['true'] or '' local falsey = args['false'] or lib.ternary(lib.isNotEmpty(args['index']), 0, '') for I,regex in ipairs(args) do if I == 1 then elseif args[I] and string.match(str, tostring..."