More actions
Stvorena nova stranica sa sadržajem: »-- This module assembles data to be passed to Module:Category handler using -- mw.loadData. This includes the configuration data and whether the cur...«. |
mNema sažetka uređivanja Oznaka: uklonjeno uređivanje |
||
Redak 3: | Redak 3: | ||
-- page matches the title blacklist. | -- page matches the title blacklist. | ||
local data = require(' | local data = require('Modul:Category handler/config') | ||
local mShared = require(' | local mShared = require('Modul:Category handler/shared') | ||
local blacklist = require(' | local blacklist = require('Modul:Category handler/blacklist') | ||
local title = mw.title.getCurrentTitle() | local title = mw.title.getCurrentTitle() | ||
Inačica od 1. travanj 2022. u 13:32
<templatestyles src="Modul:Dokumentacija/styles.css"></templatestyles>
This module is used in conjunction with the category handler module to manage categories; it is a very important template used on millions of pages.
This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
This modul is used in system messages. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid large-scale disruption, any changes should first be tested in this modul's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this modul. Please discuss any 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('Modul:Category handler/config')
local mShared = require('Modul:Category handler/shared')
local blacklist = require('Modul:Category handler/blacklist')
local title = mw.title.getCurrentTitle()
data.currentTitleMatchesBlacklist = mShared.matchesBlacklist(
title.prefixedText,
blacklist
)
data.currentTitleNamespaceParameters = mShared.getNamespaceParameters(
title,
mShared.getParamMappings()
)
return data