Module:Check for unknown parameters: Difference between revisions
no edit summary
m>Frietjes No edit summary |
m>Frietjes No edit summary |
||
Line 44: | Line 44: | ||
preview = unknown | preview = unknown | ||
end | end | ||
if ispreview == 1 then unknown = preview end | if ispreview == 1 then | ||
unknown = preview | |||
ignoreblank = false | |||
end | |||
-- adds one result to the output tables | -- adds one result to the output tables | ||
Line 68: | Line 71: | ||
end | end | ||
end | end | ||
if | if not knownflag and ( not ignoreblank or isnotempty(v) ) then | ||
k = mw.ustring.gsub(k, '[^%w\-_ ]', '?') | k = mw.ustring.gsub(k, '[^%w\-_ ]', '?') | ||
addresult(k) | addresult(k) |