Module:Copied
Appearance
![]() | This Lua module is used on approximately 40,000 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
![]() | This module depends on the following other modules: |
This module implements {{Copied}}. Please see the template page for documentation.
local MessageBox = require('Module:Message box')
function OldAfdMulti:renderBanner()
return MessageBox.main('tmbox', {
small = self.isSmall,
type = 'notice',
image = '[[File:Splitsection.svg|50px]]',
smallimage = 'none',
text = "Text and/or other creative content from [[{{{from}}}]] was copied or moved into [[{{{to}}}]]. The former page's [{{fullurl:{{{from}}}|action=history}} history] now serves to provide attribution for that content in the latter page, and it must not be deleted so long as the latter page exists. The former page's talk page can be accessed at [[]]."
})
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