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

    22 July 2024

    • curprev 12:1412:14, 22 July 2024Admin talk contribs 661 bytes +661 Created page with " local p = {} function table.slice(tbl, first, last, step) local sliced = {} for i = first or 1, last or #tbl, step or 1 do sliced[#sliced+1] = tbl[i] end return sliced end p.slice = table.slice local function count_args(table) local nargs = 0 for num, _ in ipairs(table) do nargs = math.max(num, nargs) end return nargs end function p.ConcatArgs(frame) local pargs = frame:getParent().args local init = tonumber(frame.args["init"]) or frame.arg..."