Board Thread:Lua Help/@comment-24520859-20160103085441/@comment-11733175-20160103121015

The answer to you original question, in the context of a module, would look something like local p = {}

function p.main(frame) local args = frame.getParent.args -- imitates local arg1 = args[2] or args[1]

-- do something with arg1 here end

return p

To clarify the confusing and inconsistent syntax above, e.g., you need to separate arguments with a pipe as you would when using other templates, e.g.  , or the more common.

Hope this helps :)