Content deleted Content added
Add a fallback for no/bad arguments into |from= when mergedFrom is true |
m sync to live |
||
Line 34:
to = mw.title.getCurrentTitle().subjectPageTitle.fullText
end
text = string.format("%s [[:%s]]", text, to)
local diff = args["diff"] or args["diff1"]
local to_diff = args["to_diff"] or args["to_diff1"]
Line 91:
to = mw.title.getCurrentTitle().subjectPageTitle.fullText
end
text = string.format("%s[%s history]) → [[:%s]]",text,tostring(mw.uri.fullUrl(from, {action = "history"} )), to)
local diff = args["diff" .. i]
Line 200:
local function renderBanner(args)
local image
if args.mergedFrom then
image = "[[Image:Mergefrom.svg|50px|alt=|link=]]"
else
end
return MessageBox.main('tmbox', {
class = "copiednotice",
small = args["small"],
image = image,
▲ image = '[[File:Splitsection.svg|frameless|upright=0.23|link=|alt=]]',
text = BannerText(args)
})
|