Module:Message box/configuration: Difference between revisions

From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
m (1 revision imported: Import clean copy of Template:Documentation from MediaWiki instead of from Wikipedia with dependencies to correct problems in page protection banners)
m (everything except delete icon gets transparent class added for dark timeless skin)
Line 9: Line 9:
types = {
types = {
speedy = {
speedy = {
class = 'ambox-speedy',
class = 'transparent ambox-speedy',
image = 'Speedy_delete.png'
image = 'Speedy_delete.png'
},
},
delete = {
delete = {
class = 'ambox-delete',
class = 'transparent ambox-delete',
image = 'Ambox warning pn.svg'
image = 'Ambox warning pn.svg'
},
},
content = {
content = {
class = 'ambox-content',
class = 'transparent ambox-content',
image = 'Ambox important.svg'
image = 'Ambox important.svg'
},
},
style = {
style = {
class = 'ambox-style',
class = 'transparent ambox-style',
image = 'Edit-clear.svg'
image = 'Edit-clear.svg'
},
},
move = {
move = {
class = 'ambox-move',
class = 'transparent ambox-move',
image = 'Merge-split-transwiki default.svg'
image = 'Merge-split-transwiki default.svg'
},
},
protection = {
protection = {
class = 'ambox-protection',
class = 'transparent ambox-protection',
image = 'Semi-protection-shackle.svg'
image = 'Semi-protection-shackle.svg'
},
},
notice = {
notice = {
class = 'ambox-notice',
class = 'transparent ambox-notice',
image = 'Information icon4.svg'
image = 'Information icon4.svg'
}
}
Line 41: Line 41:
allowSmall                  = true,
allowSmall                  = true,
smallParam                  = 'left',
smallParam                  = 'left',
smallClass                  = 'mbox-small-left',
smallClass                  = 'transparent mbox-small-left',
substCheck                  = true,
substCheck                  = true,
classes                    = {'metadata', 'ambox'},
classes                    = {'metadata', 'ambox'},
Line 62: Line 62:
types = {
types = {
speedy = {
speedy = {
class = 'cmbox-speedy',
class = 'transparent cmbox-speedy',
image = 'Speedy_delete.png'
image = 'Speedy_delete.png'
},
},
Line 70: Line 70:
},
},
content = {
content = {
class = 'cmbox-content',
class = 'transparent cmbox-content',
image = 'Ambox important.svg'
image = 'Ambox important.svg'
},
},
style = {
style = {
class = 'cmbox-style',
class = 'transparent cmbox-style',
image = 'Edit-clear.svg'
image = 'Edit-clear.svg'
},
},
move = {
move = {
class = 'cmbox-move',
class = 'transparent cmbox-move',
image = 'Merge-split-transwiki default.svg'
image = 'Merge-split-transwiki default.svg'
},
},
protection = {
protection = {
class = 'cmbox-protection',
class = 'transparent cmbox-protection',
image = 'Semi-protection-shackle.svg'
image = 'Semi-protection-shackle.svg'
},
},
notice = {
notice = {
class = 'cmbox-notice',
class = 'transparent cmbox-notice',
image = 'Information icon4.svg'
image = 'Information icon4.svg'
}
}
Line 99: Line 99:
types = {
types = {
warning = {
warning = {
class = 'fmbox-warning',
class = 'transparent fmbox-warning',
image = 'Ambox warning pn.svg'
image = 'Ambox warning pn.svg'
},
},
editnotice = {
editnotice = {
class = 'fmbox-editnotice',
class = 'transparent fmbox-editnotice',
image = 'Information icon4.svg'
image = 'Information icon4.svg'
},
},
                   protection = {
                   protection = {
class = 'ombox-protection',
class = 'transparent ombox-protection',
image = 'Red-protection-padlock.svg'
image = 'Red-protection-padlock.svg'
},
},
system = {
system = {
class = 'fmbox-system',
class = 'transparent fmbox-system',
image = 'Information icon4.svg'
image = 'Information icon4.svg'
}
}
Line 125: Line 125:
types = {
types = {
speedy = {
speedy = {
class = 'imbox-speedy',
class = 'transparent imbox-speedy',
image = 'Speedy_delete.png'
image = 'Speedy_delete.png'
},
},
Line 133: Line 133:
},
},
content = {
content = {
class = 'imbox-content',
class = 'transparent imbox-content',
image = 'Ambox important.svg'
image = 'Ambox important.svg'
},
},
style = {
style = {
class = 'imbox-style',
class = 'transparent imbox-style',
image = 'Edit-clear.svg'
image = 'Edit-clear.svg'
},
},
move = {
move = {
class = 'imbox-move',
class = 'transparent imbox-move',
image = 'Merge-split-transwiki default.svg'
image = 'Merge-split-transwiki default.svg'
},
},
protection = {
protection = {
class = 'imbox-protection',
class = 'transparent imbox-protection',
image = 'Semi-protection-shackle.svg'
image = 'Semi-protection-shackle.svg'
},
},
license = {
license = {
class = 'imbox-license licensetpl',
class = 'transparent imbox-license licensetpl',
image = 'Imbox license.png' -- @todo We need an SVG version of this
image = 'Imbox license.png' -- @todo We need an SVG version of this
},
},
featured = {
featured = {
class = 'imbox-featured',
class = 'transparent imbox-featured',
image = 'Cscr-featured.svg'
image = 'Cscr-featured.svg'
},
},
notice = {
notice = {
class = 'imbox-notice',
class = 'transparent imbox-notice',
image = 'Information icon4.svg'
image = 'Information icon4.svg'
}
}
Line 172: Line 172:
types = {
types = {
speedy = {
speedy = {
class = 'ombox-speedy',
class = 'transparent ombox-speedy',
image = 'Speedy_delete.png'
image = 'Speedy_delete.png'
},
},
delete = {
delete = {
class = 'ombox-delete',
class = 'transparent ombox-delete',
image = 'Ambox warning pn.svg'
image = 'Ambox warning pn.svg'
},
},
content = {
content = {
class = 'ombox-content',
class = 'transparent ombox-content',
image = 'Ambox important.svg'
image = 'Ambox important.svg'
},
},
style = {
style = {
class = 'ombox-style',
class = 'transparent ombox-style',
image = 'Edit-clear.svg'
image = 'Edit-clear.svg'
},
},
move = {
move = {
class = 'ombox-move',
class = 'transparent ombox-move',
image = 'Merge-split-transwiki default.svg'
image = 'Merge-split-transwiki default.svg'
},
},
protection = {
protection = {
class = 'ombox-protection',
class = 'transparent ombox-protection',
image = 'Semi-protection-shackle.svg'
image = 'Semi-protection-shackle.svg'
},
},
notice = {
notice = {
class = 'ombox-notice',
class = 'transparent ombox-notice',
image = 'Information icon4.svg'
image = 'Information icon4.svg'
}
}
Line 211: Line 211:
types = {
types = {
speedy = {
speedy = {
class = 'tmbox-speedy',
class = 'transparent tmbox-speedy',
image = 'Speedy_delete.png'
image = 'Speedy_delete.png'
},
},
Line 219: Line 219:
},
},
content = {
content = {
class = 'tmbox-content',
class = 'transparent tmbox-content',
image = 'Ambox important.svg'
image = 'Ambox important.svg'
},
},
style = {
style = {
class = 'tmbox-style',
class = 'transparent tmbox-style',
image = 'Edit-clear.svg'
image = 'Edit-clear.svg'
},
},
move = {
move = {
class = 'tmbox-move',
class = 'transparent tmbox-move',
image = 'Merge-split-transwiki default.svg'
image = 'Merge-split-transwiki default.svg'
},
},
protection = {
protection = {
class = 'tmbox-protection',
class = 'transparent tmbox-protection',
image = 'Semi-protection-shackle.svg'
image = 'Semi-protection-shackle.svg'
},
},
notice = {
notice = {
class = 'tmbox-notice',
class = 'transparent tmbox-notice',
image = 'Information icon4.svg'
image = 'Information icon4.svg'
}
}

Revision as of 14:35, October 17, 2019

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 = 'transparent ambox-speedy',
				image = 'Speedy_delete.png'
			},
			delete = {
				class = 'transparent ambox-delete',
				image = 'Ambox warning pn.svg'
			},
			content = {
				class = 'transparent ambox-content',
				image = 'Ambox important.svg'
			},
			style = {
				class = 'transparent ambox-style',
				image = 'Edit-clear.svg'
			},
			move = {
				class = 'transparent ambox-move',
				image = 'Merge-split-transwiki default.svg'
			},
			protection = {
				class = 'transparent ambox-protection',
				image = 'Semi-protection-shackle.svg'
			},
			notice = {
				class = 'transparent ambox-notice',
				image = 'Information icon4.svg'
			}
		},
		default                     = 'notice',
		allowBlankParams            = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
		allowSmall                  = true,
		smallParam                  = 'left',
		smallClass                  = 'transparent 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 = 'transparent cmbox-speedy',
				image = 'Speedy_delete.png'
			},
			delete = {
				class = 'cmbox-delete',
				image = 'Ambox warning pn.svg'
			},
			content = {
				class = 'transparent cmbox-content',
				image = 'Ambox important.svg'
			},
			style = {
				class = 'transparent cmbox-style',
				image = 'Edit-clear.svg'
			},
			move = {
				class = 'transparent cmbox-move',
				image = 'Merge-split-transwiki default.svg'
			},
			protection = {
				class = 'transparent cmbox-protection',
				image = 'Semi-protection-shackle.svg'
			},
			notice = {
				class = 'transparent cmbox-notice',
				image = 'Information icon4.svg'
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'cmbox'},
		imageEmptyCell       = true
	},
	
	fmbox = {
		types = {
			warning = {
				class = 'transparent fmbox-warning',
				image = 'Ambox warning pn.svg'
			},
			editnotice = {
				class = 'transparent fmbox-editnotice',
				image = 'Information icon4.svg'
			},
                  protection = {
				class = 'transparent ombox-protection',
				image = 'Red-protection-padlock.svg'
			},
			system = {
				class = 'transparent fmbox-system',
				image = 'Information icon4.svg'
			}
		},
		default              = 'system',
		showInvalidTypeError = true,
		classes              = {'fmbox'},
		imageEmptyCell       = false,
		imageRightNone       = false
	},
	
	imbox = {
		types = {
			speedy = {
				class = 'transparent imbox-speedy',
				image = 'Speedy_delete.png'
			},
			delete = {
				class = 'imbox-delete',
				image = 'Ambox warning pn.svg'
			},
			content = {
				class = 'transparent imbox-content',
				image = 'Ambox important.svg'
			},
			style = {
				class = 'transparent imbox-style',
				image = 'Edit-clear.svg'
			},
			move = {
				class = 'transparent imbox-move',
				image = 'Merge-split-transwiki default.svg'
			},
			protection = {
				class = 'transparent imbox-protection',
				image = 'Semi-protection-shackle.svg'
			},
			license = {
				class = 'transparent imbox-license licensetpl',
				image = 'Imbox license.png' -- @todo We need an SVG version of this
			},
			featured = {
				class = 'transparent imbox-featured',
				image = 'Cscr-featured.svg'
			},
			notice = {
				class = 'transparent imbox-notice',
				image = 'Information icon4.svg'
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'imbox'},
		imageEmptyCell       = true,
		below                = true,
		templateCategory     = 'File message boxes'
	},
	
	ombox = {
		types = {
			speedy = {
				class = 'transparent ombox-speedy',
				image = 'Speedy_delete.png'
			},
			delete = {
				class = 'transparent ombox-delete',
				image = 'Ambox warning pn.svg'
			},
			content = {
				class = 'transparent ombox-content',
				image = 'Ambox important.svg'
			},
			style = {
				class = 'transparent ombox-style',
				image = 'Edit-clear.svg'
			},
			move = {
				class = 'transparent ombox-move',
				image = 'Merge-split-transwiki default.svg'
			},
			protection = {
				class = 'transparent ombox-protection',
				image = 'Semi-protection-shackle.svg'
			},
			notice = {
				class = 'transparent ombox-notice',
				image = 'Information icon4.svg'
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'ombox'},
		allowSmall           = true,
		imageEmptyCell       = false,
		imageRightNone       = true
	},
	
	tmbox = {
		types = {
			speedy = {
				class = 'transparent tmbox-speedy',
				image = 'Speedy_delete.png'
			},
			delete = {
				class = 'tmbox-delete',
				image = 'Ambox warning pn.svg'
			},
			content = {
				class = 'transparent tmbox-content',
				image = 'Ambox important.svg'
			},
			style = {
				class = 'transparent tmbox-style',
				image = 'Edit-clear.svg'
			},
			move = {
				class = 'transparent tmbox-move',
				image = 'Merge-split-transwiki default.svg'
			},
			protection = {
				class = 'transparent tmbox-protection',
				image = 'Semi-protection-shackle.svg'
			},
			notice = {
				class = 'transparent tmbox-notice',
				image = 'Information icon4.svg'
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'tmbox'},
		allowSmall           = true,
		imageRightNone       = true,
		imageEmptyCell       = true,
		imageEmptyCellStyle  = true,
		templateCategory     = 'Talk message boxes'
	}
}