Mòideal:Message box/configuration

O Wiktionary

(deasbaireachd⧼tpt-languages-separator⧽deasaich⧼tpt-languages-separator⧽eachdraidh⧼tpt-languages-separator⧽ceanglaichean⧼tpt-languages-separator⧽doc⧼tpt-languages-separator⧽bogsa-gainmhich⧼tpt-languages-separator⧽cùisean deuchainn)


--------------------------------------------------------------------------------
--                          Message box configuration                         --
--                                                                            --
-- This module contains configuration data for [[Module:Message box]].        --
--------------------------------------------------------------------------------

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 = 'Padlock-silver-medium.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', '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       = 'Article message templates with missing parameters',
		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 = 'Padlock-silver-medium.svg'
			},
			notice = {
				class = 'Cmbox-notice',
				image = 'Information icon4.svg'
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'plainlinks', '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,
		allowId                = true,
		classes              = {'plainlinks', '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 = 'Padlock-silver-medium.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'},
		usePlainlinksParam   = true,
		imageEmptyCell       = true,
		below                = true,
		templateCategory     = 'File message boxes'
	},
	
	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 = 'Padlock-silver-medium.svg'
			},
			notice = {
				class = 'Ombox-notice',
				image = 'Information icon4.svg'
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'plainlinks', 'Ombox'},
		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 = 'Padlock-silver-medium.svg'
			},
			notice = {
				class = 'Tmbox-notice',
				image = 'Information icon4.svg'
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'plainlinks', 'Tmbox'},
		allowId              = true,
		allowSmall           = true,
		imageRightNone       = true,
		imageEmptyCell       = true,
		imageEmptyCellStyle  = true,
		templateCategory     = 'Talk message boxes'
	}
}