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 13:58, 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)
	out = ""
	for i in args do
		out = out + "{{Diff2|" + i + "}}"
	end
end