Modul:Category handler/data: razlika između inačica
Prijeđi na navigaciju
Prijeđi na pretraživanje
mNema sažetka uređivanja Oznaka: uklanjanje ručnim načinom |
mNema sažetka uređivanja |
||
| Nije prikazana jedna međuinačica | |||
| Redak 1: | Redak 1: | ||
-- | -- Static data table for full CategoryHandler (enwiki‑style) | ||
return { | |||
-- koji parametri u predlošku mapiraju na koje interne ključeve | |||
parameters = { | |||
all = 'all', | |||
other = 'other', | |||
nocat = 'nocat', | |||
categories = 'categories', | |||
subpage = 'subpage', | |||
category2 = 'category2', | |||
demopage = 'demopage', | |||
}, | |||
-- vrijednosti za category2 logiku | |||
category2Yes = 'yes', | |||
category2Negative = 'no', | |||
-- vrijednosti za subpage logiku | |||
subpageNo = 'no', | |||
subpageOnly = 'only', | |||
-- u kojim imenskim prostorima je handler “po defaultu” aktivan | |||
defaultNamespaces = { | |||
[0] = true, -- glavni | |||
[6] = true, -- datoteka | |||
[10] = true, -- predložak | |||
[14] = true, -- kategorija | |||
}, | |||
-- za sada ne koristimo blacklist ni pre‑računate parametre | |||
currentTitleMatchesBlacklist = false, | |||
currentTitleNamespaceParameters = {}, | |||
-- mapiranje imenskih prostora na parametre | |||
mappings = { | |||
[0] = {'main'}, | |||
[1] = {'talk'}, | |||
[2] = {'user'}, | |||
[3] = {'user talk'}, | |||
[4] = {'project'}, | |||
[5] = {'project talk'}, | |||
[6] = {'file'}, | |||
[7] = {'file talk'}, | |||
[8] = {'mediawiki'}, | |||
[9] = {'mediawiki talk'}, | |||
[10] = {'template'}, | |||
[11] = {'template talk'}, | |||
[12] = {'help'}, | |||
[13] = {'help talk'}, | |||
[14] = {'category'}, | |||
[15] = {'category talk'}, | |||
[828] = {'module'}, | |||
[829] = {'module talk'}, | |||
}, | |||
-- predlošci‑omotači (nije kritično, ali je uredno) | |||
wrappers = { | |||
'Predložak:Category handler', | |||
'Predložak:Category handler/numbered', | |||
}, | |||
} | |||
Posljednja izmjena od 15. travanj 2026. u 11:01
Dokumentacija modula
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. |
-- Static data table for full CategoryHandler (enwiki‑style)
return {
-- koji parametri u predlošku mapiraju na koje interne ključeve
parameters = {
all = 'all',
other = 'other',
nocat = 'nocat',
categories = 'categories',
subpage = 'subpage',
category2 = 'category2',
demopage = 'demopage',
},
-- vrijednosti za category2 logiku
category2Yes = 'yes',
category2Negative = 'no',
-- vrijednosti za subpage logiku
subpageNo = 'no',
subpageOnly = 'only',
-- u kojim imenskim prostorima je handler “po defaultu” aktivan
defaultNamespaces = {
[0] = true, -- glavni
[6] = true, -- datoteka
[10] = true, -- predložak
[14] = true, -- kategorija
},
-- za sada ne koristimo blacklist ni pre‑računate parametre
currentTitleMatchesBlacklist = false,
currentTitleNamespaceParameters = {},
-- mapiranje imenskih prostora na parametre
mappings = {
[0] = {'main'},
[1] = {'talk'},
[2] = {'user'},
[3] = {'user talk'},
[4] = {'project'},
[5] = {'project talk'},
[6] = {'file'},
[7] = {'file talk'},
[8] = {'mediawiki'},
[9] = {'mediawiki talk'},
[10] = {'template'},
[11] = {'template talk'},
[12] = {'help'},
[13] = {'help talk'},
[14] = {'category'},
[15] = {'category talk'},
[828] = {'module'},
[829] = {'module talk'},
},
-- predlošci‑omotači (nije kritično, ali je uredno)
wrappers = {
'Predložak:Category handler',
'Predložak:Category handler/numbered',
},
}