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

From Game Detectives Wiki
Jump to: navigation, search
(Created page with "local ambox = { types = { speedy = { class = 'ambox-speedy', image = 'Ambox speedy deletion.png' }, delete = { class = 'ambox-delete', image = 'Ambox deleti...")
m (35 revisions imported)
 
(21 intermediate revisions by 11 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 speedy deletion.png'
+
--------------------------------------------------------------------------------
},
+
 
delete = {
+
return {
class = 'ambox-delete',
+
ambox = {
image = 'Ambox deletion.png'
+
types = {
},
+
speedy = {
content = {
+
class = 'ambox-speedy',
class = 'ambox-content',
+
image = 'Ambox warning pn.svg'
image = 'Ambox content.png'
+
},
},
+
delete = {
style = {
+
class = 'ambox-delete',
class = 'ambox-style',
+
image = 'Ambox warning pn.svg'
image = 'Edit-clear.svg'
+
},
},
+
warning = { -- alias for content
move = {
+
class = 'ambox-content',
class = 'ambox-move',
+
image = 'Ambox important.svg'
image = 'Ambox move.png'
+
},
},
+
content = {
protection = {
+
class = 'ambox-content',
class = 'ambox-protection',
+
image = 'Ambox important.svg'
image = 'Ambox protection.png'
+
},
 +
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'
 +
}
 
},
 
},
notice = {
+
default                    = 'notice',
class = 'ambox-notice',
+
allowBlankParams            = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
image = 'Ambox notice.png'
+
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'}
 
},
 
},
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 = '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 = {
+
},
speedy = {
+
protection = {
class = 'cmbox-speedy',
+
class = 'cmbox-protection',
image = 'Cmbox deletion.png'
+
image = 'Padlock-silver-medium.svg'
},
+
},
delete = {
+
notice = {
class = 'cmbox-delete',
+
class = 'cmbox-notice',
image = 'Cmbox deletion.png'
+
image = 'Information icon4.svg'
},
+
},
content = {
+
caution = {
class = 'cmbox-content',
+
class = 'cmbox-style',
image = 'Cmbox content.png'
+
image = 'Ambox warning yellow.svg'
},
+
}
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 = {
+
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 = 'Ambox warning pn.svg'
local fmbox = {
+
},
types = {
+
editnotice = {
warning = {
+
class = 'fmbox-editnotice',
class = 'fmbox-warning',
+
image = 'Information icon4.svg'
image = 'Cmbox deletion.png'
+
},
},
+
system = {
editnotice = {
+
class = 'fmbox-system',
class = 'fmbox-editnotice',
+
image = 'Information icon4.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 = 'Ambox warning pn.svg'
}
+
},
+
delete = {
local imbox = {
+
class = 'imbox-delete',
types = {
+
image = 'Ambox warning pn.svg'
speedy = {
+
},
class = 'imbox-speedy',
+
content = {
image = 'Imbox speedy deletion.png'
+
class = 'imbox-content',
},
+
image = 'Ambox important.svg'
delete = {
+
},
class = 'imbox-delete',
+
style = {
image = 'Imbox deletion.png'
+
class = 'imbox-style',
},
+
image = 'Edit-clear.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 = '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'
 +
}
 
},
 
},
move = {
+
default              = 'notice',
class = 'imbox-move',
+
showInvalidTypeError = true,
image = 'Imbox move.png'
+
classes              = {'imbox'},
},
+
usePlainlinksParam  = true,
protection = {
+
imageEmptyCell      = true,
class = 'imbox-protection',
+
below                = true,
image = 'Imbox protection.png'
+
templateCategory    = 'File message boxes'
},
 
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 = {
+
},
speedy = {
+
warning = { -- alias for content
class = 'ombox-speedy',
+
class = 'ombox-content',
image = 'Imbox speedy deletion.png'
+
image = 'Ambox important.svg'
},
+
},
delete = {
+
content = {
class = 'ombox-delete',
+
class = 'ombox-content',
image = 'Imbox deletion.png'
+
image = 'Ambox important.svg'
},
+
},
content = {
+
style = {
class = 'ombox-content',
+
class = 'ombox-style',
image = 'Imbox content.png'
+
image = 'Edit-clear.svg'
},
+
},
style = {
+
move = {
class = 'ombox-style',
+
class = 'ombox-move',
image = 'Edit-clear.svg'
+
image = 'Merge-split-transwiki default.svg'
},
+
},
move = {
+
protection = {
class = 'ombox-move',
+
class = 'ombox-protection',
image = 'Imbox move.png'
+
image = 'Padlock-silver-medium.svg'
 +
},
 +
notice = {
 +
class = 'ombox-notice',
 +
image = 'Information icon4.svg'
 +
},
 +
critical = {
 +
class = 'mbox-critical',
 +
image = 'Ambox warning pn.svg'
 +
}
 
},
 
},
protection = {
+
default              = 'notice',
class = 'ombox-protection',
+
showInvalidTypeError = true,
image = 'Imbox protection.png'
+
classes              = {'plainlinks', 'ombox'},
},
+
allowSmall          = true,
notice = {
+
imageEmptyCell      = true,
class = 'ombox-notice',
+
imageRightNone      = true
image = 'Imbox notice.png'
 
}
 
 
},
 
},
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 = {
+
},
class = 'tmbox-speedy',
+
content = {
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'},
 
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 02:45, 18 May 2018

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 = 'Ambox warning pn.svg'
			},
			delete = {
				class = 'ambox-delete',
				image = 'Ambox warning pn.svg'
			},
			warning = { -- alias for content
				class = 'ambox-content',
				image = 'Ambox important.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'
			},
			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 = 'Ambox warning pn.svg'
			},
			editnotice = {
				class = 'fmbox-editnotice',
				image = 'Information icon4.svg'
			},
			system = {
				class = 'fmbox-system',
				image = 'Information icon4.svg'
			}
		},
		default              = 'system',
		showInvalidTypeError = 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'
			},
			warning = { -- alias for content
				class = 'ombox-content',
				image = 'Ambox important.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'
			},
			critical = {
				class = 'mbox-critical',
				image = 'Ambox warning pn.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'},
		allowSmall           = true,
		imageRightNone       = true,
		imageEmptyCell       = true,
		imageEmptyCellStyle  = true,
		templateCategory     = 'Talk message boxes'
	}
}