https://handwiki.org/wiki/index.php?title=Module:Category_handler/config&feed=atom&action=historyModule:Category handler/config - Revision history2024-03-29T14:45:28ZRevision history for this page on the wikiMediaWiki 1.38.4https://handwiki.org/wiki/index.php?title=Module:Category_handler/config&diff=40&oldid=previmported>Schekanov: 1 revision imported2020-05-03T15:39:21Z<p>1 revision imported</p>
<p><b>New page</b></p><div>--------------------------------------------------------------------------------<br />
-- [[Module:Category handler]] configuration data --<br />
-- Language-specific parameter names and values can be set here. --<br />
-- For blacklist config, see [[Module:Category handler/blacklist]]. --<br />
--------------------------------------------------------------------------------<br />
<br />
local cfg = {} -- Don't edit this line.<br />
<br />
--------------------------------------------------------------------------------<br />
-- Start configuration data --<br />
--------------------------------------------------------------------------------<br />
<br />
--------------------------------------------------------------------------------<br />
-- Parameter names --<br />
-- These configuration items specify custom parameter names. --<br />
-- To add one extra name, you can use this format: --<br />
-- --<br />
-- foo = 'parameter name', --<br />
-- --<br />
-- To add multiple names, you can use this format: --<br />
-- --<br />
-- foo = {'parameter name 1', 'parameter name 2', 'parameter name 3'}, --<br />
--------------------------------------------------------------------------------<br />
<br />
cfg.parameters = {<br />
<br />
-- The nocat and categories parameter suppress<br />
-- categorisation. They are used with Module:Yesno, and work as follows:<br />
--<br />
-- cfg.nocat:<br />
-- Result of yesno() Effect<br />
-- true Categorisation is suppressed<br />
-- false Categorisation is allowed, and<br />
-- the blacklist check is skipped<br />
-- nil Categorisation is allowed<br />
--<br />
-- cfg.categories:<br />
-- Result of yesno() Effect<br />
-- true Categorisation is allowed, and<br />
-- the blacklist check is skipped<br />
-- false Categorisation is suppressed<br />
-- nil Categorisation is allowed<br />
nocat = 'nocat',<br />
categories = 'categories',<br />
<br />
-- The parameter name for the legacy "category2" parameter. This skips the<br />
-- blacklist if set to the cfg.category2Yes value, and suppresses<br />
-- categorisation if present but equal to anything other than<br />
-- cfg.category2Yes or cfg.category2Negative.<br />
category2 = 'category2',<br />
<br />
-- cfg.subpage is the parameter name to specify how to behave on subpages.<br />
subpage = 'subpage',<br />
<br />
-- The parameter for data to return in all namespaces.<br />
all = 'all',<br />
<br />
-- The parameter name for data to return if no data is specified for the<br />
-- namespace that is detected.<br />
other = 'other',<br />
<br />
-- The parameter name used to specify a page other than the current page;<br />
-- used for testing and demonstration.<br />
demopage = 'page',<br />
}<br />
<br />
--------------------------------------------------------------------------------<br />
-- Parameter values --<br />
-- These are set values that can be used with certain parameters. Only one --<br />
-- value can be specified, like this: --<br />
-- --<br />
-- cfg.foo = 'value name' -- --<br />
--------------------------------------------------------------------------------<br />
<br />
-- The following settings are used with the cfg.category2 parameter. Setting<br />
-- cfg.category2 to cfg.category2Yes skips the blacklist, and if cfg.category2<br />
-- is present but equal to anything other than cfg.category2Yes or<br />
-- cfg.category2Negative then it supresses cateogrisation.<br />
cfg.category2Yes = 'yes'<br />
cfg.category2Negative = '¬'<br />
<br />
-- The following settings are used with the cfg.subpage parameter.<br />
-- cfg.subpageNo is the value to specify to not categorise on subpages;<br />
-- cfg.subpageOnly is the value to specify to only categorise on subpages.<br />
cfg.subpageNo = 'no'<br />
cfg.subpageOnly = 'only'<br />
<br />
--------------------------------------------------------------------------------<br />
-- Default namespaces --<br />
-- This is a table of namespaces to categorise by default. The keys are the --<br />
-- namespace numbers. --<br />
--------------------------------------------------------------------------------<br />
<br />
cfg.defaultNamespaces = {<br />
[ 0] = true, -- main<br />
[ 6] = true, -- file<br />
[ 12] = true, -- help<br />
[ 14] = true, -- category<br />
[100] = true, -- portal<br />
[108] = true, -- book<br />
}<br />
<br />
--------------------------------------------------------------------------------<br />
-- Wrappers --<br />
-- This is a wrapper template or a list of wrapper templates to be passed to --<br />
-- [[Module:Arguments]]. --<br />
--------------------------------------------------------------------------------<br />
<br />
cfg.wrappers = 'Template:Category handler'<br />
<br />
--------------------------------------------------------------------------------<br />
-- End configuration data --<br />
--------------------------------------------------------------------------------<br />
<br />
return cfg -- Don't edit this line.</div>imported>Schekanov