Module:Uses TemplateStyles/config: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
m (Protected "Module:Uses TemplateStyles/config": High-risk template or module (more info) ([Edit=Require autoconfirmed or confirmed access] (indefinite))) |
m (2 revisions imported from wikipedia:Module:Uses_TemplateStyles/config) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 23: | Line 23: | ||
-- (e.g. no stylesheet listed). A category name without namespace, or nil |
-- (e.g. no stylesheet listed). A category name without namespace, or nil |
||
-- to disable categorization (not recommended). |
-- to disable categorization (not recommended). |
||
cfg['error_category'] = |
cfg['error_category'] = nil |
||
-- Default category: this category is added if no custom category is specified |
-- Default category: this category is added if no custom category is specified |
||
Line 33: | Line 33: | ||
-- of any stylesheet differs from the one of the template. A category name |
-- of any stylesheet differs from the one of the template. A category name |
||
-- without namespace, or nil to disable categorization (not recommended). |
-- without namespace, or nil to disable categorization (not recommended). |
||
cfg['protection_conflict_category'] = |
cfg['protection_conflict_category'] = nil |
||
-- Padlock pattern: Lua pattern to search on protected stylesheets for, or nil |
-- Padlock pattern: Lua pattern to search on protected stylesheets for, or nil |
||
-- to disable padlock check. |
-- to disable padlock check. |
||
cfg['padlock_pattern'] = |
cfg['padlock_pattern'] = nil |
||
-- Missing padlock category: this category is added if a protected stylesheet |
-- Missing padlock category: this category is added if a protected stylesheet |
||
Line 43: | Line 43: | ||
-- A category name without namespace (no nil allowed) if the pattern is not nil, |
-- A category name without namespace (no nil allowed) if the pattern is not nil, |
||
-- unused (and thus may be nil) otherwise. |
-- unused (and thus may be nil) otherwise. |
||
cfg['missing_padlock_category'] = |
cfg['missing_padlock_category'] = nil |
||
return cfg -- Don’t touch this line. |
return cfg -- Don’t touch this line. |
Latest revision as of 09:03, 16 June 2021
Documentation for this module may be created at Module:Uses TemplateStyles/config/doc
local cfg = {} -- Don’t touch this line.
-- Subpage blacklist: these subpages will not be categorized (except for the
-- error category, which is always added if there is an error).
-- For example “Template:Foo/doc” matches the `doc = true` rule, so it will have
-- no categories. “Template:Foo” and “Template:Foo/documentation” match no rules,
-- so they *will* have categories. All rules should be in the
-- ['<subpage name>'] = true,
-- format.
cfg['subpage_blacklist'] = {
['doc'] = true,
['sandbox'] = true,
['sandbox2'] = true,
['testcases'] = true,
}
-- Sandbox title: if the stylesheet’s title is <template>/<stylesheet>.css, the
-- stylesheet’s sandbox is expected to be at <template>/<sandbox_title>/<stylesheet>.css
-- Set to nil to disable sandbox links.
cfg['sandbox_title'] = 'sandbox'
-- Error category: this category is added if the module call contains errors
-- (e.g. no stylesheet listed). A category name without namespace, or nil
-- to disable categorization (not recommended).
cfg['error_category'] = nil
-- Default category: this category is added if no custom category is specified
-- in module/template call. A category name without namespace, or nil
-- to disable categorization.
cfg['default_category'] = 'Templates using TemplateStyles'
-- Protection conflict category: this category is added if the protection level
-- of any stylesheet differs from the one of the template. A category name
-- without namespace, or nil to disable categorization (not recommended).
cfg['protection_conflict_category'] = nil
-- Padlock pattern: Lua pattern to search on protected stylesheets for, or nil
-- to disable padlock check.
cfg['padlock_pattern'] = nil
-- Missing padlock category: this category is added if a protected stylesheet
-- doesn’t contain any padlock template (specified by the above Lua pattern).
-- A category name without namespace (no nil allowed) if the pattern is not nil,
-- unused (and thus may be nil) otherwise.
cfg['missing_padlock_category'] = nil
return cfg -- Don’t touch this line.