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

删除的内容 添加的内容
清理已不用的 usePlainlinksParam 配置字段
替换为 mworg 版 Message box 配置(OOjs UI 图标)
 
第3行:
-- --
-- This module contains configuration data for [[Module:Message box]]. --
-- TemplateStyles 路径由模块代码自动拼接(Module:Message box/%s.css) --
-- 不再需要在配置中设置 templatestyles 字段 --
--------------------------------------------------------------------------------
 
第12行 ⟶ 第10行:
speedy = {
class = 'ambox-speedy',
image = 'ImboxOOjs noticeUI icon clock-destructive.pngsvg'
},
delete = {
class = 'ambox-delete',
image = 'ImboxOOjs noticeUI icon alert-destructive.pngsvg'
},
warning = { -- alias for content
class = 'ambox-content',
image = 'OOjs UI icon notice-warning.svg'
},
content = {
class = 'ambox-content',
image = 'ImboxOOjs UI icon notice-warning.pngsvg'
},
style = {
第32行 ⟶ 第34行:
protection = {
class = 'ambox-protection',
image = 'Semi-protection-shackle-keyhole.svg'
},
notice = {
class = 'ambox-notice',
image = 'ImboxOOjs noticeUI icon information-progressive.pngsvg'
}
},
第45行 ⟶ 第47行:
smallClass = 'mbox-small-left',
substCheck = true,
classes = {'metadata', 'plainlinks', 'ambox'},
imageEmptyCell = true,
imageCheckBlank = true,
第52行 ⟶ 第54行:
useCollapsibleTextFields = true,
imageRightNone = true,
sectionDefault = '頁面article',
allowMainspaceCategories = true,
templateCategory = '需要維護的條目Article message templates',
templateCategoryRequireName = true,
templateErrorCategory = '缺少參數的條目維護模板'nil,
templateErrorParamsToCheck = {'issue', 'fix', 'subst'},
removalNotice = '此模板的移除需經討論達成共識'
},
 
cmbox = {
types = {
speedy = {
class = 'cmbox-speedy',
image = 'ImboxOOjs noticeUI icon clock-destructive.pngsvg'
},
delete = {
class = 'cmbox-delete',
image = 'ImboxOOjs noticeUI icon alert-destructive.pngsvg'
},
content = {
class = 'cmbox-content',
image = 'ImboxOOjs UI icon notice-warning.pngsvg'
},
style = {
第85行 ⟶ 第86行:
protection = {
class = 'cmbox-protection',
image = 'Semi-protection-shackle-keyhole.svg'
},
notice = {
class = 'cmbox-notice',
image = 'ImboxOOjs noticeUI icon information-progressive.pngsvg'
},
caution = {
class = 'cmbox-style',
image = 'Ambox warning yellow.svg'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'plainlinks', 'cmbox'},
imageEmptyCell = true,
templateCategory = '分類訊息模板'
},
 
fmbox = {
types = {
warning = {
class = 'fmbox-warning',
image = 'ImboxOOjs noticeUI icon clock-destructive.pngsvg'
},
editnotice = {
class = 'fmbox-editnotice',
image = 'ImboxOOjs noticeUI icon information-progressive.pngsvg'
},
system = {
class = 'fmbox-system',
image = 'ImboxOOjs noticeUI icon information-progressive.pngsvg'
}
},
default = 'system',
showInvalidTypeError = true,
classes = {'plainlinks', 'fmbox'},
imageEmptyCell = false,
imageRightNone = false
},
 
imbox = {
types = {
speedy = {
class = 'imbox-speedy',
image = 'ImboxOOjs noticeUI icon clock-destructive.pngsvg'
},
delete = {
class = 'imbox-delete',
image = 'ImboxOOjs noticeUI icon alert-destructive.pngsvg'
},
content = {
class = 'imbox-content',
image = 'ImboxOOjs UI icon notice-warning.pngsvg'
},
style = {
第145行 ⟶ 第149行:
protection = {
class = 'imbox-protection',
image = 'Semi-protection-shackle-keyhole.svg'
},
license = {
第153行 ⟶ 第157行:
featured = {
class = 'imbox-featured',
image = 'Cscr-featured.svg',
imageNeedsLink = true
},
notice = {
class = 'imbox-notice',
image = 'ImboxOOjs noticeUI icon information-progressive.pngsvg'
}
},
第164行 ⟶ 第167行:
showInvalidTypeError = true,
classes = {'imbox'},
usePlainlinksParam = true,
imageEmptyCell = true,
below = true,
templateCategory = '檔案訊息模板File message boxes'
},
 
ombox = {
types = {
speedy = {
class = 'ombox-speedy',
image = 'ImboxOOjs noticeUI icon clock-destructive.pngsvg'
},
delete = {
class = 'ombox-delete',
image = 'ImboxOOjs noticeUI icon alert-destructive.pngsvg'
},
warning = { -- alias for content
class = 'ombox-content',
image = 'OOjs UI icon notice-warning.svg'
},
content = {
class = 'ombox-content',
image = 'ImboxOOjs UI icon notice-warning.pngsvg'
},
style = {
第193行 ⟶ 第201行:
protection = {
class = 'ombox-protection',
image = 'Semi-protection-shackle-keyhole.svg'
},
notice = {
class = 'ombox-notice',
image = 'ImboxOOjs noticeUI icon information-progressive.pngsvg'
},
critical = {
class = 'mbox-critical',
image = 'OOjs UI icon clock-destructive.svg'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'plainlinks', 'ombox'},
allowSmall = true,
imageEmptyCell = true,
imageRightNone = true
},
 
tmbox = {
types = {
speedy = {
class = 'tmbox-speedy',
image = 'ImboxOOjs noticeUI icon clock-destructive.pngsvg'
},
delete = {
class = 'tmbox-delete',
image = 'ImboxOOjs noticeUI icon alert-destructive.pngsvg'
},
content = {
class = 'tmbox-content',
image = 'ImboxOOjs UI icon notice-warning.pngsvg'
},
style = {
第232行 ⟶ 第244行:
protection = {
class = 'tmbox-protection',
image = 'Semi-protection-shackle-keyhole.svg'
},
notice = {
class = 'tmbox-notice',
image = 'ImboxOOjs noticeUI icon information-progressive.pngsvg'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'plainlinks', 'tmbox'},
allowSmall = true,
imageRightNone = true,
imageEmptyCell = true,
imageEmptyCellStyle = true,
templateCategory = '討論訊息模板Talk message boxes'
}
}