Jump to content

Module:Freeze/same page link

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by PleaseStand (talk | contribs) at 09:33, 6 February 2024 (create module, will use in Template:Freeze/sandbox). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
local p = {}

function p.main(frame)
	local query = string.format('action=history&offset=%s&limit=2', frame.args[1])
	local url = tostring(mw.uri.fullUrl(frame:getParent():getTitle(), query))
	return string.format('<span class="plainlinks">[%s %s]</span>',
		url, frame.args[2])
end

return p