View source for Module:URL to diff
MyWikiBiz, Author Your Legacy — Friday July 25, 2025
Jump to navigationJump to searchYou do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
-- This module converts Wikipedia diff URLs to the {{diff}} template format.
local newBuffer = require('Module:OutputBuffer')
local p = {}
local function decodeUrl(url)
if type(url) ~= 'string' then
return nil
end
url = mw.uri.new(url)
if not url or url.host ~= 'en.wikipedia.org' then
return nil
end
local data = {}
data.title = url.query.title and mw.uri.decode(url.query.title, 'WIKI')
data.diff = url.query.diff
data.oldid = url.query.oldid
data.diffonly = url.query.diffonly
return data
end
000
1:0
Templates used on this page:
Return to Module:URL to diff.