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

来自Tone Sphere 中文维基
跳转到导航 跳转到搜索
无编辑摘要
无编辑摘要
 
(未显示同一用户的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
}
}

2021年2月9日 (二) 20:57的最新版本

此模块的文档可以在模块:Message box/configuration/doc创建

return {
	ambox = {
		types = {
			speedy = {
				class = 'ambox-speedy',
				image = 'Ambox warning pn.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-keyhole.svg'
			},
			notice = {
				class = 'ambox-notice',
				image = 'Information icon4.svg'
			}
		},
		default                     = 'notice',
		allowBlankParams            = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
		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'},
	},
	
	cmbox = {
		types = {
			speedy = {
				class = 'cmbox-speedy',
				image = 'Ambox warning pn.svg'
			},
			delete = {
				class = 'cmbox-delete',
				image = 'Ambox warning pn.svg'
			},
			content = {
				class = 'cmbox-content',
				image = 'Ambox important.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 = 'Information icon4.svg'
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'cmbox'},
		imageEmptyCell       = true
	},
	
	fmbox = {
		types = {
			warning = {
				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',
		showInvalidTypeError = true,
		classes              = {'fmbox'},
		imageEmptyCell       = false,
		imageRightNone       = false
	},
	
	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-keyhole.svg'
			},
			license = {
				class = 'imbox-license licensetpl',
				image = 'Imbox license.png' -- @todo We need an SVG version of this
			},
			featured = {
				class = 'imbox-featured',
				image = 'Cscr-featured.svg'
			},
			notice = {
				class = 'imbox-notice',
				image = 'Information icon4.svg'
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'imbox'},
		imageEmptyCell       = true,
		below                = true,
		templateCategory     = '档案讯息模板'
	},
	
	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-keyhole.svg'
			},
			notice = {
				class = 'ombox-notice',
				image = 'Information icon4.svg'
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'ombox'},
		usePlainlinksParam   = true,
		allowSmall           = true,
		imageEmptyCell       = true,
		imageRightNone       = true,
	},
	
	tmbox = {
		types = {
			speedy = {
				class = 'tmbox-speedy',
				image = 'Ambox warning pn.svg'
			},
			delete = {
				class = 'tmbox-delete',
				image = 'Ambox warning pn.svg'
			},
			content = {
				class = 'tmbox-content',
				image = 'Ambox important.svg'
			},
			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-keyhole.svg'
			},
			notice = {
				class = 'tmbox-notice',
				image = 'Information icon4.svg'
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'tmbox'},
		allowSmall           = true,
		imageRightNone       = true,
		imageEmptyCell       = true,
		imageEmptyCellStyle  = true,
		templateCategory     = '讨论讯息模板'
	}
}