坚决贯彻落实《网络信息内容生态治理规定》内容,共同营造清朗的网络环境!

  • 我们目前有6,498个页面,780个用户,18,859次编辑。
  • 欢迎加入火器百科注册一个账号,一起参与编写吧!
  • 如果编辑遇到不懂的问题可以点击帮助或者加入火器百科QQ群:欢迎加入火器百科官方群,群聊号码 766652219
  • 首页是Hio的三次修改版,沿用了各代首页。赞美吧!

模块:Message box/configuration

来自火器百科
< Module:Message box
RazeSoldier留言 | 贡献2019年1月30日 (三) 18:16的版本 (导入1个版本:来自中文维基百科)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转到导航 跳转到搜索

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

local ambox = {
	types = {
		speedy = {
			class = 'ambox-speedy',
			image = 'No_image_wide.svg'
		},
		delete = {
			class = 'ambox-delete',
			image = 'No_image_wide.svg'
		},
		content = {
			class = 'ambox-content',
			image = 'No_image_wide.svg'
		},
		style = {
			class = 'ambox-style',
			image = 'No_image_wide.svg'
		},
		move = {
			class = 'ambox-move',
			image = 'No_image_wide.svg'
		},
		protection = {
			class = 'ambox-protection',
			image = 'No_image_wide.svg'
		},
		notice = {
			class = 'ambox-notice',
			image = 'No_image_wide.svg'
		}
	},
	default                     = 'notice',
	allowBlankParams            = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
	allowSmall                  = true,
	smallParam                  = 'left',
	smallClass                  = 'mbox-small-left',
	substCheck                  = true,
	classes                     = {'metadata', 'plainlinks', 'ambox'},
	imageEmptyCell              = true,
	imageCheckBlank             = true,
	imageSmallSize              = '3000x3000px',
	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 = 'No_image_wide.svg'
		},
		delete = {
			class = 'cmbox-delete',
			image = 'No_image_wide.svg'
		},
		content = {
			class = 'cmbox-content',
			image = 'No_image_wide.svg'
		},
		style = {
			class = 'cmbox-style',
			image = 'No_image_wide.svg'
		},
		move = {
			class = 'cmbox-move',
			image = 'No_image_wide.svg'
		},
		protection = {
			class = 'cmbox-protection',
			image = 'No_image_wide.svg'
		},
		notice = {
			class = 'cmbox-notice',
			image = 'No_image_wide.svg'
		}
	},
	default              = 'notice',
	showInvalidTypeError = true,
	classes              = {'plainlinks', 'cmbox'},
	imageEmptyCell       = true
}

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

local imbox = {
	types = {
		speedy = {
			class = 'imbox-speedy',
			image = 'No_image_wide.svg'
		},
		delete = {
			class = 'imbox-delete',
			image = 'No_image_wide.svg'
		},
		content = {
			class = 'imbox-content',
			image = 'No_image_wide.svg'
		},
		style = {
			class = 'imbox-style',
			image = 'No_image_wide.svg'
		},
		move = {
			class = 'imbox-move',
			image = 'No_image_wide.svg'
		},
		protection = {
			class = 'imbox-protection',
			image = 'No_image_wide.svg'
		},
		license = {
			class = 'imbox-license',
			image = 'No_image_wide.svg'
		},
		featured = {
			class = 'imbox-featured',
			image = 'No_image_wide.svg'
		},
		notice = {
			class = 'imbox-notice',
			image = 'No_image_wide.svg'
		}
	},
	default              = 'notice',
	showInvalidTypeError = true,
	classes              = {'imbox'},
	usePlainlinksParam   = true,
	imageEmptyCell       = true,
	below                = true,
	templateCategory     = '檔案訊息模板'
}

local ombox = {
	types = {
		speedy = {
			class = 'ombox-speedy',
			image = 'No_image_wide.svg'
		},
		delete = {
			class = 'ombox-delete',
			image = 'No_image_wide.svg'
		},
		content = {
			class = 'ombox-content',
			image = 'No_image_wide.svg'
		},
		style = {
			class = 'ombox-style',
			image = 'No_image_wide.svg'
		},
		move = {
			class = 'ombox-move',
			image = 'No_image_wide.svg'
		},
		protection = {
			class = 'ombox-protection',
			image = 'No_image_wide.svg'
		},
		notice = {
			class = 'ombox-notice',
			image = 'No_image_wide.svg'
		}
	},
	default              = 'notice',
	showInvalidTypeError = true,
	classes              = {'plainlinks', 'ombox'},
	allowSmall           = true,
	imageEmptyCell       = true,
	imageRightNone       = true
}

local tmbox = {
	types = {
		speedy = {
			class = 'tmbox-speedy',
			image = 'No_image_wide.svg'
		},
		delete = {
			class = 'tmbox-delete',
			image = 'No_image_wide.svg'
		},
		content = {
			class = 'tmbox-content',
			image = 'No_image_wide.svg'
		},
		style = {
			class = 'tmbox-style',
			image = 'No_image_wide.svg '
		},
		move = {
			class = 'tmbox-move',
			image = 'No_image_wide.svg'
		},
		protection = {
			class = 'tmbox-protection',
			image = 'No_image_wide.svg'
		},
		notice = {
			class = 'tmbox-notice',
			image = 'No_image_wide.svg'
		}
	},
	default              = 'notice',
	showInvalidTypeError = true,
	classes              = {'plainlinks', 'tmbox'},
	allowId              = true,
	allowSmall           = true,
	imageRightNone       = true,
	imageEmptyCell       = true,
	imageEmptyCellStyle  = true,
	templateCategory     = '討論訊息模板'
}

return {
	ambox = ambox,
	cmbox = cmbox,
	fmbox = fmbox,
	imbox = imbox,
	ombox = ombox,
	tmbox = tmbox
}