Module:Category handler/data/doc
Appearance
![]() | This is a documentation subpage for Module:Category handler/data. It may contain usage information, categories and other content that is not part of the original module page. |
![]() | This module's documentation is missing, inadequate, or does not accurately describe its functionality or the parameters in its code. Please help to expand and improve it. |
![]() | This Lua module is used in system messages, and on approximately 4,770,000 pages, or roughly 8% of all pages. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid major disruption and server load, any changes should be tested in the module's /sandbox or /testcases subpages, or in your own module sandbox. The tested changes can be added to this page in a single edit. Please discuss changes on the talk page before implementing them. |
-- 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 mShared = require ( 'Module:Category handler/shared' ) local blacklist = require ( 'Module:Category handler/blacklist' ) local title = mw.title.getCurrentTitle() data.currentTitleMatchesBlacklist = mShared.matchesBlacklist( title.prefixedText, blacklist ) data.currentTitleNamespaceParameters = mShared.getNamespaceParameters( title, mShared.getParamMappings() ) return data