Module:Category handler/config: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(add wrappers config)
(update comments)
Line 13: Line 13:
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Parameter names --
-- Parameter names --
-- These configuration items specify custom parameter names. Values added --
-- These configuration items specify custom parameter names. --
-- here will work in addition to the default English parameter names. --
-- To add one extra name, you can use this format: --
-- To add one extra name, you can use this format: --
-- --
-- --
Line 30: Line 29:
--
--
-- cfg.nocat:
-- cfg.nocat:
-- Result of yesno(args[cfg.nocat]) Effect
-- Result of yesno() Effect
-- true Categorisation is suppressed
-- true Categorisation is suppressed
-- false Categorisation is allowed, and
-- false Categorisation is allowed, and
Line 37: Line 36:
--
--
-- cfg.categories:
-- cfg.categories:
-- Result of yesno(args[cfg.categories]) Effect
-- Result of yesno() Effect
-- true Categorisation is allowed, and
-- true Categorisation is allowed, and
-- the blacklist check is skipped
-- the blacklist check is skipped
Line 62: Line 61:
-- The parameter name used to specify a page other than the current page;
-- The parameter name used to specify a page other than the current page;
-- used for testing and demonstration. This must be the same as the cfg.page
-- used for testing and demonstration.
-- parameter in [[Module:Namespace detect]].
demopage = 'page',
demopage = 'page',
}
}
Line 72: Line 70:
-- value can be specified, like this: --
-- value can be specified, like this: --
-- --
-- --
-- cfg.foo = 'value name' --
-- cfg.foo = 'value name' -- --
-- --
-- These settings are optional. It is always possible to use the module --
-- defaults instead. --
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------


Line 93: Line 88:
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Default namespaces --
-- Default namespaces --
-- This is a table of namespaces to categorise by default. They should be in --
-- This is a table of namespaces to categorise by default. The keys are the --
-- namespace numbers. --
-- the format of parameter names accepted by [[Module:Namespace detect]]. --
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------