Module:Check for unknown parameters: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
include non-blank positional in the default, but excluded blank positional in the default
No edit summary
(include non-blank positional in the default, but excluded blank positional in the default)
Line 16:
local pargs = frame:getParent().args
local ignoreblank = isnotempty(frame.args['ignoreblank'])
local checkposshowblankpos = isnotempty(frame.args['checkpositionalshowblankpositional'])
local knownargs = {}
local unknown = frame.args['unknown'] or 'Found _VALUE_, '
Line 73:
addresult(k)
end
elseif checkpostype(k) == 'number' and
type(k) == 'number' and
knownargs[tostring(k)] == nil and
( not ignoreblankshowblankpos or isnotempty(v) )
then
addresult(k)
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu