Module:Message box/configuration

来自跳舞的线及其饭制作品Wiki

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

local ambox = {
	types = {
		speedy = {
			class = 'ambox-speedy',
			image = 'Icon_critical.svg'
		},
		delete = {
			class = 'ambox-red',
			image = 'Icon_critical.svg'
		},
		content = {
			class = 'ambox-yellow',
			image = 'Icon_warning.svg'
		},
		style = {
			class = 'ambox-yellow',
			image = 'Icon_clear.svg'
		},
		move = {
			class = 'ambox-yellow',
			image = 'Icon_move.svg'
		},
		protection = {
			class = 'ambox-blue',
			image = 'Icon_protect.svg'
		},
		notice = {
			class = 'ambox-blue',
			image = 'Icon_info.svg'
		},
		ok = {
			class = 'ambox-green',
			image = 'Icon_ok.svg'
		},
        rule = {
			class = 'ambox-black',
			image = 'Icon_rule.svg'
		},
        featured = {
			class = 'ambox-featured',
			image = 'Icon_featured.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'}
}

local cmbox = {
	types = {
		speedy = {
			class = 'cmbox-speedy',
			image = 'Icon_critical.svg'
		},
		delete = {
			class = 'cmbox-red',
			image = 'Icon_critical.svg'
		},
		content = {
			class = 'cmbox-yellow',
			image = 'Icon_warning.svg'
		},
		style = {
			class = 'cmbox-yellow',
			image = 'Icon_clear.svg'
		},
		move = {
			class = 'cmbox-yellow',
			image = 'Icon_move.svg'
		},
		protection = {
			class = 'cmbox-blue',
			image = 'Icon_protect.svg'
		},
		notice = {
			class = 'cmbox-blue',
			image = 'Icon_info.svg'
		},
		ok = {
			class = 'cmbox-green',
			image = 'Icon_ok.svg'
		}
	},
	default              = 'notice',
	showInvalidTypeError = true,
	classes              = {'cmbox'},
	usePlainlinksParam   = true,
	imageEmptyCell       = true
}

local fmbox = {
	types = {
		warning = {
			class = 'fmbox-warning',
			image = 'Icon_critical.svg'
		},
		editnotice = {
			class = 'fmbox-editnotice',
			image = 'Icon_info.svg'
		},
		system = {
			class = 'fmbox-system',
			image = 'Icon_info.svg'
		}
	},
	default              = 'system',
	showInvalidTypeError = true,
	allowId                = true,
	classes              = {'fmbox'},
	usePlainlinksParam   = true,
	imageEmptyCell       = false,
	imageRightNone       = false
}

local imbox = {
	types = {
		speedy = {
			class = 'imbox-speedy',
			image = 'Icon_critical.svg'
		},
		delete = {
			class = 'imbox-red',
			image = 'Icon_critical.svg'
		},
		content = {
			class = 'imbox-yellow',
			image = 'Icon_warning.svg'
		},
		style = {
			class = 'imbox-yellow',
			image = 'Icon_clear.svg'
		},
		move = {
			class = 'imbox-yellow',
			image = 'Icon_move.svg'
		},
		protection = {
			class = 'imbox-blue',
			image = 'Icon_protect.svg'
		},
		license = {
			class = 'imbox-black',
			image = 'Icon_license.svg'
		},
		featured = {
			class = 'imbox-featured',
			image = 'Icon_featured.svg'
		},
		notice = {
			class = 'imbox-blue',
			image = 'Icon_info.svg'
		},
		ok = {
			class = 'imbox-green',
			image = 'Icon_ok.svg'
		}
	},
	default              = 'notice',
	showInvalidTypeError = true,
	classes              = {'imbox'},
	usePlainlinksParam   = true,
	imageEmptyCell       = true,
	below                = true,
	templateCategory     = '档案信息模板'
}

local ombox = {
	types = {
		speedy = {
			class = 'ombox-speedy',
			image = 'Icon_critical.svg'
		},
		delete = {
			class = 'ombox-red',
			image = 'Icon_critical.svg'
		},
		content = {
			class = 'ombox-yellow',
			image = 'Icon_warning.svg'
		},
		style = {
			class = 'ombox-yellow',
			image = 'Icon_clear.svg'
		},
		move = {
			class = 'ombox-yellow',
			image = 'Icon_move.svg'
		},
		protection = {
			class = 'ombox-blue',
			image = 'Icon_protect.svg'
		},
		notice = {
			class = 'ombox-blue',
			image = 'Icon_info.svg'
		},
		note = {
			class = 'ombox-blue',
			image = 'Icon_info.svg'
		},
		ok = {
			class = 'ombox-green',
			image = 'Icon_ok.svg'
		},
        rule = {
			class = 'ombox-black',
			image = 'Icon_rule.svg'
		}
	},
	default              = 'notice',
	showInvalidTypeError = true,
	classes              = {'ombox'},
	usePlainlinksParam   = true,
	allowSmall           = true,
	imageEmptyCell       = true,
	imageRightNone       = true
}

local tmbox = {
	types = {
		speedy = {
			class = 'tmbox-speedy',
			image = 'Icon_critical.svg'
		},
		delete = {
			class = 'tmbox-red',
			image = 'Icon_critical.svg'
		},
		content = {
			class = 'tmbox-yellow',
			image = 'Icon_warning.svg'
		},
		style = {
			class = 'tmbox-yellow',
			image = 'Icon_clear.svg '
		},
		move = {
			class = 'tmbox-yellow',
			image = 'Icon_move.svg'
		},
		protection = {
			class = 'tmbox-blue',
			image = 'Icon_protect.svg'
		},
		notice = {
			class = 'tmbox-blue',
			image = 'Icon_info.svg'
		},
		ok = {
			class = 'tmbox-green',
			image = 'Icon_ok.svg'
		}
	},
	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
}
我们提供服务需要使用Cookie。您使用我们的服务,即表示您同意我们使用Cookie。