Module:Report: Difference between revisions
Appearance
m Protected "Module:Report" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
local getArgs = require('Module:Arguments').getArgs | local getArgs = require('Module:Arguments').getArgs | ||
local args = getArgs(frame) | local args = getArgs(frame) | ||
-- Debugging: print the arguments to check | |||
mw.log("args.text = " .. tostring(args.text)) | |||
mw.log("args.id = " .. tostring(args.id)) | |||
mw.log("args.class = " .. tostring(args.class)) | |||
-- Default arguments for the button | -- Default arguments for the button | ||
Line 13: | Line 18: | ||
-- Pass the arguments to the clickable button 2 module | -- Pass the arguments to the clickable button 2 module | ||
return mClickableButton2. | return mClickableButton2.main(frame) | ||
end | end | ||
return p | return p |
Latest revision as of 03:16, 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)
-- Debugging: print the arguments to check
mw.log("args.text = " .. tostring(args.text))
mw.log("args.id = " .. tostring(args.id))
mw.log("args.class = " .. tostring(args.class))
-- 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.main(frame)
end
return p