跳转到内容

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

勤求古训,博采众方
删除的内容 添加的内容
替换为 mworg 版 Message box 配置(OOjs UI 图标)
小无编辑摘要
 
(未显示2个用户的3个中间版本)
第1行: 第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'
--------------------------------------------------------------------------------

return {
ambox = {
types = {
speedy = {
class = 'ambox-speedy',
image = 'OOjs UI icon clock-destructive.svg'
},
delete = {
class = 'ambox-delete',
image = 'OOjs UI icon alert-destructive.svg'
},
warning = { -- alias for content
class = 'ambox-content',
image = 'OOjs UI icon notice-warning.svg'
},
content = {
class = 'ambox-content',
image = 'OOjs UI icon notice-warning.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-keyhole.svg'
},
notice = {
class = 'ambox-notice',
image = 'OOjs UI icon information-progressive.svg'
}
},
},
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', 'plainlinks', 'ambox'},
imageEmptyCell = true,
imageCheckBlank = true,
imageSmallSize = '20x20px',
imageCellDiv = true,
useCollapsibleTextFields = true,
imageRightNone = true,
sectionDefault = 'article',
allowMainspaceCategories = true,
templateCategory = 'Article message templates',
templateCategoryRequireName = true,
templateErrorCategory = nil,
templateErrorParamsToCheck = {'issue', 'fix', 'subst'}
},
cmbox = {
types = {
speedy = {
class = 'cmbox-speedy',
image = 'OOjs UI icon clock-destructive.svg'
},
delete = {
class = 'cmbox-delete',
image = 'OOjs UI icon alert-destructive.svg'
},
content = {
class = 'cmbox-content',
image = 'OOjs UI icon notice-warning.svg'
},
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-keyhole.svg'
},
notice = {
class = 'cmbox-notice',
image = 'OOjs UI icon information-progressive.svg'
},
caution = {
class = 'cmbox-style',
image = 'Ambox warning yellow.svg'
}
},
},
content = {
default = 'notice',
class = 'mbox-content',
showInvalidTypeError = true,
image = 'Alert Mark (Orange).svg'
classes = {'plainlinks', 'cmbox'},
imageEmptyCell = true
},
fmbox = {
types = {
warning = {
class = 'fmbox-warning',
image = 'OOjs UI icon clock-destructive.svg'
},
editnotice = {
class = 'fmbox-editnotice',
image = 'OOjs UI icon information-progressive.svg'
},
system = {
class = 'fmbox-system',
image = 'OOjs UI icon information-progressive.svg'
}
},
},
style = {
default = 'system',
class = 'mbox-style',
showInvalidTypeError = true,
image = 'Edit-clear.svg'
classes = {'plainlinks', 'fmbox'},
},
imageEmptyCell = false,
move = {
imageRightNone = false
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'},
imbox = {
allowSmall = true,
types = {
smallParam = 'left',
speedy = {
smallClass = 'mbox-small-left',
class = 'imbox-speedy',
substCheck = true,
image = 'OOjs UI icon clock-destructive.svg'
classes = {'mbox', 'ambox', 'metadata', 'plainlinks'},
},
allowId = true,
delete = {
below = 'below',
class = 'imbox-delete',
imageEmptyCell = true,
image = 'OOjs UI icon alert-destructive.svg'
imageCheckBlank = true,
},
imageSmallSize = '20x20px',
content = {
imageCellDiv = true,
class = 'imbox-content',
useCollapsibleTextFields = true,
image = 'OOjs UI icon notice-warning.svg'
imageRightNone = true,
},
sectionDefault = '条目',
style = {
allowMainspaceCategories = true,
class = 'imbox-style',
templateCategory = '条目信息模板',
image = 'Edit-clear.svg'
templateCategoryRequireName = true,
},
templateErrorCategory = '缺少参数的条目信息模板',
move = {
templateErrorParamsToCheck = {'issue', 'fix', 'subst'}
class = 'imbox-move',
}
image = 'Merge-split-transwiki default.svg'

},
protection = {
local fmbox = {
types = {
class = 'imbox-protection',
warning = {
image = 'Semi-protection-shackle-keyhole.svg'
class = 'fmbox-warning',
},
image = 'Alert Mark (Red).svg'
license = {
class = 'imbox-license licensetpl',
image = 'Imbox-license.svg'
},
featured = {
class = 'imbox-featured',
image = 'Cscr-featured.svg'
},
notice = {
class = 'imbox-notice',
image = 'OOjs UI icon information-progressive.svg'
}
},
},
editnotice = {
default = 'notice',
class = 'fmbox-editnotice',
showInvalidTypeError = true,
image = 'Information Mark (Blue).svg'
classes = {'imbox'},
},
usePlainlinksParam = true,
system = {
imageEmptyCell = true,
class = 'fmbox-system',
below = true,
image = 'Information Mark (Blue).svg'
templateCategory = 'File message boxes'
},
copyright = {
class = 'fmbox-editnotice fmbox-copyright',
image = 'Edit Mark (Blue).svg'
}
},
},
default = 'system',
showInvalidTypeError = true,
ombox = {
allowId = true,
types = {
below = 'below',
speedy = {
classes = {'fmbox', 'plainlinks'},
class = 'ombox-speedy',
imageEmptyCell = false,
image = 'OOjs UI icon clock-destructive.svg'
imageRightNone = false
},
}
delete = {

class = 'ombox-delete',
local ombox = { -- all styles migrated to mbox
image = 'OOjs UI icon alert-destructive.svg'
types = {
},
speedy = {
warning = { -- alias for content
class = 'ombox-content',
class = 'mbox-speedy',
image = 'OOjs UI icon notice-warning.svg'
image = 'Cross Mark (Red).svg'
},
},
content = {
delete = {
class = 'ombox-content',
class = 'mbox-delete',
image = 'OOjs UI icon notice-warning.svg'
image = 'Alert Mark (Red).svg'
},
},
style = {
content = {
class = 'ombox-style',
class = 'mbox-content',
image = 'Edit-clear.svg'
image = 'Alert Mark (Orange).svg'
},
},
move = {
style = {
class = 'ombox-move',
class = 'mbox-style',
image = 'Merge-split-transwiki default.svg'
image = 'Edit-clear.svg'
},
},
protection = {
move = {
class = 'ombox-protection',
class = 'mbox-move',
image = 'Semi-protection-shackle-keyhole.svg'
image = 'Merge-split-transwiki default.svg'
},
},
notice = {
protection = {
class = 'ombox-notice',
class = 'mbox-protection',
image = 'OOjs UI icon information-progressive.svg'
image = 'Semi-protection-shackle-keyhole.svg'
},
},
critical = {
notice = {
class = 'mbox-critical',
class = 'mbox-notice',
image = 'OOjs UI icon clock-destructive.svg'
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 = {
default = 'notice',
class = 'mbox-disambig',
showInvalidTypeError = true,
image = 'Disambig gray.svg'
classes = {'plainlinks', 'ombox'},
}
allowSmall = true,
imageEmptyCell = true,
imageRightNone = true
},
},
default = 'notice',
showInvalidTypeError = true,
tmbox = {
allowBlankParams = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
types = {
allowSmall = true,
speedy = {
substCheck = true,
class = 'tmbox-speedy',
classes = {'mbox', 'ombox'},
image = 'OOjs UI icon clock-destructive.svg'
allowId = true,
},
below = 'below',
delete = {
imageEmptyCell = true,
class = 'tmbox-delete',
imageCheckBlank = true,
image = 'OOjs UI icon alert-destructive.svg'
imageSmallSize = '20x20px',
},
imageCellDiv = true,
content = {
useCollapsibleTextFields = true,
class = 'tmbox-content',
imageRightNone = true,
image = 'OOjs UI icon notice-warning.svg'
}
},

style = {
local tmbox = {
class = 'tmbox-style',
types = {
image = 'Edit-clear.svg'
speedy = {
},
move = {
class = 'mbox-speedy',
class = 'tmbox-move',
image = 'Cross Mark (Red).svg'
image = 'Merge-split-transwiki default.svg'
},
protection = {
class = 'tmbox-protection',
image = 'Semi-protection-shackle-keyhole.svg'
},
notice = {
class = 'tmbox-notice',
image = 'OOjs UI icon information-progressive.svg'
}
},
},
delete = {
default = 'notice',
class = 'mbox-delete',
showInvalidTypeError = true,
image = 'Alert Mark (Red).svg'
classes = {'plainlinks', 'tmbox'},
},
allowSmall = true,
content = {
imageRightNone = true,
class = 'mbox-content',
imageEmptyCell = true,
image = 'Alert Mark (Orange).svg'
imageEmptyCellStyle = true,
},
templateCategory = 'Talk message boxes'
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
}
}

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
}