Módulo:Category handler/data

De Familia Sanchez Arjona
< Módulo:Category handler
Revisión del 04:03 7 jul 2014 de Mr. Stradivarius (Discusión) (create data page to be loaded from Module:Category handler with mw.loadData)

(dif) ← Revisión anterior | Revisión actual (dif) | Revisión siguiente → (dif)
Saltar a: navegación, buscar

La documentación para este módulo puede ser creada en Módulo:Category handler/data/doc

-- This module assembles data to be passed to [[Module:Category handler]] using
-- mw.loadData. This includes the configuration data and whether the current
-- page matches the title blacklist.

local data = require('Module:Category handler/config')
local matchesBlacklist = require('Module:Category handler/shared').matchesBlacklist

data.currentTitleMatchesBlacklist = matchesBlacklist(
	mw.title.getCurrentTitle().prefixedText,
	require('Module:Category handler/blacklist')
) or false

return data