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

来自Arcaea中文维基
(创建页面,内容为“local ambox = { types = { speedy = { class = 'ambox-speedy', image = 'Ambox warning pn.svg' }, delete = { class = 'ambox-delete', image = 'Ambox w…”)
 
无编辑摘要
 
(未显示同一用户的2个中间版本)
第3行: 第3行:
speedy = {
speedy = {
class = 'ambox-speedy',
class = 'ambox-speedy',
image = 'Ambox warning pn.svg'
image = 'Ambox warning pn.png'
},
},
delete = {
delete = {
class = 'ambox-delete',
class = 'ambox-delete',
image = 'Ambox warning pn.svg'
image = 'Ambox warning pn.png'
},
},
content = {
content = {
class = 'ambox-content',
class = 'ambox-content',
image = 'Ambox important.svg'
image = 'Ambox important.png'
},
},
style = {
style = {
class = 'ambox-style',
class = 'ambox-style',
image = 'Edit-clear.svg'
image = 'Edit-clear.png'
},
},
move = {
move = {
class = 'ambox-move',
class = 'ambox-move',
image = 'Merge-split-transwiki default.svg'
image = 'Merge-split-transwiki default.png'
},
},
protection = {
protection = {
class = 'ambox-protection',
class = 'ambox-protection',
image = 'Semi-protection-shackle-keyhole.svg'
image = 'Semi-protection-shackle-keyhole.png'
},
},
notice = {
notice = {
class = 'ambox-notice',
class = 'ambox-notice',
image = 'Information icon4.svg'
image = 'Information icon4.png'
}
}
},
},
第45行: 第45行:
useCollapsibleTextFields   = true,
useCollapsibleTextFields   = true,
imageRightNone        = true,
imageRightNone        = true,
sectionDefault        = ' 目',
sectionDefault        = ' 目',
allowMainspaceCategories   = true,
allowMainspaceCategories   = true,
templateCategory       = ' 息模板',
templateCategory       = ' 息模板',
      templateCategoryRequireName = true,
      templateCategoryRequireName = true,
templateErrorCategory    = '缺少 參數 息模板',
templateErrorCategory    = '缺少 参数 息模板',
templateErrorParamsToCheck  = {'issue', 'fix', 'subst'}
templateErrorParamsToCheck  = {'issue', 'fix', 'subst'}
}
}
第57行: 第57行:
speedy = {
speedy = {
class = 'cmbox-speedy',
class = 'cmbox-speedy',
image = 'Ambox warning pn.svg'
image = 'Ambox warning pn.png'
},
},
delete = {
delete = {
class = 'cmbox-delete',
class = 'cmbox-delete',
image = 'Ambox warning pn.svg'
image = 'Ambox warning pn.png'
},
},
content = {
content = {
class = 'cmbox-content',
class = 'cmbox-content',
image = 'Ambox important.svg'
image = 'Ambox important.png'
},
},
style = {
style = {
class = 'cmbox-style',
class = 'cmbox-style',
image = 'Edit-clear.svg'
image = 'Edit-clear.png'
},
},
move = {
move = {
class = 'cmbox-move',
class = 'cmbox-move',
image = 'Merge-split-transwiki default.svg'
image = 'Merge-split-transwiki default.png'
},
},
protection = {
protection = {
class = 'cmbox-protection',
class = 'cmbox-protection',
image = 'Semi-protection-shackle-keyhole.svg'
image = 'Semi-protection-shackle-keyhole.png'
},
},
notice = {
notice = {
class = 'cmbox-notice',
class = 'cmbox-notice',
image = 'Information icon4.svg'
image = 'Information icon4.png'
}
}
},
},
第95行: 第95行:
warning = {
warning = {
class = 'fmbox-warning',
class = 'fmbox-warning',
image = 'Ambox warning pn.svg'
image = 'Ambox warning pn.png'
},
},
editnotice = {
editnotice = {
class = 'fmbox-editnotice',
class = 'fmbox-editnotice',
image = 'Information icon4.svg'
image = 'Information icon4.png'
},
},
system = {
system = {
class = 'fmbox-system',
class = 'fmbox-system',
image = 'Information icon4.svg'
image = 'Information icon4.png'
}
}
},
},
第119行: 第119行:
speedy = {
speedy = {
class = 'imbox-speedy',
class = 'imbox-speedy',
image = 'Ambox warning pn.svg'
image = 'Ambox warning pn.png'
},
},
delete = {
delete = {
class = 'imbox-delete',
class = 'imbox-delete',
image = 'Ambox warning pn.svg'
image = 'Ambox warning pn.png'
},
},
content = {
content = {
class = 'imbox-content',
class = 'imbox-content',
image = 'Ambox important.svg'
image = 'Ambox important.png'
},
},
style = {
style = {
class = 'imbox-style',
class = 'imbox-style',
image = 'Edit-clear.svg'
image = 'Edit-clear.png'
},
},
move = {
move = {
class = 'imbox-move',
class = 'imbox-move',
image = 'Merge-split-transwiki default.svg'
image = 'Merge-split-transwiki default.png'
},
},
protection = {
protection = {
class = 'imbox-protection',
class = 'imbox-protection',
image = 'Semi-protection-shackle-keyhole.svg'
image = 'Semi-protection-shackle-keyhole.png'
},
},
license = {
license = {
第147行: 第147行:
featured = {
featured = {
class = 'imbox-featured',
class = 'imbox-featured',
image = 'Cscr-featured.svg'
image = 'Cscr-featured.png'
},
},
notice = {
notice = {
class = 'imbox-notice',
class = 'imbox-notice',
image = 'Information icon4.svg'
image = 'Information icon4.png'
}
}
},
},
第160行: 第160行:
imageEmptyCell    = true,
imageEmptyCell    = true,
below         = true,
below         = true,
templateCategory   = ' 息模板'
templateCategory   = ' 息模板'
}
}


第167行: 第167行:
speedy = {
speedy = {
class = 'ombox-speedy',
class = 'ombox-speedy',
image = 'Ambox warning pn.svg'
image = 'Ambox warning pn.png'
},
},
delete = {
delete = {
class = 'ombox-delete',
class = 'ombox-delete',
image = 'Ambox warning pn.svg'
image = 'Ambox warning pn.png'
},
},
content = {
content = {
class = 'ombox-content',
class = 'ombox-content',
image = 'Ambox important.svg'
image = 'Ambox important.png'
},
},
style = {
style = {
class = 'ombox-style',
class = 'ombox-style',
image = 'Edit-clear.svg'
image = 'Edit-clear.png'
},
},
move = {
move = {
class = 'ombox-move',
class = 'ombox-move',
image = 'Merge-split-transwiki default.svg'
image = 'Merge-split-transwiki default.png'
},
},
protection = {
protection = {
class = 'ombox-protection',
class = 'ombox-protection',
image = 'Semi-protection-shackle-keyhole.svg'
image = 'Semi-protection-shackle-keyhole.png'
},
},
notice = {
notice = {
class = 'ombox-notice',
class = 'ombox-notice',
image = 'Information icon4.svg'
image = 'Information icon4.png'
},
},
note = {
note = {
class = 'ombox-notice',
class = 'ombox-notice',
image = 'Information icon4.svg'
image = 'Information icon4.png'
}
}
},
},
第211行: 第211行:
speedy = {
speedy = {
class = 'tmbox-speedy',
class = 'tmbox-speedy',
image = 'Ambox warning pn.svg'
image = 'Ambox warning pn.png'
},
},
delete = {
delete = {
class = 'tmbox-delete',
class = 'tmbox-delete',
image = 'Ambox warning pn.svg'
image = 'Ambox warning pn.png'
},
},
content = {
content = {
class = 'tmbox-content',
class = 'tmbox-content',
image = 'Ambox important.svg'
image = 'Ambox important.png'
},
},
style = {
style = {
class = 'tmbox-style',
class = 'tmbox-style',
image = 'Edit-clear.svg '
image = 'Edit-clear.png '
},
},
move = {
move = {
class = 'tmbox-move',
class = 'tmbox-move',
image = 'Merge-split-transwiki default.svg'
image = 'Merge-split-transwiki default.png'
},
},
protection = {
protection = {
class = 'tmbox-protection',
class = 'tmbox-protection',
image = 'Semi-protection-shackle-keyhole.svg'
image = 'Semi-protection-shackle-keyhole.png'
},
},
notice = {
notice = {
class = 'tmbox-notice',
class = 'tmbox-notice',
image = 'Information icon4.svg'
image = 'Information icon4.png'
}
}
},
},
第247行: 第247行:
imageEmptyCell    = true,
imageEmptyCell    = true,
imageEmptyCellStyle  = true,
imageEmptyCellStyle  = true,
templateCategory   = ' 討論訊 息模板'
templateCategory   = ' 讨论讯 息模板'
}
}



2021年6月25日 (五) 18:08的最新版本

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

local ambox = {
	types = {
		speedy = {
			class = 'ambox-speedy',
			image = 'Ambox warning pn.png'
		},
		delete = {
			class = 'ambox-delete',
			image = 'Ambox warning pn.png'
		},
		content = {
			class = 'ambox-content',
			image = 'Ambox important.png'
		},
		style = {
			class = 'ambox-style',
			image = 'Edit-clear.png'
		},
		move = {
			class = 'ambox-move',
			image = 'Merge-split-transwiki default.png'
		},
		protection = {
			class = 'ambox-protection',
			image = 'Semi-protection-shackle-keyhole.png'
		},
		notice = {
			class = 'ambox-notice',
			image = 'Information icon4.png'
		}
	},
	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'}
}

local cmbox = {
	types = {
		speedy = {
			class = 'cmbox-speedy',
			image = 'Ambox warning pn.png'
		},
		delete = {
			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 = {
			class = 'cmbox-notice',
			image = 'Information icon4.png'
		}
	},
	default              = 'notice',
	showInvalidTypeError = true,
	classes              = {'cmbox'},
	usePlainlinksParam   = true,
	imageEmptyCell       = true
}

local fmbox = {
	types = {
		warning = {
			class = 'fmbox-warning',
			image = 'Ambox warning pn.png'
		},
		editnotice = {
			class = 'fmbox-editnotice',
			image = 'Information icon4.png'
		},
		system = {
			class = 'fmbox-system',
			image = 'Information icon4.png'
		}
	},
	default              = 'system',
	showInvalidTypeError = true,
	allowId                = true,
	classes              = {'fmbox'},
	usePlainlinksParam   = true,
	imageEmptyCell       = false,
	imageRightNone       = false
}

local imbox = {
	types = {
		speedy = {
			class = 'imbox-speedy',
			image = 'Ambox warning pn.png'
		},
		delete = {
			class = 'imbox-delete',
			image = 'Ambox warning pn.png'
		},
		content = {
			class = 'imbox-content',
			image = 'Ambox important.png'
		},
		style = {
			class = 'imbox-style',
			image = 'Edit-clear.png'
		},
		move = {
			class = 'imbox-move',
			image = 'Merge-split-transwiki default.png'
		},
		protection = {
			class = 'imbox-protection',
			image = 'Semi-protection-shackle-keyhole.png'
		},
		license = {
			class = 'imbox-license',
			image = 'Imbox license.png'
		},
		featured = {
			class = 'imbox-featured',
			image = 'Cscr-featured.png'
		},
		notice = {
			class = 'imbox-notice',
			image = 'Information icon4.png'
		}
	},
	default              = 'notice',
	showInvalidTypeError = true,
	classes              = {'imbox'},
	usePlainlinksParam   = true,
	imageEmptyCell       = true,
	below                = true,
	templateCategory     = '档案信息模板'
}

local ombox = {
	types = {
		speedy = {
			class = 'ombox-speedy',
			image = 'Ambox warning pn.png'
		},
		delete = {
			class = 'ombox-delete',
			image = 'Ambox warning pn.png'
		},
		content = {
			class = 'ombox-content',
			image = 'Ambox important.png'
		},
		style = {
			class = 'ombox-style',
			image = 'Edit-clear.png'
		},
		move = {
			class = 'ombox-move',
			image = 'Merge-split-transwiki default.png'
		},
		protection = {
			class = 'ombox-protection',
			image = 'Semi-protection-shackle-keyhole.png'
		},
		notice = {
			class = 'ombox-notice',
			image = 'Information icon4.png'
		},
		note = {
			class = 'ombox-notice',
			image = 'Information icon4.png'
		}
	},
	default              = 'notice',
	showInvalidTypeError = true,
	classes              = {'ombox'},
	usePlainlinksParam   = true,
	allowSmall           = true,
	imageEmptyCell       = true,
	imageRightNone       = true
}

local tmbox = {
	types = {
		speedy = {
			class = 'tmbox-speedy',
			image = 'Ambox warning pn.png'
		},
		delete = {
			class = 'tmbox-delete',
			image = 'Ambox warning pn.png'
		},
		content = {
			class = 'tmbox-content',
			image = 'Ambox important.png'
		},
		style = {
			class = 'tmbox-style',
			image = 'Edit-clear.png '
		},
		move = {
			class = 'tmbox-move',
			image = 'Merge-split-transwiki default.png'
		},
		protection = {
			class = 'tmbox-protection',
			image = 'Semi-protection-shackle-keyhole.png'
		},
		notice = {
			class = 'tmbox-notice',
			image = 'Information icon4.png'
		}
	},
	default              = 'notice',
	showInvalidTypeError = true,
	classes              = {'tmbox'},
	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
}