Module:ProcessArgs: Difference between revisions

m Protected "Module:ProcessArgs": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
Merge is supposed to overwrite the direct args with the parent args.
Line 34: Line 34:
for k, v in pairs( parentArgs ) do
for k, v in pairs( parentArgs ) do
v = mw.text.trim( v )
v = mw.text.trim( v )
if ( not norm or norm and v ~= '' ) and not args[k] then
if not norm or norm and v ~= '' then
args[k] = v
args[k] = v
end
end