Module:Copied: Difference between revisions

Content deleted Content added
Fix invalid namespacing when using mergedFrom outside of Article space (Per edit request)
Restore mergedFrom image (and continue to protest against god modules and in favor of simple wikitext)
Line 200:
 
local function renderBanner(args)
local image
if args.mergedFrom then
image = "[[Image:Mergefrom.svg|50px|alt=|link=]]"
else
image = '[[File:Splitsection.svg|frameless|upright=0.23|link=|alt=]]',
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)
})