Module:Message box/configuration:修订间差异

删除的内容 添加的内容
替换为 mworg 版 Message box 配置(OOjs UI 图标)
替换为求闻版配置(mbox-* 类名、求闻类型与图片);补回 imbox/cmbox 键;清理 tmbox.style 图片名尾部空格
第1行:
local ambox = {
--------------------------------------------------------------------------------
types = {
-- Message box configuration --
speedy = {
-- --
class = 'mbox-speedy',
-- This module contains configuration data for [[Module:Message box]]. --
image = 'Cross Mark (Red).svg'
--------------------------------------------------------------------------------
 
return {
ambox = {
types = {
speedy = {
class = 'ambox-speedy',
image = 'OOjs UI icon clock-destructive.svg'
},
delete = {
class = 'ambox-delete',
image = 'OOjs UI icon alert-destructive.svg'
},
warning = { -- alias for content
class = 'ambox-content',
image = 'OOjs UI icon notice-warning.svg'
},
content = {
class = 'ambox-content',
image = 'OOjs UI icon notice-warning.svg'
},
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-keyhole.svg'
},
notice = {
class = 'ambox-notice',
image = 'OOjs UI icon information-progressive.svg'
}
},
delete = {
default = 'notice',
class = 'mbox-delete',
allowBlankParams = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
image = 'Alert Mark (Red).svg'
allowSmall = true,
},
smallParam = 'left',
content = {
smallClass = 'mbox-small-left',
class = 'mbox-content',
substCheck = true,
image = 'Alert Mark (Orange).svg'
classes = {'metadata', 'plainlinks', 'ambox'},
},
imageEmptyCell = true,
style = {
imageCheckBlank = true,
class = 'mbox-style',
imageSmallSize = '20x20px',
image = 'Edit-clear.svg'
imageCellDiv = true,
},
useCollapsibleTextFields = true,
move = {
imageRightNone = true,
class = 'mbox-move',
sectionDefault = 'article',
image = 'Merge-split-transwiki default.svg'
allowMainspaceCategories = true,
},
templateCategory = 'Article message templates',
protection = {
templateCategoryRequireName = true,
class = 'mbox-protection',
templateErrorCategory = nil,
image = 'Semi-protection-shackle-keyhole.svg'
templateErrorParamsToCheck = {'issue', 'fix', 'subst'}
},
notice = {
class = 'mbox-notice',
image = 'Information Mark (Blue).svg'
},
note = {
class = 'mbox-notice',
image = 'Information Mark (Blue).svg'
},
license = {
class = 'mbox-license',
image = 'Imbox license.png'
},
featured = {
class = 'mbox-featured',
image = 'Cscr-featured.svg'
},
policy = {
class = 'mbox-policy',
image = 'Policy Mark (Green).svg'
},
guideline = {
class = 'mbox-guideline',
image = 'Policy Mark (Blue).svg'
},
rule = {
class = 'mbox-rule',
image = 'Policy Mark (Orange).svg'
},
draft = {
class = 'mbox-draft',
image = 'Edit Mark (Gray).svg'
},
setindex = {
class = 'mbox-setindex',
image = 'List gray.svg'
},
disambig = {
class = 'mbox-disambig',
image = 'Disambig gray.svg'
}
},
default = 'notice',
allowBlankParams = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
cmbox = {
allowSmall = true,
types = {
smallParam = 'left',
speedy = {
smallClass = 'mbox-small-left',
class = 'cmbox-speedy',
substCheck = true,
image = 'OOjs UI icon clock-destructive.svg'
classes = {'mbox', 'ambox', 'metadata', 'plainlinks'},
},
allowId = true,
delete = {
below = 'below',
class = 'cmbox-delete',
imageEmptyCell = true,
image = 'OOjs UI icon alert-destructive.svg'
imageCheckBlank = true,
},
imageSmallSize = '20x20px',
content = {
imageCellDiv = true,
class = 'cmbox-content',
useCollapsibleTextFields = true,
image = 'OOjs UI icon notice-warning.svg'
imageRightNone = true,
},
sectionDefault = '条目',
style = {
allowMainspaceCategories = true,
class = 'cmbox-style',
templateCategory = '条目信息模板',
image = 'Edit-clear.svg'
templateCategoryRequireName = true,
},
templateErrorCategory = '缺少参数的条目信息模板',
move = {
templateErrorParamsToCheck = {'issue', 'fix', 'subst'}
class = 'cmbox-move',
}
image = 'Merge-split-transwiki default.svg'
 
},
protectionlocal fmbox = {
types = {
class = 'cmbox-protection',
warning = {
image = 'Semi-protection-shackle-keyhole.svg'
class = 'fmbox-warning',
},
image = 'Alert Mark (Red).svg'
notice = {
class = 'cmbox-notice',
image = 'OOjs UI icon information-progressive.svg'
},
caution = {
class = 'cmbox-style',
image = 'Ambox warning yellow.svg'
}
},
editnotice = {
default = 'notice',
class = 'fmbox-editnotice',
showInvalidTypeError = true,
image = 'Information Mark (Blue).svg'
classes = {'plainlinks', 'cmbox'},
},
imageEmptyCell = true
system = {
class = 'fmbox-system',
image = 'Information Mark (Blue).svg'
},
copyright = {
class = 'fmbox-editnotice fmbox-copyright',
image = 'Edit Mark (Blue).svg'
}
},
default = 'system',
showInvalidTypeError = true,
fmbox = {
allowId = true,
types = {
below = 'below',
warning = {
classes = {'fmbox', 'plainlinks'},
class = 'fmbox-warning',
imageEmptyCell = false,
image = 'OOjs UI icon clock-destructive.svg'
imageRightNone = false
},
}
editnotice = {
 
class = 'fmbox-editnotice',
local ombox = { -- all styles migrated to mbox
image = 'OOjs UI icon information-progressive.svg'
types = {
},
systemspeedy = {
class = 'fmboxmbox-systemspeedy',
image = 'OOjsCross UIMark icon information-progressive(Red).svg'
}
},
delete = {
default = 'system',
class = 'mbox-delete',
showInvalidTypeError = true,
image = 'Alert Mark (Red).svg'
classes = {'plainlinks', 'fmbox'},
},
imageEmptyCell = false,
content = {
imageRightNone = false
class = 'mbox-content',
image = 'Alert Mark (Orange).svg'
},
style = {
class = 'mbox-style',
image = 'Edit-clear.svg'
},
move = {
class = 'mbox-move',
image = 'Merge-split-transwiki default.svg'
},
protection = {
class = 'mbox-protection',
image = 'Semi-protection-shackle-keyhole.svg'
},
notice = {
class = 'mbox-notice',
image = 'Information Mark (Blue).svg'
},
note = {
class = 'mbox-notice',
image = 'Information Mark (Blue).svg'
},
license = {
class = 'mbox-license',
image = 'Imbox license.png'
},
featured = {
class = 'mbox-featured',
image = 'Cscr-featured.svg'
},
policy = {
class = 'mbox-policy',
image = 'Policy Mark (Green).svg'
},
guideline = {
class = 'mbox-guideline',
image = 'Policy Mark (Blue).svg'
},
rule = {
class = 'mbox-rule',
image = 'Policy Mark (Orange).svg'
},
draft = {
class = 'mbox-draft',
image = 'Edit Mark (Gray).svg'
},
setindex = {
class = 'mbox-setindex',
image = 'List gray.svg'
},
disambig = {
class = 'mbox-disambig',
image = 'Disambig gray.svg'
}
},
default = 'notice',
showInvalidTypeError = true,
imbox = {
allowBlankParams = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
types = {
allowSmall = true,
speedy = {
substCheck = true,
class = 'imbox-speedy',
classes = {'mbox', 'ombox'},
image = 'OOjs UI icon clock-destructive.svg'
allowId = true,
},
below = 'below',
delete = {
imageEmptyCell = true,
class = 'imbox-delete',
imageCheckBlank = true,
image = 'OOjs UI icon alert-destructive.svg'
imageSmallSize = '20x20px',
},
imageCellDiv = true,
content = {
useCollapsibleTextFields = true,
class = 'imbox-content',
imageRightNone = true,
image = 'OOjs UI icon notice-warning.svg'
}
},
 
style = {
local tmbox = {
class = 'imbox-style',
types = {
image = 'Edit-clear.svg'
speedy = {
},
moveclass = {'mbox-speedy',
classimage = 'imbox-moveCross Mark (Red).svg',
image = 'Merge-split-transwiki default.svg'
},
protection = {
class = 'imbox-protection',
image = 'Semi-protection-shackle-keyhole.svg'
},
license = {
class = 'imbox-license licensetpl',
image = 'Imbox-license.svg'
},
featured = {
class = 'imbox-featured',
image = 'Cscr-featured.svg'
},
notice = {
class = 'imbox-notice',
image = 'OOjs UI icon information-progressive.svg'
}
},
delete = {
default = 'notice',
class = 'mbox-delete',
showInvalidTypeError = true,
image = 'Alert Mark (Red).svg'
classes = {'imbox'},
},
usePlainlinksParam = true,
content = {
imageEmptyCell = true,
class = 'mbox-content',
below = true,
image = 'Alert Mark (Orange).svg'
templateCategory = 'File message boxes'
},
style = {
class = 'mbox-style',
image = 'Edit-clear.svg'
},
move = {
class = 'mbox-move',
image = 'Merge-split-transwiki default.svg'
},
protection = {
class = 'mbox-protection',
image = 'Semi-protection-shackle-keyhole.svg'
},
notice = {
class = 'mbox-notice',
image = 'Information Mark (Blue).svg'
}
},
default = 'notice',
showInvalidTypeError = true,
ombox = {
classes = {'mbox', 'tmbox'},
types = {
allowId = true,
speedy = {
allowSmall = true,
class = 'ombox-speedy',
below = 'below',
image = 'OOjs UI icon clock-destructive.svg'
imageRightNone = true,
},
imageEmptyCell = true,
delete = {
imageEmptyCellStyle = true,
class = 'ombox-delete',
templateCategory = '讨论信息模板'
image = 'OOjs UI icon alert-destructive.svg'
}
},
 
warning = { -- alias for content
local imbox = { -- 保留自中医百科:文件命名空间消息框(外观统一为 mbox 系)
class = 'ombox-content',
types = {
image = 'OOjs UI icon notice-warning.svg'
speedy = {
},
contentclass = {'mbox-speedy',
classimage = 'ombox-contentCross Mark (Red).svg',
},
image = 'OOjs UI icon notice-warning.svg'
delete = {
},
styleclass = {'mbox-delete',
classimage = 'ombox-styleAlert Mark (Red).svg',
},
image = 'Edit-clear.svg'
content = {
},
moveclass = {'mbox-content',
classimage = 'ombox-moveAlert Mark (Orange).svg',
},
image = 'Merge-split-transwiki default.svg'
style = {
},
protectionclass = {'mbox-style',
classimage = 'omboxEdit-protectionclear.svg',
},
image = 'Semi-protection-shackle-keyhole.svg'
move = {
},
noticeclass = {'mbox-move',
image = 'Merge-split-transwiki default.svg'
class = 'ombox-notice',
},
image = 'OOjs UI icon information-progressive.svg'
protection = {
},
class = 'mbox-protection',
critical = {
image = 'Semi-protection-shackle-keyhole.svg'
class = 'mbox-critical',
},
image = 'OOjs UI icon clock-destructive.svg'
notice = {
}
class = 'mbox-notice',
image = 'Information Mark (Blue).svg'
},
note = {
class = 'mbox-notice',
image = 'Information Mark (Blue).svg'
},
license = {
class = 'mbox-license',
image = 'Imbox license.png'
},
featured = {
class = 'mbox-featured',
image = 'Cscr-featured.svg'
},
policy = {
class = 'mbox-policy',
image = 'Policy Mark (Green).svg'
},
guideline = {
class = 'mbox-guideline',
image = 'Policy Mark (Blue).svg'
},
rule = {
class = 'mbox-rule',
image = 'Policy Mark (Orange).svg'
},
draft = {
class = 'mbox-draft',
image = 'Edit Mark (Gray).svg'
},
setindex = {
class = 'mbox-setindex',
image = 'List gray.svg'
},
disambig = {
default = 'notice',
class = 'mbox-disambig',
showInvalidTypeError = true,
image = 'Disambig gray.svg'
classes = {'plainlinks', 'ombox'},
}
allowSmall = true,
imageEmptyCell = true,
imageRightNone = true
},
default = 'notice',
showInvalidTypeError = true,
tmbox = {
allowBlankParams = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
types = {
allowSmall = true,
speedy = {
substCheck = true,
class = 'tmbox-speedy',
classes = {'mbox', 'imbox'},
image = 'OOjs UI icon clock-destructive.svg'
allowId = true,
},
below = 'below',
delete = {
imageEmptyCell = true,
class = 'tmbox-delete',
imageCheckBlank = true,
image = 'OOjs UI icon alert-destructive.svg'
imageSmallSize = '20x20px',
},
imageCellDiv = true,
content = {
useCollapsibleTextFields = true,
class = 'tmbox-content',
imageRightNone = true,
image = 'OOjs UI icon notice-warning.svg'
templateCategory = '文件信息模板'
},
}
style = {
local cmbox = { -- 保留自中医百科:分类命名空间消息框(外观统一为 mbox 系)
class = 'tmbox-style',
types = {
image = 'Edit-clear.svg'
speedy = {
},
moveclass = {'mbox-speedy',
classimage = 'tmbox-moveCross Mark (Red).svg',
image = 'Merge-split-transwiki default.svg'
},
protection = {
class = 'tmbox-protection',
image = 'Semi-protection-shackle-keyhole.svg'
},
notice = {
class = 'tmbox-notice',
image = 'OOjs UI icon information-progressive.svg'
}
},
delete = {
default = 'notice',
class = 'mbox-delete',
showInvalidTypeError = true,
image = 'Alert Mark (Red).svg'
classes = {'plainlinks', 'tmbox'},
},
allowSmall = true,
content = {
imageRightNone = true,
class = 'mbox-content',
imageEmptyCell = true,
image = 'Alert Mark (Orange).svg'
imageEmptyCellStyle = true,
},
templateCategory = 'Talk message boxes'
style = {
}
class = 'mbox-style',
image = 'Edit-clear.svg'
},
move = {
class = 'mbox-move',
image = 'Merge-split-transwiki default.svg'
},
protection = {
class = 'mbox-protection',
image = 'Semi-protection-shackle-keyhole.svg'
},
notice = {
class = 'mbox-notice',
image = 'Information Mark (Blue).svg'
},
note = {
class = 'mbox-notice',
image = 'Information Mark (Blue).svg'
},
license = {
class = 'mbox-license',
image = 'Imbox license.png'
},
featured = {
class = 'mbox-featured',
image = 'Cscr-featured.svg'
},
policy = {
class = 'mbox-policy',
image = 'Policy Mark (Green).svg'
},
guideline = {
class = 'mbox-guideline',
image = 'Policy Mark (Blue).svg'
},
rule = {
class = 'mbox-rule',
image = 'Policy Mark (Orange).svg'
},
draft = {
class = 'mbox-draft',
image = 'Edit Mark (Gray).svg'
},
setindex = {
class = 'mbox-setindex',
image = 'List gray.svg'
},
disambig = {
class = 'mbox-disambig',
image = 'Disambig gray.svg'
}
},
default = 'notice',
showInvalidTypeError = true,
allowBlankParams = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
allowSmall = true,
substCheck = true,
classes = {'mbox', 'cmbox'},
allowId = true,
below = 'below',
imageEmptyCell = true,
imageCheckBlank = true,
imageSmallSize = '20x20px',
imageCellDiv = true,
useCollapsibleTextFields = true,
imageRightNone = true,
templateCategory = '分类信息模板'
}
 
return {
ambox = ambox,
fmbox = fmbox,
ombox = ombox,
tmbox = tmbox,
imbox = imbox,
cmbox = cmbox
}