Jump to content

Module:Report: Difference between revisions

From nUSA Wiki
m Protected "Module:Report" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
No edit summary
Line 13: Line 13:
      
      
     -- Pass the arguments to the clickable button 2 module
     -- Pass the arguments to the clickable button 2 module
     return mClickableButton2.luaMain(args)
     return mClickableButton2.main(frame)
end
end


return p
return p

Revision as of 03:15, 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.main(frame)
end

return p