Module:Copied/sandbox: Difference between revisions

Content deleted Content added
avoid super generic class name
fromlink?
Tag: Reverted
Line 1:
local MessageBox = require('Module:Message box')
local mSectionLink = require('Module:Section link')
 
 
local p = {}
Line 7:
local from_oldid = args["from_oldid"] or args["from_oldid1"] or ""
local from = args["from"] or args["from1"] or ""
local fromlink = mSectionLink._main(from)
local to = args["to"] or args["to1"] or ""
local date = args["date"] or args["date1"] or ""
Line 15 ⟶ 16:
text = string.format("%s [%s this version] of", text, tostring(mw.uri.fullUrl(from, {oldid=from_oldid} )))
end
text = string.format("%s [[%s]]",text,fromfromlink)
if (merge == "yes") or not (afd == "") then
text = string.format("%s was merged into",text)