Module:Revision

local p = {}

--original template synstax: --new template syntax: --alternative new template syntax: function p.diff(frame) local page = frame.args.page or frame.args[1] local diff = frame.args.diff or frame.args[2] local oldid = frame.args.oldid or frame.args[3] local label = frame.args.label or frame.args[4] local url = string.format('%s%s/index.php?title=%s&diff=%s&oldid=%s', mw.site.server, mw.site.scriptPath, mw.uri.encode(page, "WIKI"), diff, oldid) return string.format(' [%s %s] ', url, label) end

return p