Module:TextCopy: Difference between revisions
(Created page with "-- -- This module implements {{TextCopy}} -- require('Module:No globals') local p = {} 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') end return p") |
No edit summary |
||
| Line 5: | Line 5: | ||
local p = {} | local p = {} | ||
local getArgs = require('Module:Arguments').getArgs | |||
function p.sidebar(frame, args) | function p.sidebar(frame, args) | ||
Revision as of 17:26, 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')
end
return p