模块:Uses TemplateStyles/config:修订间差异
来自RIA | Wiki
更多操作
LettuceIce(留言 | 贡献) 无编辑摘要 |
尝试修复 |
||
| (未显示另一用户的1个中间版本) | |||
| 第23行: | 第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'] = '有错误的Uses TemplateStyles模板' | ||
-- 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'] = '使用模板样式的模板' | ||
-- 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'] = '模板样式保护等级不同的模板' | ||
-- 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 | ||
| 第43行: | 第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'] = '模板样式不含保护模板的模板' | ||
-- Localization | |||
cfg['header-template'] = '本模板使用[[mw:Help:TemplateStyles|模板样式]]:' | |||
cfg['module-template'] = '本模块使用[[mw:Help:TemplateStyles|模板样式]]:' | |||
cfg['wishtext-template'] = '本模板需要[[%s|模板样式]]。' | |||
cfg['wishtext-module'] = '本模块需要[[%s|模板样式]]。' | |||
cfg['logo-alt'] = 'CSS' | |||
cfg['error-emptylist'] = '错误:未输入模板样式' | |||
cfg['sandboxlink'] = '%s ([[%s|沙盒]])' | |||
return cfg -- Don’t touch this line. | return cfg -- Don’t touch this line. | ||
2024年8月19日 (一) 09:54的最新版本
Implements {{Uses TemplateStyles}}.
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'] = '有错误的Uses TemplateStyles模板'
-- 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'] = '使用模板样式的模板'
-- Protection conflict category: this category is added if the protection level
-- of any stylesheet is lower than the protection level of the template. A category name
-- without namespace, or nil to disable categorization (not recommended).
cfg['protection_conflict_category'] = '模板样式保护等级不同的模板'
-- 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
-- to disable padlock check.
cfg['padlock_pattern'] = '{{pp-'
-- 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'] = '模板样式不含保护模板的模板'
-- Localization
cfg['header-template'] = '本模板使用[[mw:Help:TemplateStyles|模板样式]]:'
cfg['module-template'] = '本模块使用[[mw:Help:TemplateStyles|模板样式]]:'
cfg['wishtext-template'] = '本模板需要[[%s|模板样式]]。'
cfg['wishtext-module'] = '本模块需要[[%s|模板样式]]。'
cfg['logo-alt'] = 'CSS'
cfg['error-emptylist'] = '错误:未输入模板样式'
cfg['sandboxlink'] = '%s ([[%s|沙盒]])'
return cfg -- Don’t touch this line.