Module:Page reports

MyWikiBiz, Author Your Legacy — Friday November 15, 2024
Jump to navigationJump to search

Documentation for this module may be created at Module:Page reports/doc

--In development. See Template:Page reports.
local p = {};

function p.demo( frame )
    local origArgs
    if frame == mw.getCurrentFrame() then
        origArgs = frame:getParent().args
        for k, v in pairs( frame.args ) do
            origArgs = frame.args
            break
        end
    else
        origArgs = frame
    end
 
    return "hello world" .. origArgs[1]
end

return p