Jump to content

Module:Redirect-multi: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Something experimental to better handle edge cases…
(No difference)

Revision as of 20:16, 12 May 2016

local mRedirectHatnote = require('Module:Redirect hatnote')
local mArguments = require('Module:Arguments')
local p = {}

function p.redirectMulti (frame)
	local args = mArguments.getArgs(frame)
	local numRedirects = tonumber(table.remove(args, 1)) or 1
	local options = {selfref = args.selfref}
	return mRedirectHatnote._redirect(args, numRedirects, options)
end

return p