模块:Message box/configuration:修订间差异

AltracasysHC留言 | 贡献
无编辑摘要
AltracasysHC留言 | 贡献
无编辑摘要
 
(未显示同一用户的2个中间版本)
第1行: 第1行:
local ambox = {
return {
types = {
ambox = {
speedy = {
types = {
class = 'ambox-speedy',
speedy = {
image = 'Ambox warning pn.png'
class = 'ambox-speedy',
},
image = 'Ambox warning pn.svg'
delete = {
},
class = 'ambox-delete',
delete = {
image = 'Ambox warning pn.png'
class = 'ambox-delete',
},
image = 'Ambox warning pn.svg'
content = {
},
class = 'ambox-content',
content = {
image = 'Ambox important.png'
class = 'ambox-content',
},
image = 'Ambox important.svg'
style = {
},
class = 'ambox-style',
style = {
image = 'Edit-clear.png'
class = 'ambox-style',
},
image = 'Edit-clear.svg'
move = {
},
class = 'ambox-move',
move = {
image = 'Merge-split-transwiki default.png'
class = 'ambox-move',
},
image = 'Merge-split-transwiki default.svg'
protection = {
},
class = 'ambox-protection',
protection = {
image = 'Semi-protection-shackle-keyhole.png'
class = 'ambox-protection',
image = 'Semi-protection-shackle-keyhole.svg'
},
notice = {
class = 'ambox-notice',
image = 'Information icon4.svg'
}
},
},
notice = {
default                    = 'notice',
class = 'ambox-notice',
allowBlankParams            = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
image = 'Information icon4.png'
allowSmall                  = true,
}
smallParam                  = 'left',
smallClass                  = 'mbox-small-left',
substCheck                  = true,
classes                    = {'metadata', 'ambox'},
usePlainlinksParam          = true,
allowId                    = true,
imageEmptyCell              = true,
imageCheckBlank            = true,
imageSmallSize              = '20x20px',
imageCellDiv                = true,
useCollapsibleTextFields    = true,
imageRightNone              = true,
sectionDefault              = '条目',
allowMainspaceCategories    = true,
templateCategory            = '条目讯息模板',
        templateCategoryRequireName = true,
templateErrorCategory      = '缺少参数的条目讯息模板',
templateErrorParamsToCheck  = {'issue', 'fix', 'subst'},
},
},
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 = 'Ambox warning pn.svg'
classes                    = {'metadata', 'ambox'},
},
usePlainlinksParam          = true,
delete = {
allowId                    = true,
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,
},
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'
 
},
local cmbox = {
protection = {
types = {
class = 'cmbox-protection',
speedy = {
image = 'Semi-protection-shackle-keyhole.svg'
class = 'cmbox-speedy',
},
image = 'Ambox warning pn.png'
notice = {
},
class = 'cmbox-notice',
delete = {
image = 'Information icon4.svg'
class = 'cmbox-delete',
}
image = 'Ambox warning pn.png'
},
content = {
class = 'cmbox-content',
image = 'Ambox important.png'
},
style = {
class = 'cmbox-style',
image = 'Edit-clear.png'
},
move = {
class = 'cmbox-move',
image = 'Merge-split-transwiki default.png'
},
protection = {
class = 'cmbox-protection',
image = 'Semi-protection-shackle-keyhole.png'
},
},
notice = {
default              = 'notice',
class = 'cmbox-notice',
showInvalidTypeError = true,
image = 'Information icon4.png'
classes              = {'cmbox'},
}
imageEmptyCell      = true
},
},
default              = 'notice',
showInvalidTypeError = true,
fmbox = {
classes              = {'cmbox'},
types = {
usePlainlinksParam  = true,
warning = {
imageEmptyCell      = true
class = 'fmbox-warning',
}
image = 'Ambox warning pn.svg'
 
},
local fmbox = {
editnotice = {
types = {
class = 'fmbox-editnotice',
warning = {
image = 'Information icon4.svg'
class = 'fmbox-warning',
},
image = 'Ambox warning pn.png'
system = {
},
class = 'fmbox-system',
editnotice = {
image = 'Information icon4.svg'
class = 'fmbox-editnotice',
}
image = 'Information icon4.png'
},
},
system = {
default              = 'system',
class = 'fmbox-system',
showInvalidTypeError = true,
image = 'Information icon4.png'
classes              = {'fmbox'},
}
imageEmptyCell      = false,
imageRightNone      = false
},
},
default              = 'system',
showInvalidTypeError = true,
imbox = {
allowId                = true,
types = {
classes              = {'fmbox'},
speedy = {
usePlainlinksParam  = true,
class = 'imbox-speedy',
imageEmptyCell      = false,
image = 'Ambox warning pn.svg'
imageRightNone      = false
},
}
delete = {
 
class = 'imbox-delete',
local imbox = {
image = 'Ambox warning pn.svg'
types = {
},
speedy = {
content = {
class = 'imbox-speedy',
class = 'imbox-content',
image = 'Ambox warning pn.png'
image = 'Ambox important.svg'
},
},
delete = {
style = {
class = 'imbox-delete',
class = 'imbox-style',
image = 'Ambox warning pn.png'
image = 'Edit-clear.svg'
},
},
content = {
move = {
class = 'imbox-content',
class = 'imbox-move',
image = 'Ambox important.png'
image = 'Merge-split-transwiki default.svg'
},
},
style = {
protection = {
class = 'imbox-style',
class = 'imbox-protection',
image = 'Edit-clear.png'
image = 'Semi-protection-shackle-keyhole.svg'
},
},
move = {
license = {
class = 'imbox-move',
class = 'imbox-license licensetpl',
image = 'Merge-split-transwiki default.png'
image = 'Imbox license.png' -- @todo We need an SVG version of this
},
},
protection = {
featured = {
class = 'imbox-protection',
class = 'imbox-featured',
image = 'Semi-protection-shackle-keyhole.png'
image = 'Cscr-featured.svg'
},
},
license = {
notice = {
class = 'imbox-license',
class = 'imbox-notice',
image = 'Imbox license.png'
image = 'Information icon4.svg'
},
}
featured = {
class = 'imbox-featured',
image = 'Cscr-featured.png'
},
},
notice = {
default              = 'notice',
class = 'imbox-notice',
showInvalidTypeError = true,
image = 'Information icon4.png'
classes              = {'imbox'},
}
imageEmptyCell      = true,
below                = true,
templateCategory    = '档案讯息模板'
},
},
default              = 'notice',
showInvalidTypeError = true,
ombox = {
classes              = {'imbox'},
types = {
usePlainlinksParam  = true,
speedy = {
imageEmptyCell      = true,
class = 'ombox-speedy',
below                = true,
image = 'Ambox warning pn.svg'
templateCategory    = '档案讯息模板'
},
}
delete = {
 
class = 'ombox-delete',
local ombox = {
image = 'Ambox warning pn.svg'
types = {
},
speedy = {
content = {
class = 'ombox-speedy',
class = 'ombox-content',
image = 'Ambox warning pn.png'
image = 'Ambox important.svg'
},
},
delete = {
style = {
class = 'ombox-delete',
class = 'ombox-style',
image = 'Ambox warning pn.png'
image = 'Edit-clear.svg'
},
},
content = {
move = {
class = 'ombox-content',
class = 'ombox-move',
image = 'Ambox important.png'
image = 'Merge-split-transwiki default.svg'
},
},
style = {
protection = {
class = 'ombox-style',
class = 'ombox-protection',
image = 'Edit-clear.png'
image = 'Semi-protection-shackle-keyhole.svg'
},
},
move = {
notice = {
class = 'ombox-move',
class = 'ombox-notice',
image = 'Merge-split-transwiki default.png'
image = 'Information icon4.svg'
},
}
protection = {
class = 'ombox-protection',
image = 'Semi-protection-shackle-keyhole.png'
},
notice = {
class = 'ombox-notice',
image = 'Information icon4.png'
},
},
note = {
default              = 'notice',
class = 'ombox-notice',
showInvalidTypeError = true,
image = 'Information icon4.png'
classes              = {'ombox'},
}
usePlainlinksParam  = true,
allowSmall          = true,
imageEmptyCell      = true,
imageRightNone      = true,
},
},
default              = 'notice',
showInvalidTypeError = true,
tmbox = {
classes              = {'ombox'},
types = {
usePlainlinksParam  = true,
speedy = {
allowSmall          = true,
class = 'tmbox-speedy',
imageEmptyCell      = true,
image = 'Ambox warning pn.svg'
imageRightNone      = true
},
}
delete = {
 
class = 'tmbox-delete',
local tmbox = {
image = 'Ambox warning pn.svg'
types = {
},
speedy = {
content = {
class = 'tmbox-speedy',
class = 'tmbox-content',
image = 'Ambox warning pn.png'
image = 'Ambox important.svg'
},
},
delete = {
style = {
class = 'tmbox-delete',
class = 'tmbox-style',
image = 'Ambox warning pn.png'
image = 'Edit-clear.svg'
},
},
content = {
move = {
class = 'tmbox-content',
class = 'tmbox-move',
image = 'Ambox important.png'
image = 'Merge-split-transwiki default.svg'
},
},
style = {
protection = {
class = 'tmbox-style',
class = 'tmbox-protection',
image = 'Edit-clear.png '
image = 'Semi-protection-shackle-keyhole.svg'
},
},
move = {
notice = {
class = 'tmbox-move',
class = 'tmbox-notice',
image = 'Merge-split-transwiki default.png'
image = 'Information icon4.svg'
},
}
protection = {
class = 'tmbox-protection',
image = 'Semi-protection-shackle-keyhole.png'
},
},
notice = {
default              = 'notice',
class = 'tmbox-notice',
showInvalidTypeError = true,
image = 'Information icon4.png'
classes              = {'tmbox'},
}
allowSmall          = true,
},
imageRightNone      = true,
default              = 'notice',
imageEmptyCell      = true,
showInvalidTypeError = true,
imageEmptyCellStyle  = true,
classes              = {'tmbox'},
templateCategory    = '讨论讯息模板'
usePlainlinksParam  = true,
}
allowId              = true,
allowSmall          = true,
imageRightNone      = true,
imageEmptyCell      = true,
imageEmptyCellStyle  = true,
templateCategory    = '讨论讯息模板'
}
 
return {
ambox = ambox,
cmbox = cmbox,
fmbox = fmbox,
imbox = imbox,
ombox = ombox,
tmbox = tmbox
}
}