Modul:Category handler/shared: Unterschied zwischen den Versionen
Modul:Category handler/shared (Quelltext anzeigen)
Version vom 7. Juli 2014, 14:13 Uhr
, vor 11 Jahrenmake this output either true or false, and switch indentation to tabs
(allow specifying a custom blacklist) |
(make this output either true or false, and switch indentation to tabs) |
||
| Zeile 3: | Zeile 3: | ||
local function matchesBlacklist(page, blacklist) | local function matchesBlacklist(page, blacklist) | ||
for i, pattern in ipairs(blacklist) do | |||
local match = mw.ustring.match(page, pattern) | |||
if match then | |||
return true | |||
end | |||
end | |||
return false | |||
end | end | ||