Module:Copied

This is an old revision of this page, as edited by Trialpears (talk | contribs) at 18:27, 30 October 2019 (more). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

local MessageBox = require('Module:Message box')

argtable = {}

function Copied:renderBannerText()
	if #argtable == 1 then
		text = text + "Text and/or other creative content from [{{fullurl:" + argtable[1]["from"] + "|redirect=no}} " + argtable[1]["from"] + "] from" 
	end
end

function Copied:renderBanner()
	return MessageBox.main('tmbox', {
		small = 'no',
		type = 'notice',
		image = '[[File:Splitsection.svg|50px]]',
		smallimage = 'none',
		text = self:renderBannerText()
	})
end
local p = {}

function p._main(args)
	local copied = renderBanner()
	return tostring(copied)
end

function p.main(frame)
	local args = require('Module:Arguments').getArgs(frame)
	return p._main(args)
end

return p