Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Message box/configuration: Difference between revisions

Content added Content deleted
(tweak removal notice)
m (1 revision imported)
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 speedy deletion.png'
--------------------------------------------------------------------------------

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'
}
},
},
delete = {
default = 'notice',
class = 'ambox-delete',
allowBlankParams = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
image = 'Ambox deletion.png'
allowSmall = true,
},
smallParam = 'left',
content = {
smallClass = 'mbox-small-left',
class = 'ambox-content',
substCheck = true,
image = 'Ambox content.png'
classes = {'metadata', 'plainlinks', 'ambox'},
},
imageEmptyCell = true,
style = {
imageCheckBlank = true,
class = 'ambox-style',
imageSmallSize = '20x20px',
image = 'Edit-clear.svg'
imageCellDiv = true,
},
useCollapsibleTextFields = true,
move = {
imageRightNone = true,
class = 'ambox-move',
sectionDefault = 'article',
image = 'Ambox move.png'
allowMainspaceCategories = true,
},
templateCategory = 'Article message templates',
protection = {
templateCategoryRequireName = true,
class = 'ambox-protection',
templateErrorCategory = 'Article message templates with missing parameters',
image = 'Ambox protection.png'
templateErrorParamsToCheck = {'issue', 'fix', 'subst'},
},
removalNotice = '[[Help:Maintenance template removal|Learn how and when to remove this template message]]'
notice = {
class = 'ambox-notice',
image = 'Ambox notice.png'
}
},
},
default = 'notice',
allowBlankParams = {'talk', 'sect', 'date', 'issue', 'fix', 'subst'},
cmbox = {
allowSmall = true,
types = {
smallParam = 'left',
speedy = {
smallClass = 'mbox-small-left',
class = 'cmbox-speedy',
substCheck = true,
image = 'Ambox warning pn.svg'
classes = {'metadata', 'plainlinks', 'ambox'},
},
imageEmptyCell = true,
delete = {
imageCheckBlank = true,
class = 'cmbox-delete',
imageSmallSize = '20x20px',
image = 'Ambox warning pn.svg'
imageCellDiv = true,
},
useCollapsibleTextFields = true,
content = {
imageRightNone = true,
class = 'cmbox-content',
sectionDefault = 'article',
image = 'Ambox important.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 = {
},
protection = {
speedy = {
class = 'cmbox-protection',
class = 'cmbox-speedy',
image = 'Padlock-silver-medium.svg'
image = 'Cmbox deletion.png'
},
notice = {
class = 'cmbox-notice',
image = 'Information icon4.svg'
}
},
},
delete = {
default = 'notice',
class = 'cmbox-delete',
showInvalidTypeError = true,
image = 'Cmbox deletion.png'
classes = {'plainlinks', 'cmbox'},
},
imageEmptyCell = true
content = {
class = 'cmbox-content',
image = 'Cmbox content.png'
},
style = {
class = 'cmbox-style',
image = 'Edit-clear.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'
}
},
},
default = 'notice',
showInvalidTypeError = true,
fmbox = {
classes = {'plainlinks', 'cmbox'},
types = {
imageEmptyCell = true
warning = {
}
class = 'fmbox-warning',

image = 'Ambox warning pn.svg'
local fmbox = {
},
editnotice = {
types = {
warning = {
class = 'fmbox-editnotice',
image = 'Information icon4.svg'
class = 'fmbox-warning',
image = 'Cmbox deletion.png'
},
system = {
class = 'fmbox-system',
image = 'Information icon4.svg'
}
},
},
editnotice = {
default = 'system',
class = 'fmbox-editnotice',
showInvalidTypeError = true,
image = 'Imbox notice.png'
classes = {'plainlinks', '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 = 'Ambox warning pn.svg'
}
},

delete = {
local imbox = {
class = 'imbox-delete',
types = {
image = 'Ambox warning pn.svg'
speedy = {
},
content = {
class = 'imbox-speedy',
image = 'Imbox speedy deletion.png'
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'
}
},
},
delete = {
default = 'notice',
class = 'imbox-delete',
showInvalidTypeError = true,
image = 'Imbox deletion.png'
classes = {'imbox'},
},
usePlainlinksParam = true,
content = {
imageEmptyCell = true,
class = 'imbox-content',
below = true,
image = 'Imbox content.png'
templateCategory = 'File message boxes'
},
style = {
class = 'imbox-style',
image = 'Edit-clear.svg'
},
move = {
class = 'imbox-move',
image = 'Imbox move.png'
},
protection = {
class = 'imbox-protection',
image = 'Imbox protection.png'
},
license = {
class = 'imbox-license',
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 = 'Ambox warning pn.svg'
templateCategory = 'File message boxes'
},
}
delete = {

class = 'ombox-delete',
local ombox = {
image = 'Ambox warning pn.svg'
types = {
},
content = {
speedy = {
class = 'ombox-content',
class = 'ombox-speedy',
image = 'Ambox important.svg'
image = 'Imbox speedy deletion.png'
},
},
style = {
delete = {
class = 'ombox-style',
class = 'ombox-delete',
image = 'Edit-clear.svg'
image = 'Imbox deletion.png'
},
},
move = {
content = {
class = 'ombox-move',
class = 'ombox-content',
image = 'Merge-split-transwiki default.svg'
image = 'Imbox content.png'
},
},
protection = {
style = {
class = 'ombox-protection',
class = 'ombox-style',
image = 'Padlock-silver-medium.svg'
image = 'Edit-clear.svg'
},
},
notice = {
move = {
class = 'ombox-notice',
class = 'ombox-move',
image = 'Information icon4.svg'
image = 'Imbox move.png'
}
},
protection = {
class = 'ombox-protection',
image = 'Imbox protection.png'
},
},
notice = {
default = 'notice',
class = 'ombox-notice',
showInvalidTypeError = true,
image = 'Imbox notice.png'
classes = {'plainlinks', 'ombox'},
}
allowSmall = true,
imageEmptyCell = true,
imageRightNone = true
},
},
default = 'notice',
showInvalidTypeError = true,
tmbox = {
classes = {'plainlinks', 'ombox'},
types = {
allowSmall = true,
speedy = {
imageEmptyCell = true,
class = 'tmbox-speedy',
imageRightNone = true
image = 'Ambox warning pn.svg'
}
},

delete = {
local tmbox = {
class = 'tmbox-delete',
types = {
image = 'Ambox warning pn.svg'
speedy = {
},
content = {
class = 'tmbox-speedy',
image = 'Imbox speedy deletion.png'
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'
}
},
},
delete = {
default = 'notice',
class = 'tmbox-delete',
showInvalidTypeError = true,
image = 'Imbox deletion.png'
classes = {'plainlinks', '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'},
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
}
}

Revision as of 22:42, 6 August 2016

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

local ambox = {
	types = {
		speedy = {
			class = 'ambox-speedy',
			image = 'Ambox speedy deletion.png'
		},
		delete = {
			class = 'ambox-delete',
			image = 'Ambox deletion.png'
		},
		content = {
			class = 'ambox-content',
			image = 'Ambox content.png'
		},
		style = {
			class = 'ambox-style',
			image = 'Edit-clear.svg'
		},
		move = {
			class = 'ambox-move',
			image = 'Ambox move.png'
		},
		protection = {
			class = 'ambox-protection',
			image = 'Ambox protection.png'
		},
		notice = {
			class = 'ambox-notice',
			image = 'Ambox notice.png'
		}
	},
	default                     = 'notice',
	allowBlankParams            = {'talk', 'sect', 'date', 'issue', 'fix', 'subst'},
	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'}
}

local cmbox = {
	types = {
		speedy = {
			class = 'cmbox-speedy',
			image = 'Cmbox deletion.png'
		},
		delete = {
			class = 'cmbox-delete',
			image = 'Cmbox deletion.png'
		},
		content = {
			class = 'cmbox-content',
			image = 'Cmbox content.png'
		},
		style = {
			class = 'cmbox-style',
			image = 'Edit-clear.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'
		}
	},
	default              = 'notice',
	showInvalidTypeError = true,
	classes              = {'plainlinks', 'cmbox'},
	imageEmptyCell       = true
}

local fmbox = {
	types = {
		warning = {
			class = 'fmbox-warning',
			image = 'Cmbox deletion.png'
		},
		editnotice = {
			class = 'fmbox-editnotice',
			image = 'Imbox notice.png'
		},
		system = {
			class = 'fmbox-system',
			image = 'Imbox notice.png'
		}
	},
	default              = 'system',
	showInvalidTypeError = true,
	allowId                = true,
	classes              = {'plainlinks', 'fmbox'},
	imageEmptyCell       = false,
	imageRightNone       = false
}

local imbox = {
	types = {
		speedy = {
			class = 'imbox-speedy',
			image = 'Imbox speedy deletion.png'
		},
		delete = {
			class = 'imbox-delete',
			image = 'Imbox deletion.png'
		},
		content = {
			class = 'imbox-content',
			image = 'Imbox content.png'
		},
		style = {
			class = 'imbox-style',
			image = 'Edit-clear.svg'
		},
		move = {
			class = 'imbox-move',
			image = 'Imbox move.png'
		},
		protection = {
			class = 'imbox-protection',
			image = 'Imbox protection.png'
		},
		license = {
			class = 'imbox-license',
			image = 'Imbox license.png'
		},
		featured = {
			class = 'imbox-featured',
			image = 'Imbox featured.png'
		},
		notice = {
			class = 'imbox-notice',
			image = 'Imbox notice.png'
		}
	},
	default              = 'notice',
	showInvalidTypeError = true,
	classes              = {'imbox'},
	usePlainlinksParam   = true,
	imageEmptyCell       = true,
	below                = true,
	templateCategory     = 'File message boxes'
}

local ombox = {
	types = {
		speedy = {
			class = 'ombox-speedy',
			image = 'Imbox speedy deletion.png'
		},
		delete = {
			class = 'ombox-delete',
			image = 'Imbox deletion.png'
		},
		content = {
			class = 'ombox-content',
			image = 'Imbox content.png'
		},
		style = {
			class = 'ombox-style',
			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,
	classes              = {'plainlinks', 'ombox'},
	allowSmall           = true,
	imageEmptyCell       = true,
	imageRightNone       = true
}

local tmbox = {
	types = {
		speedy = {
			class = 'tmbox-speedy',
			image = 'Imbox speedy deletion.png'
		},
		delete = {
			class = 'tmbox-delete',
			image = 'Imbox deletion.png'
		},
		content = {
			class = 'tmbox-content',
			image = 'Imbox content.png'
		},
		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'},
	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
}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.