Module:Sandbox/Mika/API

local p = {}

function getParams(frame) --combine args

local result = "" local directArgs = frame.args --local parentArgs = frame:getParent.args local args = {}

for _, argType in ipairs{ directArgs, parentArgs } do       for key, val in pairs( argType ) do            args[key] = val end end return args end

function p.makeSyntaxFromParams(frame) local args = getParams(frame)

result = args.param1type .. ' ' .. args.param1name

return result end

function p.makeDocFromParams(frame) local args = getParams(frame)

result = ' - ' .. args.param1desc

return result end

return p