Module:Message box/configuration:修订间差异
外观
删除的内容 添加的内容
中文本地化配置,基于 mworg 上游,无 div_structure 实验代码 |
清理已不用的 usePlainlinksParam 配置字段 |
||
| 第46行: | 第46行: | ||
substCheck = true, |
substCheck = true, |
||
classes = {'metadata', 'ambox'}, |
classes = {'metadata', 'ambox'}, |
||
usePlainlinksParam = true, |
|||
imageEmptyCell = true, |
imageEmptyCell = true, |
||
imageCheckBlank = true, |
imageCheckBlank = true, |
||
| 第96行: | 第95行: | ||
showInvalidTypeError = true, |
showInvalidTypeError = true, |
||
classes = {'cmbox'}, |
classes = {'cmbox'}, |
||
usePlainlinksParam = true, |
|||
imageEmptyCell = true, |
imageEmptyCell = true, |
||
templateCategory = '分類訊息模板' |
templateCategory = '分類訊息模板' |
||
| 第119行: | 第117行: | ||
showInvalidTypeError = true, |
showInvalidTypeError = true, |
||
classes = {'fmbox'}, |
classes = {'fmbox'}, |
||
usePlainlinksParam = true, |
|||
imageEmptyCell = false, |
imageEmptyCell = false, |
||
imageRightNone = false |
imageRightNone = false |
||
| 第167行: | 第164行: | ||
showInvalidTypeError = true, |
showInvalidTypeError = true, |
||
classes = {'imbox'}, |
classes = {'imbox'}, |
||
usePlainlinksParam = true, |
|||
imageEmptyCell = true, |
imageEmptyCell = true, |
||
below = true, |
below = true, |
||
| 第207行: | 第203行: | ||
showInvalidTypeError = true, |
showInvalidTypeError = true, |
||
classes = {'ombox'}, |
classes = {'ombox'}, |
||
usePlainlinksParam = true, |
|||
allowSmall = true, |
allowSmall = true, |
||
imageEmptyCell = true, |
imageEmptyCell = true, |
||
| 第247行: | 第242行: | ||
showInvalidTypeError = true, |
showInvalidTypeError = true, |
||
classes = {'tmbox'}, |
classes = {'tmbox'}, |
||
usePlainlinksParam = true, |
|||
allowSmall = true, |
allowSmall = true, |
||
imageRightNone = true, |
imageRightNone = true, |
||
2026年6月20日 (六) 23:26的版本
--------------------------------------------------------------------------------
-- Message box configuration --
-- --
-- This module contains configuration data for [[Module:Message box]]. --
-- TemplateStyles 路径由模块代码自动拼接(Module:Message box/%s.css) --
-- 不再需要在配置中设置 templatestyles 字段 --
--------------------------------------------------------------------------------
return {
ambox = {
types = {
speedy = {
class = 'ambox-speedy',
image = 'Imbox notice.png'
},
delete = {
class = 'ambox-delete',
image = 'Imbox notice.png'
},
content = {
class = 'ambox-content',
image = 'Imbox notice.png'
},
style = {
class = 'ambox-style',
image = 'Edit-clear.svg'
},
move = {
class = 'ambox-move',
image = 'Merge-split-transwiki default.svg'
},
protection = {
class = 'ambox-protection',
image = 'Semi-protection-shackle.svg'
},
notice = {
class = 'ambox-notice',
image = 'Imbox notice.png'
}
},
default = 'notice',
allowBlankParams = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
allowSmall = true,
smallParam = 'left',
smallClass = 'mbox-small-left',
substCheck = true,
classes = {'metadata', 'ambox'},
imageEmptyCell = true,
imageCheckBlank = true,
imageSmallSize = '20x20px',
imageCellDiv = true,
useCollapsibleTextFields = true,
imageRightNone = true,
sectionDefault = '頁面',
allowMainspaceCategories = true,
templateCategory = '需要維護的條目',
templateCategoryRequireName = true,
templateErrorCategory = '缺少參數的條目維護模板',
templateErrorParamsToCheck = {'issue', 'fix', 'subst'},
removalNotice = '此模板的移除需經討論達成共識'
},
cmbox = {
types = {
speedy = {
class = 'cmbox-speedy',
image = 'Imbox notice.png'
},
delete = {
class = 'cmbox-delete',
image = 'Imbox notice.png'
},
content = {
class = 'cmbox-content',
image = 'Imbox notice.png'
},
style = {
class = 'cmbox-style',
image = 'Edit-clear.svg'
},
move = {
class = 'cmbox-move',
image = 'Merge-split-transwiki default.svg'
},
protection = {
class = 'cmbox-protection',
image = 'Semi-protection-shackle.svg'
},
notice = {
class = 'cmbox-notice',
image = 'Imbox notice.png'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'cmbox'},
imageEmptyCell = true,
templateCategory = '分類訊息模板'
},
fmbox = {
types = {
warning = {
class = 'fmbox-warning',
image = 'Imbox notice.png'
},
editnotice = {
class = 'fmbox-editnotice',
image = 'Imbox notice.png'
},
system = {
class = 'fmbox-system',
image = 'Imbox notice.png'
}
},
default = 'system',
showInvalidTypeError = true,
classes = {'fmbox'},
imageEmptyCell = false,
imageRightNone = false
},
imbox = {
types = {
speedy = {
class = 'imbox-speedy',
image = 'Imbox notice.png'
},
delete = {
class = 'imbox-delete',
image = 'Imbox notice.png'
},
content = {
class = 'imbox-content',
image = 'Imbox notice.png'
},
style = {
class = 'imbox-style',
image = 'Edit-clear.svg'
},
move = {
class = 'imbox-move',
image = 'Merge-split-transwiki default.svg'
},
protection = {
class = 'imbox-protection',
image = 'Semi-protection-shackle.svg'
},
license = {
class = 'imbox-license licensetpl',
image = 'Imbox-license.svg'
},
featured = {
class = 'imbox-featured',
image = 'Cscr-featured.svg',
imageNeedsLink = true
},
notice = {
class = 'imbox-notice',
image = 'Imbox notice.png'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'imbox'},
imageEmptyCell = true,
below = true,
templateCategory = '檔案訊息模板'
},
ombox = {
types = {
speedy = {
class = 'ombox-speedy',
image = 'Imbox notice.png'
},
delete = {
class = 'ombox-delete',
image = 'Imbox notice.png'
},
content = {
class = 'ombox-content',
image = 'Imbox notice.png'
},
style = {
class = 'ombox-style',
image = 'Edit-clear.svg'
},
move = {
class = 'ombox-move',
image = 'Merge-split-transwiki default.svg'
},
protection = {
class = 'ombox-protection',
image = 'Semi-protection-shackle.svg'
},
notice = {
class = 'ombox-notice',
image = 'Imbox notice.png'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'ombox'},
allowSmall = true,
imageEmptyCell = true,
imageRightNone = true
},
tmbox = {
types = {
speedy = {
class = 'tmbox-speedy',
image = 'Imbox notice.png'
},
delete = {
class = 'tmbox-delete',
image = 'Imbox notice.png'
},
content = {
class = 'tmbox-content',
image = 'Imbox notice.png'
},
style = {
class = 'tmbox-style',
image = 'Edit-clear.svg'
},
move = {
class = 'tmbox-move',
image = 'Merge-split-transwiki default.svg'
},
protection = {
class = 'tmbox-protection',
image = 'Semi-protection-shackle.svg'
},
notice = {
class = 'tmbox-notice',
image = 'Imbox notice.png'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'tmbox'},
allowSmall = true,
imageRightNone = true,
imageEmptyCell = true,
imageEmptyCellStyle = true,
templateCategory = '討論訊息模板'
}
}