Board Thread:Lua Help/@comment-25357967-20160323183254/@comment-11733175-20160324000440

You need to use  to access arguments from template usage.

// template usage

// template:example

// module:example local p = {}

function p.main(frame) local args = frame.getParent.args

-- do stuff with args here

return something end

return p

If you want to use  you need a more complicated setup

// usage

// template:example

// module:example local p = {}

function p.main(frame) local args = frame.args

-- do something with args here

return something end

return p

To address your side note, you want something like local p = {} local data = mw.loadData('Module:Platforms/data')

function p.main(frame) local args = frame:getParent.args local ret = ''

-- assuming all args are numbered for _, v in ipairs(args) do       v = v:lower

if v in data then ret = ret .. data[v] end end

return ret end

return p