Module:Message box/configuration:修订间差异
外观
删除的内容 添加的内容
替换为求闻版配置(mbox-* 类名、求闻类型与图片);补回 imbox/cmbox 键;清理 tmbox.style 图片名尾部空格 |
小无编辑摘要 |
||
| (未显示2个用户的2个中间版本) | |||
| 第35行: | 第35行: | ||
license = { |
license = { |
||
class = 'mbox-license', |
class = 'mbox-license', |
||
image = 'Imbox license. |
image = 'Imbox license.svg' |
||
}, |
}, |
||
featured = { |
featured = { |
||
| 第153行: | 第153行: | ||
license = { |
license = { |
||
class = 'mbox-license', |
class = 'mbox-license', |
||
image = 'Imbox license. |
image = 'Imbox license.svg' |
||
}, |
}, |
||
featured = { |
featured = { |
||
| 第241行: | 第241行: | ||
imageEmptyCellStyle = true, |
imageEmptyCellStyle = true, |
||
templateCategory = '讨论信息模板' |
templateCategory = '讨论信息模板' |
||
} |
|||
local imbox = { -- 保留自中医百科:文件命名空间消息框(外观统一为 mbox 系) |
|||
types = { |
|||
speedy = { |
|||
class = 'mbox-speedy', |
|||
image = 'Cross Mark (Red).svg' |
|||
}, |
|||
delete = { |
|||
class = 'mbox-delete', |
|||
image = 'Alert Mark (Red).svg' |
|||
}, |
|||
content = { |
|||
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, |
|||
allowBlankParams = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'}, |
|||
allowSmall = true, |
|||
substCheck = true, |
|||
classes = {'mbox', 'imbox'}, |
|||
allowId = true, |
|||
below = 'below', |
|||
imageEmptyCell = true, |
|||
imageCheckBlank = true, |
|||
imageSmallSize = '20x20px', |
|||
imageCellDiv = true, |
|||
useCollapsibleTextFields = true, |
|||
imageRightNone = true, |
|||
templateCategory = '文件信息模板' |
|||
} |
|||
local cmbox = { -- 保留自中医百科:分类命名空间消息框(外观统一为 mbox 系) |
|||
types = { |
|||
speedy = { |
|||
class = 'mbox-speedy', |
|||
image = 'Cross Mark (Red).svg' |
|||
}, |
|||
delete = { |
|||
class = 'mbox-delete', |
|||
image = 'Alert Mark (Red).svg' |
|||
}, |
|||
content = { |
|||
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, |
|||
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 = '分类信息模板' |
|||
} |
} |
||
| 第414行: | 第247行: | ||
fmbox = fmbox, |
fmbox = fmbox, |
||
ombox = ombox, |
ombox = ombox, |
||
tmbox = tmbox |
tmbox = tmbox |
||
imbox = imbox, |
|||
cmbox = cmbox |
|||
} |
} |
||
2026年8月7日 (五) 10:42的最新版本
local ambox = {
types = {
speedy = {
class = 'mbox-speedy',
image = 'Cross Mark (Red).svg'
},
delete = {
class = 'mbox-delete',
image = 'Alert Mark (Red).svg'
},
content = {
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.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 = 'Alert Mark (Red).svg'
},
editnotice = {
class = 'fmbox-editnotice',
image = 'Information Mark (Blue).svg'
},
system = {
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
types = {
speedy = {
class = 'mbox-speedy',
image = 'Cross Mark (Red).svg'
},
delete = {
class = 'mbox-delete',
image = 'Alert Mark (Red).svg'
},
content = {
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.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,
}
local tmbox = {
types = {
speedy = {
class = 'mbox-speedy',
image = 'Cross Mark (Red).svg'
},
delete = {
class = 'mbox-delete',
image = 'Alert Mark (Red).svg'
},
content = {
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'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'mbox', 'tmbox'},
allowId = true,
allowSmall = true,
below = 'below',
imageRightNone = true,
imageEmptyCell = true,
imageEmptyCellStyle = true,
templateCategory = '讨论信息模板'
}
return {
ambox = ambox,
fmbox = fmbox,
ombox = ombox,
tmbox = tmbox
}