Модуль:Message box/configuration: различия между версиями

Материал из ATE42 Вики (2022-2024)
Содержимое добавлено Содержимое удалено
(Новая страница: «-------------------------------------------------------------------------------- -- Message box configuration -- -- -- -- This module contains configuration data for Module:Message box. -- -------------------------------------------------------------------------------- return { ambox = { types = { speedy = { class...»)
 
Нет описания правки
 
Строка 10: Строка 10:
speedy = {
speedy = {
class = 'ambox-speedy',
class = 'ambox-speedy',
image = 'OOjs UI icon clock-destructive.svg'
image = 'OOjs UI icon clock-destructive.png'
},
},
delete = {
delete = {
class = 'ambox-delete',
class = 'ambox-delete',
image = 'OOjs UI icon alert-destructive.svg'
image = 'OOjs UI icon alert-destructive.png'
},
},
warning = { -- alias for content
warning = { -- alias for content
class = 'ambox-content',
class = 'ambox-content',
image = 'OOjs UI icon notice-warning.svg'
image = 'OOjs UI icon notice-warning.png'
},
},
content = {
content = {
class = 'ambox-content',
class = 'ambox-content',
image = 'OOjs UI icon notice-warning.svg'
image = 'OOjs UI icon notice-warning.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 = 'OOjs UI icon information-progressive.svg'
image = 'OOjs UI icon information-progressive.png'
}
}
},
},
Строка 66: Строка 66:
speedy = {
speedy = {
class = 'cmbox-speedy',
class = 'cmbox-speedy',
image = 'OOjs UI icon clock-destructive.svg'
image = 'OOjs UI icon clock-destructive.png'
},
},
delete = {
delete = {
class = 'cmbox-delete',
class = 'cmbox-delete',
image = 'OOjs UI icon alert-destructive.svg'
image = 'OOjs UI icon alert-destructive.png'
},
},
content = {
content = {
class = 'cmbox-content',
class = 'cmbox-content',
image = 'OOjs UI icon notice-warning.svg'
image = 'OOjs UI icon notice-warning.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 = 'OOjs UI icon information-progressive.svg'
image = 'OOjs UI icon information-progressive.png'
},
},
caution = {
caution = {
class = 'cmbox-style',
class = 'cmbox-style',
image = 'Ambox warning yellow.svg'
image = 'Ambox warning yellow.png'
}
}
},
},
Строка 107: Строка 107:
warning = {
warning = {
class = 'fmbox-warning',
class = 'fmbox-warning',
image = 'OOjs UI icon clock-destructive.svg'
image = 'OOjs UI icon clock-destructive.png'
},
},
editnotice = {
editnotice = {
class = 'fmbox-editnotice',
class = 'fmbox-editnotice',
image = 'OOjs UI icon information-progressive.svg'
image = 'OOjs UI icon information-progressive.png'
},
},
system = {
system = {
class = 'fmbox-system',
class = 'fmbox-system',
image = 'OOjs UI icon information-progressive.svg'
image = 'OOjs UI icon information-progressive.png'
}
}
},
},
Строка 129: Строка 129:
speedy = {
speedy = {
class = 'imbox-speedy',
class = 'imbox-speedy',
image = 'OOjs UI icon clock-destructive.svg'
image = 'OOjs UI icon clock-destructive.png'
},
},
delete = {
delete = {
class = 'imbox-delete',
class = 'imbox-delete',
image = 'OOjs UI icon alert-destructive.svg'
image = 'OOjs UI icon alert-destructive.png'
},
},
content = {
content = {
class = 'imbox-content',
class = 'imbox-content',
image = 'OOjs UI icon notice-warning.svg'
image = 'OOjs UI icon notice-warning.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 = {
class = 'imbox-license licensetpl',
class = 'imbox-license licensetpl',
image = 'Imbox license.png' -- @todo We need an SVG version of this
image = 'Imbox license.png' -- @todo We need an png version of this
},
},
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 = 'OOjs UI icon information-progressive.svg'
image = 'OOjs UI icon information-progressive.png'
}
}
},
},
Строка 177: Строка 177:
speedy = {
speedy = {
class = 'ombox-speedy',
class = 'ombox-speedy',
image = 'OOjs UI icon clock-destructive.svg'
image = 'OOjs UI icon clock-destructive.png'
},
},
delete = {
delete = {
class = 'ombox-delete',
class = 'ombox-delete',
image = 'OOjs UI icon alert-destructive.svg'
image = 'OOjs UI icon alert-destructive.png'
},
},
warning = { -- alias for content
warning = { -- alias for content
class = 'ombox-content',
class = 'ombox-content',
image = 'OOjs UI icon notice-warning.svg'
image = 'OOjs UI icon notice-warning.png'
},
},
content = {
content = {
class = 'ombox-content',
class = 'ombox-content',
image = 'OOjs UI icon notice-warning.svg'
image = 'OOjs UI icon notice-warning.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 = 'OOjs UI icon information-progressive.svg'
image = 'OOjs UI icon information-progressive.png'
},
},
critical = {
critical = {
class = 'mbox-critical',
class = 'mbox-critical',
image = 'OOjs UI icon clock-destructive.svg'
image = 'OOjs UI icon clock-destructive.png'
}
}
},
},
Строка 224: Строка 224:
speedy = {
speedy = {
class = 'tmbox-speedy',
class = 'tmbox-speedy',
image = 'OOjs UI icon clock-destructive.svg'
image = 'OOjs UI icon clock-destructive.png'
},
},
delete = {
delete = {
class = 'tmbox-delete',
class = 'tmbox-delete',
image = 'OOjs UI icon alert-destructive.svg'
image = 'OOjs UI icon alert-destructive.png'
},
},
content = {
content = {
class = 'tmbox-content',
class = 'tmbox-content',
image = 'OOjs UI icon notice-warning.svg'
image = 'OOjs UI icon notice-warning.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 = 'OOjs UI icon information-progressive.svg'
image = 'OOjs UI icon information-progressive.png'
}
}
},
},

Текущая версия от 20:47, 23 августа 2022

Для документации этого модуля может быть создана страница Модуль:Message box/configuration/doc

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

return {
	ambox = {
		types = {
			speedy = {
				class = 'ambox-speedy',
				image = 'OOjs UI icon clock-destructive.png'
			},
			delete = {
				class = 'ambox-delete',
				image = 'OOjs UI icon alert-destructive.png'
			},
			warning = { -- alias for content
				class = 'ambox-content',
				image = 'OOjs UI icon notice-warning.png'
			},
			content = {
				class = 'ambox-content',
				image = 'OOjs UI icon notice-warning.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 = 'OOjs UI icon information-progressive.png'
			}
		},
		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       = nil,
		templateErrorParamsToCheck  = {'issue', 'fix', 'subst'}
	},
	
	cmbox = {
		types = {
			speedy = {
				class = 'cmbox-speedy',
				image = 'OOjs UI icon clock-destructive.png'
			},
			delete = {
				class = 'cmbox-delete',
				image = 'OOjs UI icon alert-destructive.png'
			},
			content = {
				class = 'cmbox-content',
				image = 'OOjs UI icon notice-warning.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 = 'OOjs UI icon information-progressive.png'
			},
			caution = {
				class = 'cmbox-style',
				image = 'Ambox warning yellow.png'
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'plainlinks', 'cmbox'},
		imageEmptyCell       = true
	},
	
	fmbox = {
		types = {
			warning = {
				class = 'fmbox-warning',
				image = 'OOjs UI icon clock-destructive.png'
			},
			editnotice = {
				class = 'fmbox-editnotice',
				image = 'OOjs UI icon information-progressive.png'
			},
			system = {
				class = 'fmbox-system',
				image = 'OOjs UI icon information-progressive.png'
			}
		},
		default              = 'system',
		showInvalidTypeError = true,
		classes              = {'plainlinks', 'fmbox'},
		imageEmptyCell       = false,
		imageRightNone       = false
	},
	
	imbox = {
		types = {
			speedy = {
				class = 'imbox-speedy',
				image = 'OOjs UI icon clock-destructive.png'
			},
			delete = {
				class = 'imbox-delete',
				image = 'OOjs UI icon alert-destructive.png'
			},
			content = {
				class = 'imbox-content',
				image = 'OOjs UI icon notice-warning.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 licensetpl',
				image = 'Imbox license.png' -- @todo We need an png version of this
			},
			featured = {
				class = 'imbox-featured',
				image = 'Cscr-featured.png'
			},
			notice = {
				class = 'imbox-notice',
				image = 'OOjs UI icon information-progressive.png'
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'imbox'},
		usePlainlinksParam   = true,
		imageEmptyCell       = true,
		below                = true,
		templateCategory     = 'File message boxes'
	},
	
	ombox = {
		types = {
			speedy = {
				class = 'ombox-speedy',
				image = 'OOjs UI icon clock-destructive.png'
			},
			delete = {
				class = 'ombox-delete',
				image = 'OOjs UI icon alert-destructive.png'
			},
			warning = { -- alias for content
				class = 'ombox-content',
				image = 'OOjs UI icon notice-warning.png'
			},
			content = {
				class = 'ombox-content',
				image = 'OOjs UI icon notice-warning.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 = 'OOjs UI icon information-progressive.png'
			},
			critical = {
				class = 'mbox-critical',
				image = 'OOjs UI icon clock-destructive.png'
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'plainlinks', 'ombox'},
		allowSmall           = true,
		imageEmptyCell       = true,
		imageRightNone       = true
	},
	
	tmbox = {
		types = {
			speedy = {
				class = 'tmbox-speedy',
				image = 'OOjs UI icon clock-destructive.png'
			},
			delete = {
				class = 'tmbox-delete',
				image = 'OOjs UI icon alert-destructive.png'
			},
			content = {
				class = 'tmbox-content',
				image = 'OOjs UI icon notice-warning.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 = 'OOjs UI icon information-progressive.png'
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'plainlinks', 'tmbox'},
		allowSmall           = true,
		imageRightNone       = true,
		imageEmptyCell       = true,
		imageEmptyCellStyle  = true,
		templateCategory     = 'Talk message boxes'
	}
}