Module:Sprintf: Revision history

Jump to navigation Jump to search
Diff selection: mark the radio boxes of the versions to compare or click on a revision date to view it. (cur) = difference from current version, (prev) = difference from preceding version,  m = minor edit, → = section edit

17 October 2024

  • curprev 00:1300:13, 17 October 2024Alex talk contribs 396 bytes +396 Created page with "local p = {} function p.main(frame) return p._main(frame:getParent().args) end function p._main(args) local _args = {} for i,v in ipairs(args) do table.insert(_args, v) end return string.format(unpack(_args)) end function p.expr(frame) return p._expr(frame:getParent().args) end function p._expr(args) return string.format(args[1], mw.ext.ParserFunctions.expr(args[2])) end return p"