Difference between revisions of "Module:Template translation"

Jump to navigation Jump to search
m
fix named parameter
>Guillom
(test: Copy args table so we can feed it to expandTemplate)
>Guillom
m (fix named parameter)
Line 38: Line 38:
      
      
     -- Copy args table so we can feed it to expandTemplate
     -- Copy args table so we can feed it to expandTemplate
     local args = {}
     local arguments = {}
     for k, v in pairs( frame.args ) do
     for k, v in pairs( frame.args ) do
         args[k] = v
         arguments[k] = v
     end
     end
      
      
     return frame:expandTemplate{ title = frame.args['template'], args }  
     return frame:expandTemplate{ title = frame.args['template'], args = arguments }  
end
end


return p
return p
Anonymous user

Navigation menu