Jump to content

Module:Template test case: Difference between revisions

simplify p.main a little
m (tweak comment)
(simplify p.main a little)
Line 497: Line 497:
-- by the user.
-- by the user.
local func = wrapperConfig and wrapperConfig.func or 'table'
local func = wrapperConfig and wrapperConfig.func or 'table'
local isTableFunc = func == 'table'
local userArgs = require('Module:Arguments').getArgs(frame, {
local userArgs = require('Module:Arguments').getArgs(frame, {
parentOnly = wrapperConfig,
parentOnly = wrapperConfig,
frameOnly = not wrapperConfig,
frameOnly = not wrapperConfig,
trim = not isTableFunc,
trim = func ~= 'table',
removeBlanks = not isTableFunc
removeBlanks = func ~= 'table'
})
})


Cookies help us deliver our services. By using our services, you agree to our use of cookies.