Module:Page reports

MyWikiBiz, Author Your Legacy — Thursday November 07, 2024
Revision as of 05:16, 16 July 2021 by Zoran (talk | contribs) (Pywikibot 6.4.0)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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