Difference between revisions of "Module:Message box/configuration/sandbox"

From blackwiki
Jump to navigation Jump to search
blackwiki>Mr. Stradivarius
m (Undid revision 617128045 by Mr. Stradivarius (talk) svg would be better)
m (41 revisions imported)
 
(35 intermediate revisions by 14 users not shown)
Line 1: Line 1:
−
local ambox = {
+
--------------------------------------------------------------------------------
−
types = {
+
--                          Message box configuration                        --
−
speedy = {
+
--                                                                            --
−
class = 'ambox-speedy',
+
-- This module contains configuration data for [[Module:Message box]].        --
−
image = 'Ambox warning pn.svg'
+
--------------------------------------------------------------------------------
−
},
+
 
−
delete = {
+
return {
−
class = 'ambox-delete',
+
ambox = {
−
image = 'Ambox warning pn.svg'
+
types = {
−
},
+
speedy = {
−
content = {
+
class = 'ambox-speedy',
−
class = 'ambox-content',
+
image = 'OOjs UI icon trash-destructive.svg'
−
image = 'Ambox important.svg'
+
},
−
},
+
delete = {
−
style = {
+
class = 'ambox-delete',
−
class = 'ambox-style',
+
image = 'OOjs UI icon alert-destructive.svg'
−
image = 'Edit-clear.svg'
+
},
−
},
+
content = {
−
move = {
+
class = 'ambox-content',
−
class = 'ambox-move',
+
image = 'OOjs UI icon notice-warning.svg'
−
image = 'Merge-split-transwiki default.svg'
+
},
 +
style = {
 +
class = 'ambox-style',
 +
image = 'OOjs UI icon information-yellow.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'
 +
}
 
},
 
},
−
protection = {
+
default                    = 'notice',
−
class = 'ambox-protection',
+
allowBlankParams            = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
−
image = 'Padlock-silver-medium.svg'
+
allowSmall                  = true,
−
},
+
smallParam                  = 'left',
−
notice = {
+
smallClass                  = 'mbox-small-left',
−
class = 'ambox-notice',
+
substCheck                  = true,
−
image = 'Information icon4.svg'
+
classes                    = {'metadata', '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'},
 +
removalNotice              = '[[Help:Maintenance template removal|Learn how and when to remove this template message]]'
 
},
 
},
−
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 trash-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 = 'OOjs UI icon information-yellow.svg'
−
templateErrorParamsToCheck  = {'issue', 'fix', 'subst'}
+
},
−
}
+
move = {
−
 
+
class = 'cmbox-move',
−
local cmbox = {
+
image = 'Merge-split-transwiki default.svg'
−
types = {
+
},
−
speedy = {
+
protection = {
−
class = 'cmbox-speedy',
+
class = 'cmbox-protection',
−
image = 'Ambox warning pn.svg'
+
image = 'Semi-protection-shackle-keyhole.svg'
 +
},
 +
notice = {
 +
class = 'cmbox-notice',
 +
image = 'Information icon4.svg'
 +
}
 
},
 
},
−
delete = {
+
default              = 'notice',
−
class = 'cmbox-delete',
+
showInvalidTypeError = true,
−
image = 'Ambox warning pn.svg'
+
classes              = {'cmbox'},
−
},
+
imageEmptyCell      = true
−
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,
+
fmbox = {
−
classes              = {'plainlinks', 'cmbox'},
+
types = {
−
imageEmptyCell      = true
+
warning = {
−
}
+
class = 'fmbox-warning',
−
 
+
image = 'OOjs UI icon alert-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 = {
 +
class = 'fmbox-system',
 +
image = 'OOjs UI icon information-progressive.svg'
 +
}
 
},
 
},
−
editnotice = {
+
default              = 'system',
−
class = 'fmbox-editnotice',
+
showInvalidTypeError = true,
−
image = 'Imbox notice.png'
+
classes              = {'fmbox'},
−
},
+
imageEmptyCell      = false,
−
system = {
+
imageRightNone      = false
−
class = 'fmbox-system',
 
−
image = 'Imbox notice.png'
 
−
}
 
 
},
 
},
−
default              = 'system',
+
−
showInvalidTypeError = true,
+
imbox = {
−
allowId                = true,
+
types = {
−
classes              = {'plainlinks', 'fmbox'},
+
speedy = {
−
imageEmptyCell      = false,
+
class = 'imbox-speedy',
−
imageRightNone      = false
+
image = 'OOjs UI icon trash-destructive.svg'
−
}
+
},
−
 
+
delete = {
−
local imbox = {
+
class = 'imbox-delete',
−
types = {
+
image = 'OOjs UI icon alert-destructive.svg'
−
speedy = {
+
},
−
class = 'imbox-speedy',
+
content = {
−
image = 'Imbox speedy deletion.png'
+
class = 'imbox-content',
−
},
+
image = 'OOjs UI icon notice-warning.svg'
−
delete = {
+
},
−
class = 'imbox-delete',
+
style = {
−
image = 'Imbox deletion.png'
+
class = 'imbox-style',
−
},
+
image = 'OOjs UI icon information-yellow.svg'
−
content = {
+
},
−
class = 'imbox-content',
+
move = {
−
image = 'Imbox content.png'
+
class = 'imbox-move',
−
},
+
image = 'Merge-split-transwiki default.svg'
−
style = {
+
},
−
class = 'imbox-style',
+
protection = {
−
image = 'Edit-clear.svg'
+
class = 'imbox-protection',
−
},
+
image = 'Semi-protection-shackle-keyhole.svg'
−
move = {
+
},
−
class = 'imbox-move',
+
license = {
−
image = 'Imbox move.png'
+
class = 'imbox-license licensetpl',
 +
image = 'OOjs UI icon help.svg' -- @todo We need an SVG version of this
 +
},
 +
featured = {
 +
class = 'imbox-featured',
 +
image = 'OOjs UI-like star plain progressive.svg'
 +
},
 +
notice = {
 +
class = 'imbox-notice',
 +
image = 'OOjs UI icon information-progressive.svg'
 +
}
 
},
 
},
−
protection = {
+
default              = 'notice',
−
class = 'imbox-protection',
+
showInvalidTypeError = true,
−
image = 'Imbox protection.png'
+
classes              = {'imbox'},
−
},
+
imageEmptyCell      = true,
−
license = {
+
below                = true,
−
class = 'imbox-license',
+
templateCategory    = 'File message boxes'
−
image = 'Imbox license.png'
 
−
},
 
−
featured = {
 
−
class = 'imbox-featured',
 
−
image = 'Imbox featured.png'
 
−
},
 
−
notice = {
 
−
class = 'imbox-notice',
 
−
image = 'Imbox notice.png'
 
−
}
 
 
},
 
},
−
default              = 'notice',
+
−
showInvalidTypeError = true,
+
ombox = {
−
classes              = {'imbox'},
+
types = {
−
usePlainlinksParam  = true,
+
speedy = {
−
imageEmptyCell      = true,
+
class = 'ombox-speedy',
−
below                = true,
+
image = 'OOjs UI icon trash-destructive.svg'
−
templateCategory    = 'File message boxes'
+
},
−
}
+
delete = {
−
 
+
class = 'ombox-delete',
−
local ombox = {
+
image = 'OOjs UI icon alert-destructive.svg'
−
types = {
+
},
−
speedy = {
+
content = {
−
class = 'ombox-speedy',
+
class = 'ombox-content',
−
image = 'Imbox speedy deletion.png'
+
image = 'OOjs UI icon notice-warning.svg'
−
},
+
},
−
delete = {
+
style = {
−
class = 'ombox-delete',
+
class = 'ombox-style',
−
image = 'Imbox deletion.png'
+
image = 'OOjs UI icon information-yellow.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'
 +
}
 
},
 
},
−
content = {
+
default              = 'notice',
−
class = 'ombox-content',
+
showInvalidTypeError = true,
−
image = 'Imbox content.png'
+
classes              = {'ombox'},
−
},
+
allowSmall          = true,
−
style = {
+
imageEmptyCell      = true,
−
class = 'ombox-style',
+
imageRightNone      = true
−
image = 'Edit-clear.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'
 
−
}
 
 
},
 
},
−
default              = 'notice',
+
−
showInvalidTypeError = true,
+
tmbox = {
−
classes              = {'plainlinks', 'ombox'},
+
types = {
−
allowSmall          = true,
+
speedy = {
−
imageEmptyCell      = true,
+
class = 'tmbox-speedy',
−
imageRightNone      = true
+
image = 'OOjs UI icon trash-destructive.svg'
−
}
+
},
−
 
+
delete = {
−
local tmbox = {
+
class = 'tmbox-delete',
−
types = {
+
image = 'OOjs UI icon alert-destructive.svg'
−
speedy = {
+
},
−
class = 'tmbox-speedy',
+
content = {
−
image = 'Imbox speedy deletion.png'
+
class = 'tmbox-content',
 +
image = 'OOjs UI icon notice-warning.svg'
 +
},
 +
style = {
 +
class = 'tmbox-style',
 +
image = 'OOjs UI icon information-yellow.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'
 +
}
 
},
 
},
−
delete = {
+
default              = 'notice',
−
class = 'tmbox-delete',
+
showInvalidTypeError = true,
−
image = 'Imbox deletion.png'
+
classes              = {'tmbox'},
−
},
+
allowSmall          = true,
−
content = {
+
imageRightNone      = true,
−
class = 'tmbox-content',
+
imageEmptyCell      = true,
−
image = 'Imbox content.png'
+
imageEmptyCellStyle  = true,
−
},
+
templateCategory    = 'Talk message boxes'
−
style = {
+
}
−
class = 'tmbox-style',
 
−
image = 'Edit-clear.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'
 
−
}
 
−
},
 
−
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 07:56, 27 September 2020

Documentation for this module may be created at Module:Message box/configuration/sandbox/doc

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

return {
	ambox = {
		types = {
			speedy = {
				class = 'ambox-speedy',
				image = 'OOjs UI icon trash-destructive.svg'
			},
			delete = {
				class = 'ambox-delete',
				image = 'OOjs UI icon alert-destructive.svg'
			},
			content = {
				class = 'ambox-content',
				image = 'OOjs UI icon notice-warning.svg'
			},
			style = {
				class = 'ambox-style',
				image = 'OOjs UI icon information-yellow.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', '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'},
		removalNotice               = '[[Help:Maintenance template removal|Learn how and when to remove this template message]]'
	},
	
	cmbox = {
		types = {
			speedy = {
				class = 'cmbox-speedy',
				image = 'OOjs UI icon trash-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 = 'OOjs UI icon information-yellow.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 = 'Information icon4.svg'
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'cmbox'},
		imageEmptyCell       = true
	},
	
	fmbox = {
		types = {
			warning = {
				class = 'fmbox-warning',
				image = 'OOjs UI icon alert-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              = {'fmbox'},
		imageEmptyCell       = false,
		imageRightNone       = false
	},
	
	imbox = {
		types = {
			speedy = {
				class = 'imbox-speedy',
				image = 'OOjs UI icon trash-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 = 'OOjs UI icon information-yellow.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 = 'OOjs UI icon help.svg' -- @todo We need an SVG version of this
			},
			featured = {
				class = 'imbox-featured',
				image = 'OOjs UI-like star plain progressive.svg'
			},
			notice = {
				class = 'imbox-notice',
				image = 'OOjs UI icon information-progressive.svg'
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'imbox'},
		imageEmptyCell       = true,
		below                = true,
		templateCategory     = 'File message boxes'
	},
	
	ombox = {
		types = {
			speedy = {
				class = 'ombox-speedy',
				image = 'OOjs UI icon trash-destructive.svg'
			},
			delete = {
				class = 'ombox-delete',
				image = 'OOjs UI icon alert-destructive.svg'
			},
			content = {
				class = 'ombox-content',
				image = 'OOjs UI icon notice-warning.svg'
			},
			style = {
				class = 'ombox-style',
				image = 'OOjs UI icon information-yellow.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'
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'ombox'},
		allowSmall           = true,
		imageEmptyCell       = true,
		imageRightNone       = true
	},
	
	tmbox = {
		types = {
			speedy = {
				class = 'tmbox-speedy',
				image = 'OOjs UI icon trash-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 = 'OOjs UI icon information-yellow.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              = {'tmbox'},
		allowSmall           = true,
		imageRightNone       = true,
		imageEmptyCell       = true,
		imageEmptyCellStyle  = true,
		templateCategory     = 'Talk message boxes'
	}
}