Difference between revisions of "Module:Template translation"

Jump to navigation Jump to search
test: Copy args table so we can feed it to expandTemplate
>Guillom
m (hmmm)
>Guillom
(test: Copy args table so we can feed it to expandTemplate)
Line 36: Line 36:


function p.debug(frame)
function p.debug(frame)
     return frame:expandTemplate{ title = frame.args['template'], args = { 'arg1', 'arg2', 'arg3' } }  
   
    -- Copy args table so we can feed it to expandTemplate
    local args = {}
    for k, v in pairs( frame.args ) do
        args[k] = v
    end
   
     return frame:expandTemplate{ title = frame.args['template'], args }  
end
end


return p
return p
Anonymous user

Navigation menu