Module:Report: Difference between revisions
Appearance
Created page with "local mClickableButton2 = require('Module:Clickable button 2') local p = {} function p.main(frame) local getArgs = require('Module:Arguments').getArgs local args = getArgs(frame) -- Default arguments for the button args.text = args.text or "Click Me" args.id = args.id or "defaultButtonId" args.class = args.class or "mw-ui-button" -- Pass the arguments to the clickable button 2 module return mClickableButton2.luaMain(args) end..." |
m Protected "Module:Report" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
||
(No difference)
|
Revision as of 03:12, 13 January 2025
Documentation for this module may be created at Module:Report/doc
local mClickableButton2 = require('Module:Clickable button 2')
local p = {}
function p.main(frame)
local getArgs = require('Module:Arguments').getArgs
local args = getArgs(frame)
-- Default arguments for the button
args.text = args.text or "Click Me"
args.id = args.id or "defaultButtonId"
args.class = args.class or "mw-ui-button"
-- Pass the arguments to the clickable button 2 module
return mClickableButton2.luaMain(args)
end
return p