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

闲敲棋子落灯花​(留言 | 贡献)
创建页面,内容为“-------------------------------------------------------------------------------- -- Message box configuration -- -- -- -- This module contains configuration data for Module:Message box. -- -------------------------------------------------------------------------------- return { -- Global styles applying to all *mboxes ['@glob…”
IdleTap-bot​(留言 | 贡献)
配置对齐求闻版:统一 mbox-* 类,替换不配套的 Wikimedia 标准版
第1行: 第1行:
--------------------------------------------------------------------------------
local ambox = {
--                          Message box configuration                        --
types = {
--                                                                            --
speedy = {
-- This module contains configuration data for [[Module:Message box]].       --
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',
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'}
}


return {
local fmbox = {
-- Global styles applying to all *mboxes
types = {
['@global'] = {
warning = {
templatestyles = 'Module:Message box/mbox.css'
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
}


ambox = {
local ombox = { -- all styles migrated to mbox
types = {
types = {
speedy = {
speedy = {
class = 'ambox-speedy',
class = 'mbox-speedy',
image = 'Ambox warning pn.svg'
image = 'Cross Mark (Red).svg'
},
delete = {
class = 'ambox-delete',
image = 'Ambox warning pn.svg'
},
content = {
class = 'ambox-content',
image = 'Ambox important.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.svg'
},
notice = {
class = 'ambox-notice',
image = 'Information icon4.svg'
}
},
},
default                    = 'notice',
delete = {
allowBlankParams            = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
class = 'mbox-delete',
allowSmall                  = true,
image = 'Alert Mark (Red).svg'
smallParam                  = 'left',
},
smallClass                  = 'mbox-small-left',
content = {
substCheck                  = true,
class = 'mbox-content',
classes                    = {'metadata', 'ambox'},
image = 'Alert Mark (Orange).svg'
usePlainlinksParam          = true,
},
allowId                    = true,
style = {
imageEmptyCell              = true,
class = 'mbox-style',
imageCheckBlank            = true,
image = 'Edit-clear.svg'
imageSmallSize              = '20x20px',
},
imageCellDiv                = true,
move = {
useCollapsibleTextFields    = true,
class = 'mbox-move',
imageRightNone              = true,
image = 'Merge-split-transwiki default.svg'
sectionDefault              = '條目',
},
allowMainspaceCategories    = true,
protection = {
templateCategory            = '條目訊息模板',
class = 'mbox-protection',
    templateCategoryRequireName = true,
image = 'Semi-protection-shackle-keyhole.svg'
templateErrorCategory      = '缺少參數的條目訊息模板',
},
templateErrorParamsToCheck  = {'issue', 'fix', 'subst'},
notice = {
templatestyles              = 'Template:Ambox/style.css'
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',
cmbox = {
showInvalidTypeError        = true,
types = {
allowBlankParams            = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
speedy = {
allowSmall                  = true,
class = 'cmbox-speedy',
substCheck                  = true,
image = 'Ambox warning pn.svg'
classes                    = {'mbox', 'ombox'},
},
allowId                    = true,
delete = {
    below                      = 'below',
class = 'cmbox-delete',
imageEmptyCell              = true,
image = 'Ambox warning pn.svg'
imageCheckBlank            = true,
},
imageSmallSize              = '20x20px',
content = {
imageCellDiv                = true,
class = 'cmbox-content',
useCollapsibleTextFields    = true,
image = 'Ambox important.svg'
imageRightNone              = true,
},
}
style = {
 
class = 'cmbox-style',
local tmbox = {
image = 'Edit-clear.svg'
types = {
},
speedy = {
move = {
class = 'mbox-speedy',
class = 'cmbox-move',
image = 'Cross Mark (Red).svg'
image = 'Merge-split-transwiki default.svg'
},
protection = {
class = 'cmbox-protection',
image = 'Semi-protection-shackle.svg'
},
notice = {
class = 'cmbox-notice',
image = 'Information icon4.svg'
}
},
},
default              = 'notice',
delete = {
showInvalidTypeError = true,
class = 'mbox-delete',
classes              = {'cmbox'},
image = 'Alert Mark (Red).svg'
usePlainlinksParam  = true,
},
imageEmptyCell      = true,
content = {
templatestyles      = 'Template:Cmbox/style.css'
class = 'mbox-content',
},
image = 'Alert Mark (Orange).svg'
},
fmbox = {
style = {
types = {
class = 'mbox-style',
warning = {
image = 'Edit-clear.svg '
class = 'fmbox-warning',
image = 'Ambox warning pn.svg'
},
editnotice = {
class = 'fmbox-editnotice',
image = 'Information icon4.svg'
},
system = {
class = 'fmbox-system',
image = 'Information icon4.svg'
}
},
},
default              = 'system',
move = {
showInvalidTypeError = true,
class = 'mbox-move',
allowId              = true,
image = 'Merge-split-transwiki default.svg'
classes              = {'fmbox'},
usePlainlinksParam  = true,
imageEmptyCell      = false,
imageRightNone      = false,
templatestyles      = 'Template:Fmbox/style.css'
},
imbox = {
types = {
speedy = {
class = 'imbox-speedy',
image = 'Ambox warning pn.svg'
},
delete = {
class = 'imbox-delete',
image = 'Ambox warning pn.svg'
},
content = {
class = 'imbox-content',
image = 'Ambox important.svg'
},
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'
},
notice = {
class = 'imbox-notice',
image = 'Information icon4.svg'
}
},
},
default              = 'notice',
protection = {
showInvalidTypeError = true,
class = 'mbox-protection',
classes              = {'imbox'},
image = 'Semi-protection-shackle-keyhole.svg'
usePlainlinksParam  = true,
imageEmptyCell      = true,
below                = true,
templateCategory    = '檔案訊息模板',
templatestyles      = 'Template:Imbox/style.css'
},
ombox = {
types = {
speedy = {
class = 'ombox-speedy',
image = 'Ambox warning pn.svg'
},
delete = {
class = 'ombox-delete',
image = 'Ambox warning pn.svg'
},
content = {
class = 'ombox-content',
image = 'Ambox important.svg'
},
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 = 'Information icon4.svg'
}
},
},
default              = 'notice',
notice = {
showInvalidTypeError = true,
class = 'mbox-notice',
classes              = {'ombox'},
image = 'Information Mark (Blue).svg'
usePlainlinksParam  = true,
}
allowSmall          = true,
imageEmptyCell      = true,
imageRightNone      = true,
templatestyles      = 'Template:Ombox/style.css'
},
},
default              = 'notice',
tmbox = {
showInvalidTypeError = true,
types = {
classes              = {'mbox', 'tmbox'},
speedy = {
allowId              = true,
class = 'tmbox-speedy',
allowSmall          = true,
image = 'Ambox warning pn.svg'
    below                = 'below',
},
imageRightNone      = true,
delete = {
imageEmptyCell      = true,
class = 'tmbox-delete',
imageEmptyCellStyle  = true,
image = 'Ambox warning pn.svg'
templateCategory    = '讨论信息模板'
},
}
content = {
 
class = 'tmbox-content',
return {
image = 'Ambox important.svg'
ambox = ambox,
},
fmbox = fmbox,
style = {
ombox = ombox,
class = 'tmbox-style',
tmbox = tmbox
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 = 'Information icon4.svg'
}
},
default              = 'notice',
showInvalidTypeError = true,
classes              = {'tmbox'},
usePlainlinksParam  = true,
allowId              = true,
allowSmall          = true,
imageRightNone      = true,
imageEmptyCell      = true,
imageEmptyCellStyle  = true,
templateCategory    = '討論訊息模板',
templatestyles      = 'Template:Tmbox/style.css'
}
}
}