Modul:Category handler/shared

Aus skandinavien-wiki.net
< Modul:Category handler
Version vom 7. Juli 2014, 14:13 Uhr von wpen>Mr. Stradivarius (make this output either true or false, and switch indentation to tabs)

Die Dokumentation für dieses Modul kann unter Modul:Category handler/shared/doc erstellt werden

-- This module contains shared functions used by [[Module:Category handler]]
-- and its submodules.

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

return {
	matchesBlacklist = matchesBlacklist
}