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

删除的内容 添加的内容
清理已不用的 usePlainlinksParam 配置字段
小无编辑摘要
 
(未显示2个用户的4个中间版本)
第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'
-- 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'
}
},
delete = {
default = 'notice',
class = 'mbox-delete',
allowBlankParams = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
image = 'Alert Mark (Red).svg'
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'
}
},
content = {
default = 'notice',
class = 'mbox-content',
showInvalidTypeError = true,
image = 'Alert Mark (Orange).svg'
classes = {'cmbox'},
},
imageEmptyCell = true,
style = {
templateCategory = '分類訊息模板'
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.svg'
},
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'},
allowSmall = true,
smallParam = 'left',
smallClass = 'mbox-small-left',
substCheck = true,
classes = {'mbox', 'ambox', 'metadata', 'plainlinks'},
allowId = true,
below = 'below',
imageEmptyCell = true,
imageCheckBlank = true,
imageSmallSize = '20x20px',
imageCellDiv = true,
useCollapsibleTextFields = true,
imageRightNone = true,
sectionDefault = '条目',
allowMainspaceCategories = true,
templateCategory = '条目信息模板',
templateCategoryRequireName = true,
templateErrorCategory = '缺少参数的条目信息模板',
templateErrorParamsToCheck = {'issue', 'fix', 'subst'}
}
 
local fmbox = {
types = {
warning = {
class = 'fmbox-warning',
image = 'ImboxAlert noticeMark (Red).pngsvg'
},
editnotice = {
class = 'fmbox-editnotice',
image = 'Imbox notice.png'
},
system = {
class = 'fmbox-system',
image = 'Imbox notice.png'
}
},
editnotice = {
default = 'system',
class = 'fmbox-editnotice',
showInvalidTypeError = true,
image = 'Information Mark (Blue).svg'
classes = {'fmbox'},
},
imageEmptyCell = false,
system = {
imageRightNone = false
class = 'fmbox-system',
image = 'Information Mark (Blue).svg'
},
copyright = {
class = 'fmbox-editnotice fmbox-copyright',
image = 'Edit Mark (Blue).svg'
}
},
default = 'system',
showInvalidTypeError = true,
allowId = true,
below = 'below',
classes = {'fmbox', 'plainlinks'},
imageEmptyCell = false,
imageRightNone = false
}
 
local ombox = { -- all styles migrated to mbox
imbox = {
types = {
speedy = {
class = 'imboxmbox-speedy',
image = 'ImboxCross noticeMark (Red).pngsvg'
},
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'
}
},
delete = {
default = 'notice',
class = 'mbox-delete',
showInvalidTypeError = true,
image = 'Alert Mark (Red).svg'
classes = {'imbox'},
},
imageEmptyCell = true,
content = {
below = true,
class = 'mbox-content',
templateCategory = '檔案訊息模板'
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.svg'
},
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', 'ombox'},
allowId = true,
below = 'below',
imageEmptyCell = true,
imageCheckBlank = true,
imageSmallSize = '20x20px',
imageCellDiv = true,
useCollapsibleTextFields = true,
imageRightNone = true,
}
 
omboxlocal tmbox = {
types = {
speedy = {
class = 'omboxmbox-speedy',
image = 'ImboxCross noticeMark (Red).pngsvg'
},
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'
}
},
delete = {
default = 'notice',
class = 'mbox-delete',
showInvalidTypeError = true,
image = 'Alert Mark (Red).svg'
classes = {'ombox'},
},
allowSmall = true,
content = {
imageEmptyCell = true,
class = 'mbox-content',
imageRightNone = true
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'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'mbox', 'tmbox'},
allowId = true,
allowSmall = true,
below = 'below',
imageRightNone = true,
imageEmptyCell = true,
imageEmptyCellStyle = true,
templateCategory = '讨论信息模板'
}
 
return {
tmbox = {
ambox = ambox,
types = {
fmbox = fmbox,
speedy = {
ombox = ombox,
class = 'tmbox-speedy',
tmbox = tmbox
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 = '討論訊息模板'
}
}