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 | 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 | ||
section = '(' .. section .. ')' | |||
end | end | ||