உள்ளடக்கத்துக்குச் செல்

Module:Category handler/shared

கட்டற்ற கலைக்களஞ்சியமான விக்கிப்பீடியாவில் இருந்து.
Mr. Stradivarius (பேச்சு | பங்களிப்புகள்) பயனரால் செய்யப்பட்ட 23:46, 6 சூலை 2014 அன்றிருந்தவாரான திருத்தம் (move blacklist-matching function from Module:Category handler)

Documentation for this module may be created at Module:Category handler/shared/doc

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

local blacklist = require('Module:Category handler/blacklist')

local function matchesBlacklist(page)
    if type(page) ~= 'string' then return end
    for i, pattern in ipairs(blacklist) do
        local match = mw.ustring.match(page, pattern)
        if match then
            return match
        end
    end
end

return {
	matchesBlacklist = matchesBlacklist
}
"https://ta.wikipedia.org/w/index.php?title=Module:Category_handler/shared&oldid=2000175" இலிருந்து மீள்விக்கப்பட்டது