Module:Message box/configuration: Difference between revisions

From Project: Redcap
m (7 revisions: Yet more template dependencies)
 
m (1 revision imported: Navbox template)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
local ambox = {
--------------------------------------------------------------------------------
types = {
--                          Message box configuration                        --
critical = {
--                                                                            --
class = 'ambox-speedy',
-- This module contains configuration data for [[Module:Message box]].        --
image = 'Ambox speedy deletion.png'
--------------------------------------------------------------------------------
},
 
speedy = {
return {
class = 'ambox-speedy',
ambox = {
image = 'Ambox speedy deletion.png'
types = {
},
speedy = {
important = {
class = 'ambox-speedy',
class = 'ambox-delete',
image = 'OOjs UI icon clock-destructive.svg'
image = 'Ambox deletion.png'
},
},
delete = {
delete = {
class = 'ambox-delete',
class = 'ambox-delete',
image = 'OOjs UI icon alert-destructive.svg'
image = 'Ambox deletion.png'
},
},
warning = { -- alias for content
warning = {
class = 'ambox-content',
class = 'ambox-content',
image = 'OOjs UI icon notice-warning.svg'
image = 'Ambox content.png'
},
},
content = {
content = {
class = 'ambox-content',
class = 'ambox-content',
image = 'OOjs UI icon notice-warning.svg'
image = 'Ambox content.png'
},
},
style = {
caution = {
class = 'ambox-style',
class = 'ambox-style',
image = 'Edit-clear.svg'
image = 'Ambox warning yellow.svg'
},
},
move = {
style = {
class = 'ambox-move',
class = 'ambox-style',
image = 'Merge-split-transwiki default.svg'
image = 'Ambox warning yellow.svg'
},
},
protection = {
move = {
class = 'ambox-protection',
class = 'ambox-move',
image = 'Semi-protection-shackle-keyhole.svg'
image = 'Ambox move.png'
},
},
notice = {
protection = {
class = 'ambox-notice',
class = 'ambox-protection',
image = 'OOjs UI icon information-progressive.svg'
image = 'Ambox protection.png'
}
},
},
notice = {
default                    = 'notice',
class = 'ambox-notice',
allowBlankParams            = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
image = 'Ambox notice.png'
allowSmall                  = true,
},
smallParam                  = 'left',
license = {
smallClass                  = 'mbox-small-left',
class = 'ambox-notice',
substCheck                  = true,
image = 'Ambox notice.png'
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'}
},
},
default                    = 'notice',
allowBlankParams            = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
cmbox = {
allowSmall                  = true,
types = {
smallParam                  = 'left',
speedy = {
smallClass                  = 'mbox-small-left',
class = 'cmbox-speedy',
substCheck                  = true,
image = 'OOjs UI icon clock-destructive.svg'
classes                    = {'metadata', 'plainlinks', 'ambox'},
},
imageEmptyCell              = true,
delete = {
imageCheckBlank            = true,
class = 'cmbox-delete',
imageSmallSize              = '20x20px',
image = 'OOjs UI icon alert-destructive.svg'
imageCellDiv                = true,
},
useCollapsibleTextFields    = true,
content = {
imageRightNone              = true,
class = 'cmbox-content',
sectionDefault              = 'article',
image = 'OOjs UI icon notice-warning.svg'
allowMainspaceCategories    = true,
},
templateCategory            = 'Article message templates',
style = {
        templateCategoryRequireName = true,
class = 'cmbox-style',
templateErrorCategory      = 'Article message templates with missing parameters',
image = 'Edit-clear.svg'
templateErrorParamsToCheck  = {'issue', 'fix', 'subst'}
},
}
move = {
class = 'cmbox-move',
local cmbox = {
image = 'Merge-split-transwiki default.svg'
types = {
},
critical = {
protection = {
class = 'cmbox-speedy',
class = 'cmbox-protection',
image = 'Cmbox deletion.png'
image = 'Semi-protection-shackle-keyhole.svg'
},
},
speedy = {
notice = {
class = 'cmbox-speedy',
class = 'cmbox-notice',
image = 'Cmbox deletion.png'
image = 'OOjs UI icon information-progressive.svg'
},
},
important = {
caution = {
class = 'cmbox-delete',
class = 'cmbox-style',
image = 'Cmbox deletion.png'
image = 'Ambox warning yellow.svg'
},
}
delete = {
class = 'cmbox-delete',
image = 'Cmbox deletion.png'
},
warning = {
class = 'cmbox-content',
image = 'Cmbox content.png'
},
content = {
class = 'cmbox-content',
image = 'Cmbox content.png'
},
caution = {
class = 'cmbox-style',
image = 'Ambox warning yellow.svg'
},
style = {
class = 'cmbox-style',
image = 'Ambox warning yellow.svg'
},
move = {
class = 'cmbox-move',
image = 'Cmbox move.png'
},
protection = {
class = 'cmbox-protection',
image = 'Cmbox protection.png'
},
notice = {
class = 'cmbox-notice',
image = 'Cmbox notice.png'
},
},
license = {
default              = 'notice',
class = 'cmbox-notice',
showInvalidTypeError = true,
image = 'Cmbox notice.png'
classes              = {'plainlinks', 'cmbox'},
}
imageEmptyCell      = true
},
},
default              = 'notice',
showInvalidTypeError = true,
fmbox = {
classes              = {'plainlinks', 'cmbox'},
types = {
imageEmptyCell      = true
warning = {
}
class = 'fmbox-warning',
image = 'OOjs UI icon clock-destructive.svg'
local fmbox = {
},
types = {
editnotice = {
warning = {
class = 'fmbox-editnotice',
class = 'fmbox-warning',
image = 'OOjs UI icon information-progressive.svg'
image = 'Cmbox deletion.png'
},
},
system = {
editnotice = {
class = 'fmbox-system',
class = 'fmbox-editnotice',
image = 'OOjs UI icon information-progressive.svg'
image = 'Imbox notice.png'
}
},
},
system = {
default              = 'system',
class = 'fmbox-system',
showInvalidTypeError = true,
image = 'Imbox notice.png'
classes              = {'plainlinks', 'fmbox'},
}
imageEmptyCell      = false,
imageRightNone      = false
},
},
default              = 'system',
showInvalidTypeError = true,
imbox = {
allowId                = true,
types = {
classes              = {'plainlinks', 'fmbox'},
speedy = {
imageEmptyCell      = false,
class = 'imbox-speedy',
imageRightNone      = false
image = 'OOjs UI icon clock-destructive.svg'
}
},
delete = {
local imbox = {
class = 'imbox-delete',
types = {
image = 'OOjs UI icon alert-destructive.svg'
critical = {
},
class = 'imbox-speedy',
content = {
image = 'Imbox speedy deletion.png'
class = 'imbox-content',
},
image = 'OOjs UI icon notice-warning.svg'
speedy = {
},
class = 'imbox-speedy',
style = {
image = 'Imbox speedy deletion.png'
class = 'imbox-style',
},
image = 'Edit-clear.svg'
important = {
},
class = 'imbox-delete',
move = {
image = 'Imbox deletion.png'
class = 'imbox-move',
image = 'Merge-split-transwiki default.svg'
},
protection = {
class = 'imbox-protection',
image = 'Semi-protection-shackle-keyhole.svg'
},
license = {
class = 'imbox-license licensetpl',
image = 'Imbox-license.svg'
},
featured = {
class = 'imbox-featured',
image = 'Cscr-featured.svg'
},
notice = {
class = 'imbox-notice',
image = 'OOjs UI icon information-progressive.svg'
}
},
},
delete = {
default              = 'notice',
class = 'imbox-delete',
showInvalidTypeError = true,
image = 'Imbox deletion.png'
classes              = {'imbox'},
},
usePlainlinksParam  = true,
warning = {
imageEmptyCell      = true,
class = 'imbox-content',
below                = true,
image = 'Imbox content.png'
templateCategory    = 'File message boxes'
},
content = {
class = 'imbox-content',
image = 'Imbox content.png'
},
caution = {
class = 'imbox-style',
image = 'Ambox warning yellow.svg'
},
style = {
class = 'imbox-style',
image = 'Ambox warning yellow.svg'
},
move = {
class = 'imbox-move',
image = 'Imbox move.png'
},
protection = {
class = 'imbox-protection',
image = 'Imbox protection.png'
},
notice = {
class = 'imbox-notice',
image = 'Imbox notice.png'
},
license = {
class = 'imbox-license',
image = 'Imbox license.png'
},
featured = {
class = 'imbox-featured',
image = 'Imbox featured.png'
}
},
},
default              = 'notice',
showInvalidTypeError = true,
ombox = {
classes              = {'imbox'},
types = {
usePlainlinksParam  = true,
speedy = {
imageEmptyCell      = true,
class = 'ombox-speedy',
below                = true,
image = 'OOjs UI icon clock-destructive.svg'
templateCategory    = 'File message boxes'
},
}
delete = {
class = 'ombox-delete',
local ombox = {
image = 'OOjs UI icon alert-destructive.svg'
types = {
},
critical = {
warning = { -- alias for content
class = 'ombox-speedy',
class = 'ombox-content',
image = 'Imbox speedy deletion.png'
image = 'OOjs UI icon notice-warning.svg'
},
},
speedy = {
content = {
class = 'ombox-speedy',
class = 'ombox-content',
image = 'Imbox speedy deletion.png'
image = 'OOjs UI icon notice-warning.svg'
},
},
important = {
style = {
class = 'ombox-delete',
class = 'ombox-style',
image = 'Imbox deletion.png'
image = 'Edit-clear.svg'
},
},
delete = {
move = {
class = 'ombox-delete',
class = 'ombox-move',
image = 'Imbox deletion.png'
image = 'Merge-split-transwiki default.svg'
},
},
warning = {
protection = {
class = 'ombox-content',
class = 'ombox-protection',
image = 'Imbox content.png'
image = 'Semi-protection-shackle-keyhole.svg'
},
},
content = {
notice = {
class = 'ombox-content',
class = 'ombox-notice',
image = 'Imbox content.png'
image = 'OOjs UI icon information-progressive.svg'
},
critical = {
class = 'mbox-critical',
image = 'OOjs UI icon clock-destructive.svg'
}
},
},
caution = {
default              = 'notice',
class = 'ombox-style',
showInvalidTypeError = true,
image = 'Ambox warning yellow.svg'
classes              = {'plainlinks', 'ombox'},
},
allowSmall          = true,
style = {
imageEmptyCell      = true,
class = 'ombox-style',
imageRightNone      = true
image = 'Ambox warning yellow.svg'
},
move = {
class = 'ombox-move',
image = 'Imbox move.png'
},
protection = {
class = 'ombox-protection',
image = 'Imbox protection.png'
},
notice = {
class = 'ombox-notice',
image = 'Imbox notice.png'
},
license = {
class = 'ombox-notice',
image = 'Imbox notice.png'
}
},
},
default              = 'notice',
showInvalidTypeError = true,
tmbox = {
classes              = {'plainlinks', 'ombox'},
types = {
allowSmall          = true,
speedy = {
imageEmptyCell      = true,
class = 'tmbox-speedy',
imageRightNone      = true
image = 'OOjs UI icon clock-destructive.svg'
}
},
delete = {
local tmbox = {
class = 'tmbox-delete',
types = {
image = 'OOjs UI icon alert-destructive.svg'
critical = {
},
class = 'tmbox-speedy',
content = {
image = 'Imbox speedy deletion.png'
class = 'tmbox-content',
},
image = 'OOjs UI icon notice-warning.svg'
speedy = {
},
class = 'tmbox-speedy',
style = {
image = 'Imbox speedy deletion.png'
class = 'tmbox-style',
},
image = 'Edit-clear.svg'
important = {
},
class = 'tmbox-delete',
move = {
image = 'Imbox deletion.png'
class = 'tmbox-move',
image = 'Merge-split-transwiki default.svg'
},
protection = {
class = 'tmbox-protection',
image = 'Semi-protection-shackle-keyhole.svg'
},
notice = {
class = 'tmbox-notice',
image = 'OOjs UI icon information-progressive.svg'
}
},
},
delete = {
default              = 'notice',
class = 'tmbox-delete',
showInvalidTypeError = true,
image = 'Imbox deletion.png'
classes              = {'plainlinks', 'tmbox'},
},
allowSmall          = true,
warning = {
imageRightNone      = true,
class = 'tmbox-content',
imageEmptyCell      = true,
image = 'Imbox content.png'
imageEmptyCellStyle  = true,
},
templateCategory    = 'Talk message boxes'
content = {
}
class = 'tmbox-content',
image = 'Imbox content.png'
},
caution = {
class = 'tmbox-style',
image = 'Ambox warning yellow.svg'
},
style = {
class = 'tmbox-style',
image = 'Ambox warning yellow.svg'
},
move = {
class = 'tmbox-move',
image = 'Imbox move.png'
},
protection = {
class = 'tmbox-protection',
image = 'Imbox protection.png'
},
notice = {
class = 'tmbox-notice',
image = 'Imbox notice.png'
},
license = {
class = 'tmbox-notice',
image = 'Imbox notice.png'
}
},
default              = 'notice',
showInvalidTypeError = true,
classes              = {'plainlinks', 'tmbox'},
allowId              = true,
allowSmall          = true,
imageRightNone      = true,
imageEmptyCell      = true,
imageEmptyCellStyle  = true,
templateCategory    = 'Talk message boxes'
}
return {
ambox = ambox,
cmbox = cmbox,
fmbox = fmbox,
imbox = imbox,
ombox = ombox,
tmbox = tmbox
}
}

Latest revision as of 08:21, 10 November 2024

Documentation for this module may be created at Module: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.svg'
			},
			delete = {
				class = 'ambox-delete',
				image = 'OOjs UI icon alert-destructive.svg'
			},
			warning = { -- alias for content
				class = 'ambox-content',
				image = 'OOjs UI icon notice-warning.svg'
			},
			content = {
				class = 'ambox-content',
				image = 'OOjs UI icon notice-warning.svg'
			},
			style = {
				class = 'ambox-style',
				image = 'Edit-clear.svg'
			},
			move = {
				class = 'ambox-move',
				image = 'Merge-split-transwiki default.svg'
			},
			protection = {
				class = 'ambox-protection',
				image = 'Semi-protection-shackle-keyhole.svg'
			},
			notice = {
				class = 'ambox-notice',
				image = 'OOjs UI icon information-progressive.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       = nil,
		templateErrorParamsToCheck  = {'issue', 'fix', 'subst'}
	},
	
	cmbox = {
		types = {
			speedy = {
				class = 'cmbox-speedy',
				image = 'OOjs UI icon clock-destructive.svg'
			},
			delete = {
				class = 'cmbox-delete',
				image = 'OOjs UI icon alert-destructive.svg'
			},
			content = {
				class = 'cmbox-content',
				image = 'OOjs UI icon notice-warning.svg'
			},
			style = {
				class = 'cmbox-style',
				image = 'Edit-clear.svg'
			},
			move = {
				class = 'cmbox-move',
				image = 'Merge-split-transwiki default.svg'
			},
			protection = {
				class = 'cmbox-protection',
				image = 'Semi-protection-shackle-keyhole.svg'
			},
			notice = {
				class = 'cmbox-notice',
				image = 'OOjs UI icon information-progressive.svg'
			},
			caution = {
				class = 'cmbox-style',
				image = 'Ambox warning yellow.svg'
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'plainlinks', 'cmbox'},
		imageEmptyCell       = true
	},
	
	fmbox = {
		types = {
			warning = {
				class = 'fmbox-warning',
				image = 'OOjs UI icon clock-destructive.svg'
			},
			editnotice = {
				class = 'fmbox-editnotice',
				image = 'OOjs UI icon information-progressive.svg'
			},
			system = {
				class = 'fmbox-system',
				image = 'OOjs UI icon information-progressive.svg'
			}
		},
		default              = 'system',
		showInvalidTypeError = true,
		classes              = {'plainlinks', 'fmbox'},
		imageEmptyCell       = false,
		imageRightNone       = false
	},
	
	imbox = {
		types = {
			speedy = {
				class = 'imbox-speedy',
				image = 'OOjs UI icon clock-destructive.svg'
			},
			delete = {
				class = 'imbox-delete',
				image = 'OOjs UI icon alert-destructive.svg'
			},
			content = {
				class = 'imbox-content',
				image = 'OOjs UI icon notice-warning.svg'
			},
			style = {
				class = 'imbox-style',
				image = 'Edit-clear.svg'
			},
			move = {
				class = 'imbox-move',
				image = 'Merge-split-transwiki default.svg'
			},
			protection = {
				class = 'imbox-protection',
				image = 'Semi-protection-shackle-keyhole.svg'
			},
			license = {
				class = 'imbox-license licensetpl',
				image = 'Imbox-license.svg'
			},
			featured = {
				class = 'imbox-featured',
				image = 'Cscr-featured.svg'
			},
			notice = {
				class = 'imbox-notice',
				image = 'OOjs UI icon information-progressive.svg'
			}
		},
		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.svg'
			},
			delete = {
				class = 'ombox-delete',
				image = 'OOjs UI icon alert-destructive.svg'
			},
			warning = { -- alias for content
				class = 'ombox-content',
				image = 'OOjs UI icon notice-warning.svg'
			},
			content = {
				class = 'ombox-content',
				image = 'OOjs UI icon notice-warning.svg'
			},
			style = {
				class = 'ombox-style',
				image = 'Edit-clear.svg'
			},
			move = {
				class = 'ombox-move',
				image = 'Merge-split-transwiki default.svg'
			},
			protection = {
				class = 'ombox-protection',
				image = 'Semi-protection-shackle-keyhole.svg'
			},
			notice = {
				class = 'ombox-notice',
				image = 'OOjs UI icon information-progressive.svg'
			},
			critical = {
				class = 'mbox-critical',
				image = 'OOjs UI icon clock-destructive.svg'
			}
		},
		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.svg'
			},
			delete = {
				class = 'tmbox-delete',
				image = 'OOjs UI icon alert-destructive.svg'
			},
			content = {
				class = 'tmbox-content',
				image = 'OOjs UI icon notice-warning.svg'
			},
			style = {
				class = 'tmbox-style',
				image = 'Edit-clear.svg'
			},
			move = {
				class = 'tmbox-move',
				image = 'Merge-split-transwiki default.svg'
			},
			protection = {
				class = 'tmbox-protection',
				image = 'Semi-protection-shackle-keyhole.svg'
			},
			notice = {
				class = 'tmbox-notice',
				image = 'OOjs UI icon information-progressive.svg'
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'plainlinks', 'tmbox'},
		allowSmall           = true,
		imageRightNone       = true,
		imageEmptyCell       = true,
		imageEmptyCellStyle  = true,
		templateCategory     = 'Talk message boxes'
	}
}