Jump to content

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 (not knownflag) and ispreview or ( (not ignoreblank) and (not isnotempty(v)) )  then
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)
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.