Modul:Uses TemplateStyles/config: Perbedaan antara revisi
Loncat ke navigasi
Loncat ke pencarian
Matching reality rather than 2018 me's wishful thinking
(oke 👌) |
dw>Pppery (Matching reality rather than 2018 me's wishful thinking) |
||
Baris 18: | Baris 18: | ||
-- stylesheet’s sandbox is expected to be at <template>/<sandbox_title>/<stylesheet>.css | -- stylesheet’s sandbox is expected to be at <template>/<sandbox_title>/<stylesheet>.css | ||
-- Set to nil to disable sandbox links. | -- Set to nil to disable sandbox links. | ||
cfg['sandbox_title'] = ' | cfg['sandbox_title'] = 'sandbox' | ||
-- Error category: this category is added if the module call contains errors | -- Error category: this category is added if the module call contains errors | ||
-- (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'] = 'Uses TemplateStyles templates with errors' | ||
-- Default category: this category is added if no custom category is specified | -- Default category: this category is added if no custom category is specified | ||
-- in module/template call. A category name without namespace, or nil | -- in module/template call. A category name without namespace, or nil | ||
-- to disable categorization. | -- to disable categorization. | ||
cfg['default_category'] = ' | cfg['default_category'] = 'Templates using TemplateStyles' | ||
-- Protection conflict category: this category is added if the protection level | -- Protection conflict category: this category is added if the protection level | ||
-- of any stylesheet | -- of any stylesheet is lower than the protection level 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'] = 'Templates using TemplateStyles with a different protection level' | ||
-- Hierarchy of protection levels, used to determine whether one protection level is lower | |||
-- than another and thus should populate protection_conflict_category. No protection is treated as zero | |||
cfg['protection_hierarchy'] = { | |||
autoconfirmed = 1, | |||
extendedconfirmed = 2, | |||
templateeditor = 3, | |||
sysop = 4 | |||
} | |||
-- Padlock pattern: Lua pattern to search on protected stylesheets for, or nil | -- Padlock pattern: Lua pattern to search on protected stylesheets for, or nil | ||
Baris 43: | Baris 52: | ||
-- 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'] = 'Templates using TemplateStyles without padlocks' | ||
return cfg -- Don’t touch this line. | return cfg -- Don’t touch this line. |