Module:InputBadge: 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.

31 May 2023

  • curprev 09:0609:06, 31 May 2023Crimsongaia talk contribs 533 bytes +533 Created page with "local p = {} function p.drawInputBadge(frame) local wikitext = "" local numInputs = count(frame.args[1], '\\') + 1 local index = 1 for token in string.gmatch(frame.args[1], '([^\\]+)') do input = token wikitext = wikitext .. "<span class=\"input-badge\"><b\>" .. input .. "</b></span>" if index ~= numInputs then wikitext = wikitext .. " or " end index = index + 1 end return wikitext end function count(base, pattern) retu..."