Module:Documentation: Difference between revisions

replace another argument name with a hardcoded value
(hardcode "off" in "link box=off" as well, for the benefit of other modules/templates)
(replace another argument name with a hardcoded value)
Line 104:
local function makeInvokeFunc(funcName)
return function (frame)
local headingArg = message('headingArg', 'string')
local args = getArgs(frame, {
valueFunc = function (key, value)
if type(value) == 'string' then
value = value:match('^%s*(.-)%s*$') -- Remove whitespace.
if key == headingArg'heading' or value ~= '' then
return value
else