Module:TextCopy: Difference between revisions

No edit summary
No edit summary
Line 13: Line 13:
local root = mw.html.create()
local root = mw.html.create()
      
      
    root = root:tag('div')
root = root:tag('div')
    root
root
        :addClass('textcopyouter')
:addClass('textcopyouter')
        :tag('div')
:tag('div')
          :addClass('copyleft')
:addClass('copyleft')
        :tag('div')
:tag('div')
          :addClass('textcopyright')
:addClass('textcopyright')
          :wikitext('test')
:wikitext('test')
end
end


return p
return p

Revision as of 17:32, 18 December 2023

Documentation for this module may be created at Module:TextCopy/doc

--
-- This module implements {{TextCopy}}
--
require('Module:No globals')

local p = {}
local getArgs = require('Module:Arguments').getArgs

function p.sidebar(frame, args)
	if not args then
		args = getArgs(frame)
	end
	local root = mw.html.create()
    
	root = root:tag('div')
	root
		:addClass('textcopyouter')
		:tag('div')
			:addClass('copyleft')
		:tag('div')
			:addClass('textcopyright')
			:wikitext('test')
end

return p