Jump to content

Module:Multiple numbered diffs

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Remsense (talk | contribs) at 14:08, 7 May 2025. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

require('strict')

local p = {}

function p.Diffs(frame)
	-- load arguments module to simplify handling of args
	local getArgs = require('Module:Arguments').getArgs
	
	local args = getArgs(frame)
	return p._Diffs(args)
end
	
function p._Diffs(args)
	local out = ""
	for k, v in args do
		out = out .. "{{Diff2|" .. k .. "}}"
	end
	return out
end

return p