Modul:Check for unknown parameters: Unterschied zwischen den Versionen

keine Bearbeitungszusammenfassung
(disable ignoreblank in preview)
Keine Bearbeitungszusammenfassung
Zeile 27: Zeile 27:
local ispreview = frame:preprocess( "{{REVISIONID}}" ) == "" and 1 or 0
local ispreview = frame:preprocess( "{{REVISIONID}}" ) == "" and 1 or 0
if ispreview then ignoreblank = nil end


-- create the list of known args, regular expressions, and the return string
-- create the list of known args, regular expressions, and the return string
Zeile 69: Zeile 68:
end
end
end
end
if not knownflag and ( not ignoreblank or isnotempty(v) )  then
if (not knownflag) and ispreview or ( (not ignoreblank) and (not isnotempty(v)) )  then
k = mw.ustring.gsub(k, '[^%w\-_ ]', '?')
k = mw.ustring.gsub(k, '[^%w\-_ ]', '?')
addresult(k)
addresult(k)
Anonymer Benutzer