Module:Uses TemplateStyles/config: Difference between revisions
m Reverted edits by 36.37.194.15 (talk) to last revision by Tacsipacsi |
a>Pppery No edit summary |
||
| Line 31: | Line 31: | ||
-- 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'] = 'Templates using TemplateStyles with a different protection level' | 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 | ||
-- to disable padlock check. | -- to disable padlock check. | ||
cfg['padlock_pattern'] = | cfg['padlock_pattern'] = '{{pp-' | ||
-- Missing padlock category: this category is added if a protected stylesheet | -- Missing padlock category: this category is added if a protected stylesheet | ||
| Line 45: | Line 54: | ||
cfg['missing_padlock_category'] = 'Templates using TemplateStyles without padlocks' | cfg['missing_padlock_category'] = 'Templates using TemplateStyles without padlocks' | ||
-- Default subpage for the stylesheet if none is given | |||
cfg['default_subpage_name'] = 'styles.css' | |||
return cfg -- Don’t touch this line. | return cfg -- Don’t touch this line. | ||