Module:MergeArgs: 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:1200:12, 17 October 2024Alex talk contribs 386 bytes +386 Created page with "-- <pre> local p = {} function p.merge(frame) local origArgs = frame.args local parentArgs = frame:getParent().args local args = {} for k, v in pairs(origArgs) do v = mw.text.trim(tostring(v)) if v ~= '' then args[k] = v end end for k, v in pairs(parentArgs) do v = mw.text.trim(tostring(v)) if v ~= '' then args[k] = v end end return args end -- </pre>"