Module:Report

Revision as of 03:16, 13 January 2025 by Jord (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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