Module:Command: Difference between revisions

No edit summary
Don't output rest of command unless ... is the last parameter
Line 35: Line 35:
end
end
if ( fullCommand or params[1] ) and syntax[commandName] then
if fullCommand and syntax[commandName] then
local param = 0
local param = 0
function parseParams( defaultParams, sub )
function parseParams( defaultParams, sub )
Line 64: Line 64:
if sub then
if sub then
if not hasValue then
if not hasValue then
if fullCommand then
section = '(' .. section .. ')'
section = '(' .. section .. ')'
else
section = nil
end
end
end