Module:Template test case: Difference between revisions

    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'
    })
    })