-- This module implements
local p = {}
function p.main(frame)
local args
-- If called via #invoke, use the args passed into the invoking template.
-- Otherwise, for testing purposes, assume args are being passed directly in.
if type(frame.getParent) == 'function' then
args = frame:getParent().args
else
args = frame
end
local content={}
for i=1,#args do
table.insert(content,args[i])
end
return mw.text.trim(table.concat(content,'|'))
end
return p