https://modmyclassic.com/wiki/index.php?title=Module:Category_handler/config&feed=atom&action=historyModule:Category handler/config - Revision history2024-03-29T06:35:58ZRevision history for this page on the wikiMediaWiki 1.31.1https://modmyclassic.com/wiki/index.php?title=Module:Category_handler/config&diff=55&oldid=prevMilenko: Protected "Module:Category handler/config" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading]2019-01-02T15:44:26Z<p>Protected "<a href="/wiki/index.php?title=Module:Category_handler/config" title="Module:Category handler/config">Module:Category handler/config</a>" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading]</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<tr class="diff-title" lang="en-GB">
<td colspan="1" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #222; text-align: center;">Revision as of 15:44, 2 January 2019</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en-GB"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>Milenkohttps://modmyclassic.com/wiki/index.php?title=Module:Category_handler/config&diff=54&oldid=prevMilenko: Created page with "-------------------------------------------------------------------------------- -- Module:Category handler configuration data -- -- Lang..."2019-01-02T15:44:14Z<p>Created page with "-------------------------------------------------------------------------------- -- <a href="/wiki/index.php?title=Module:Category_handler" title="Module:Category handler">Module:Category handler</a> configuration data -- -- Lang..."</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>Milenko