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 | local arguments = {} | ||
for k, v in pairs( frame.args ) do | for k, v in pairs( frame.args ) do | ||
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 |