Modul:Message box/configuration: Unterschied zwischen den Versionen

Permanently protected module
ZIM HilfeWiki - das Wiki
K (Schützte „Modul:Message box/configuration“ ([Bearbeiten=Nur Administratoren erlauben] (unbeschränkt) [Verschieben=Nur Administratoren erlauben] (unbeschränkt)))
imported>Oetterer
 
(Eine dazwischenliegende Version von einem anderen Benutzer wird nicht angezeigt)
Zeile 1: Zeile 1:
local ambox = {
+
--------------------------------------------------------------------------------
types = {
+
--                          Message box configuration                        --
speedy = {
+
--                                                                            --
class = 'ambox-speedy',
+
-- This module contains configuration data for [[Module:Message box]].        --
image = 'Mbox deletion.png'
+
--------------------------------------------------------------------------------
},
+
 
delete = {
+
local __fileExtension = require( 'Module:Util' ).globalFileExtension()
class = 'ambox-delete',
+
 
image = 'Mbox deletion.png'
+
return {
},
+
ambox = {
content = {
+
types = {
class = 'ambox-content',
+
speedy = {
image = 'Mbox content.png'
+
class = 'ambox-speedy',
},
+
image = 'Ambox warning pn' .. __fileExtension
style = {
+
},
class = 'ambox-style',
+
delete = {
image = 'Mbox style.png'
+
class = 'ambox-delete',
 +
image = 'Ambox warning pn' .. __fileExtension
 +
},
 +
content = {
 +
class = 'ambox-content',
 +
image = 'Ambox important' .. __fileExtension
 +
},
 +
style = {
 +
class = 'ambox-style',
 +
image = 'Edit-clear' .. __fileExtension
 +
},
 +
move = {
 +
class = 'ambox-move',
 +
image = 'Merge-split-transwiki default' .. __fileExtension
 +
},
 +
protection = {
 +
class = 'ambox-protection',
 +
image = 'Padlock-silver-medium' .. __fileExtension
 +
},
 +
notice = {
 +
class = 'ambox-notice',
 +
image = 'Information icon4' .. __fileExtension
 +
}
 
},
 
},
move = {
+
default                    = 'notice',
class = 'ambox-move',
+
allowBlankParams            = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
image = 'Mbox move.png'
+
allowSmall                  = true,
},
+
smallParam                  = 'left',
protection = {
+
smallClass                  = 'mbox-small-left',
class = 'ambox-protection',
+
substCheck                  = true,
image = 'Padlock-silver.png'
+
classes                    = {'metadata', 'ambox'},
},
+
imageEmptyCell              = true,
notice = {
+
imageCheckBlank            = true,
class = 'ambox-notice',
+
imageSmallSize              = '20x20px',
image = 'Mbox notice.png'
+
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              = '<small>[[Help:Maintenance template removal|Learn how and when to remove this template message]]</small>',
 +
templatestyles              = 'Module:Message box/ambox.css'
 
},
 
},
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' .. __fileExtension
classes                    = {'metadata', 'plainlinks', 'ambox'},
+
},
imageEmptyCell              = true,
+
delete = {
imageCheckBlank            = true,
+
class = 'cmbox-delete',
imageSmallSize              = '20x20px',
+
image = 'Ambox warning pn' .. __fileExtension
imageCellDiv                = true,
+
},
useCollapsibleTextFields    = true,
+
content = {
imageRightNone              = true,
+
class = 'cmbox-content',
sectionDefault              = 'article',
+
image = 'Ambox important' .. __fileExtension
allowMainspaceCategories    = true,
+
},
-- templateCategory            = '', -- 'Article message templates',
+
style = {
-- templateCategoryRequireName = false,
+
class = 'cmbox-style',
-- templateErrorCategory      = '', --'Article message templates with missing parameters',
+
image = 'Edit-clear' .. __fileExtension
-- templateErrorParamsToCheck  = {} -- {'issue', 'fixed', 'subst'}
+
},
}
+
move = {
 
+
class = 'cmbox-move',
local cmbox = {
+
image = 'Merge-split-transwiki default' .. __fileExtension
types = {
+
},
speedy = {
+
protection = {
class = 'cmbox-speedy',
+
class = 'cmbox-protection',
image = 'Mbox deletion.png'
+
image = 'Padlock-silver-medium' .. __fileExtension
},
+
},
delete = {
+
notice = {
class = 'cmbox-delete',
+
class = 'cmbox-notice',
image = 'Mbox deletion.png'
+
image = 'Information icon4' .. __fileExtension
},
+
}
content = {
 
class = 'cmbox-content',
 
image = 'Mbox content.png'
 
 
},
 
},
style = {
+
default              = 'notice',
class = 'cmbox-style',
+
showInvalidTypeError = true,
image = 'Mbox style.png'
+
classes              = {'cmbox'},
},
+
imageEmptyCell      = true,
move = {
+
templatestyles      = 'Module:Message box/cmbox.css'
class = 'cmbox-move',
 
image = 'Mbox move.png'
 
},
 
protection = {
 
class = 'cmbox-protection',
 
image = 'Padlock-silver.png'
 
},
 
notice = {
 
class = 'cmbox-notice',
 
image = 'Mbox notice.png'
 
}
 
 
},
 
},
default              = 'notice',
+
showInvalidTypeError = true,
+
fmbox = {
classes              = {'plainlinks', 'cmbox'},
+
types = {
imageEmptyCell      = true
+
warning = {
}
+
class = 'fmbox-warning',
 
+
image = 'Ambox warning pn' .. __fileExtension
local fmbox = {
+
},
types = {
+
editnotice = {
warning = {
+
class = 'fmbox-editnotice',
class = 'fmbox-warning',
+
image = 'Information icon4' .. __fileExtension
image = 'Mbox deletion.png'
+
},
},
+
system = {
editnotice = {
+
class = 'fmbox-system',
class = 'fmbox-editnotice',
+
image = 'Information icon4' .. __fileExtension
image = 'Mbox notice.png'
+
}
 
},
 
},
system = {
+
default              = 'system',
class = 'fmbox-system',
+
showInvalidTypeError = true,
image = 'Mbox notice.png'
+
classes              = {'fmbox'},
}
+
imageEmptyCell      = false,
 +
imageRightNone      = false,
 +
templatestyles      = 'Module:Message box/fmbox.css'
 
},
 
},
default              = 'system',
+
showInvalidTypeError = true,
+
imbox = {
allowId                = true,
+
types = {
classes              = {'plainlinks', 'fmbox'},
+
speedy = {
imageEmptyCell      = false,
+
class = 'imbox-speedy',
imageRightNone      = false
+
image = 'Ambox warning pn' .. __fileExtension
}
+
},
 
+
delete = {
local imbox = {
+
class = 'imbox-delete',
types = {
+
image = 'Ambox warning pn' .. __fileExtension
speedy = {
+
},
class = 'imbox-speedy',
+
content = {
image = 'Mbox deletion.png'
+
class = 'imbox-content',
 +
image = 'Ambox important' .. __fileExtension
 +
},
 +
style = {
 +
class = 'imbox-style',
 +
image = 'Edit-clear' .. __fileExtension
 +
},
 +
move = {
 +
class = 'imbox-move',
 +
image = 'Merge-split-transwiki default' .. __fileExtension
 +
},
 +
protection = {
 +
class = 'imbox-protection',
 +
image = 'Padlock-silver-medium' .. __fileExtension
 +
},
 +
license = {
 +
class = 'imbox-license licensetpl',
 +
image = 'PD-icon' .. __fileExtension
 +
},
 +
featured = {
 +
class = 'imbox-featured',
 +
image = 'Cscr-featured' .. __fileExtension
 +
},
 +
notice = {
 +
class = 'imbox-notice',
 +
image = 'Information icon4' .. __fileExtension
 +
}
 
},
 
},
delete = {
+
default              = 'notice',
class = 'imbox-delete',
+
showInvalidTypeError = true,
image = 'Mbox deletion.png'
+
classes              = {'imbox'},
},
+
imageEmptyCell      = true,
content = {
+
below                = true,
class = 'imbox-content',
+
--templateCategory    = 'File message boxes',
image = 'Mbox content.png'
+
templatestyles      = 'Module:Message box/imbox.css'
},
 
style = {
 
class = 'imbox-style',
 
image = 'Mbox style.png'
 
},
 
move = {
 
class = 'imbox-move',
 
image = 'Mbox move.png'
 
},
 
protection = {
 
class = 'imbox-protection',
 
image = 'Padlock-silver.png'
 
},
 
license = {
 
class = 'imbox-license',
 
image = 'Mbox license.png'
 
},
 
featured = {
 
class = 'imbox-featured',
 
image = 'Mbox featured.png'
 
},
 
notice = {
 
class = 'imbox-notice',
 
image = 'Mbox notice.png'
 
}
 
 
},
 
},
default              = 'notice',
+
showInvalidTypeError = true,
+
ombox = {
classes              = {'imbox'},
+
types = {
usePlainlinksParam  = true,
+
speedy = {
imageEmptyCell      = true,
+
class = 'ombox-speedy',
below                = true
+
image = 'Ambox warning pn' .. __fileExtension
-- templateCategory    = 'File message boxes'
+
},
}
+
delete = {
 
+
class = 'ombox-delete',
local ombox = {
+
image = 'Ambox warning pn' .. __fileExtension
types = {
+
},
speedy = {
+
content = {
class = 'ombox-speedy',
+
class = 'ombox-content',
image = 'Mbox deletion.png'
+
image = 'Ambox important' .. __fileExtension
},
+
},
delete = {
+
style = {
class = 'ombox-delete',
+
class = 'ombox-style',
image = 'Mbox deletion.png'
+
image = 'Edit-clear' .. __fileExtension
 +
},
 +
move = {
 +
class = 'ombox-move',
 +
image = 'Merge-split-transwiki default' .. __fileExtension
 +
},
 +
protection = {
 +
class = 'ombox-protection',
 +
image = 'Padlock-silver-medium' .. __fileExtension
 +
},
 +
notice = {
 +
class = 'ombox-notice',
 +
image = 'Information icon4' .. __fileExtension
 +
}
 
},
 
},
content = {
+
default              = 'notice',
class = 'ombox-content',
+
showInvalidTypeError = true,
image = 'Mbox content.png'
+
classes              = {'ombox'},
},
+
allowSmall          = true,
style = {
+
imageEmptyCell      = true,
class = 'ombox-style',
+
imageRightNone      = true,
image = 'Mbox style.png'
+
templatestyles      = 'Module:Message box/ombox.css'
},
 
move = {
 
class = 'ombox-move',
 
image = 'Mbox move.png'
 
},
 
protection = {
 
class = 'ombox-protection',
 
image = 'Padlock-silver.png'
 
},
 
notice = {
 
class = 'ombox-notice',
 
image = 'Mbox 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' .. __fileExtension
}
+
},
 
+
delete = {
local tmbox = {
+
class = 'tmbox-delete',
types = {
+
image = 'Ambox warning pn' .. __fileExtension
speedy = {
+
},
class = 'tmbox-speedy',
+
content = {
image = 'Mbox deletion.png'
+
class = 'tmbox-content',
 +
image = 'Ambox important' .. __fileExtension
 +
},
 +
style = {
 +
class = 'tmbox-style',
 +
image = 'Edit-clear' .. __fileExtension
 +
},
 +
move = {
 +
class = 'tmbox-move',
 +
image = 'Merge-split-transwiki default' .. __fileExtension
 +
},
 +
protection = {
 +
class = 'tmbox-protection',
 +
image = 'Padlock-silver-medium' .. __fileExtension
 +
},
 +
notice = {
 +
class = 'tmbox-notice',
 +
image = 'Information icon4' .. __fileExtension
 +
}
 
},
 
},
delete = {
+
default              = 'notice',
class = 'tmbox-delete',
+
showInvalidTypeError = true,
image = 'Mbox deletion.png'
+
classes              = {'tmbox'},
},
+
allowSmall          = true,
content = {
+
imageRightNone      = true,
class = 'tmbox-content',
+
imageEmptyCell      = true,
image = 'Mbox content.png'
+
--templateCategory    = 'Talk message boxes',
},
+
templatestyles      = 'Module:Message box/tmbox.css'
style = {
+
}
class = 'tmbox-style',
 
image = 'Mbox style.png'
 
},
 
move = {
 
class = 'tmbox-move',
 
image = 'Mbox move.png'
 
},
 
protection = {
 
class = 'tmbox-protection',
 
image = 'Padlock-silver.png'
 
},
 
notice = {
 
class = 'tmbox-notice',
 
image = 'Mbox 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
 
 
}
 
}

Aktuelle Version vom 22. September 2022, 18:00 Uhr

Documentation icon Module documentation

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

local __fileExtension = require( 'Module:Util' ).globalFileExtension()

return {
	ambox = {
		types = {
			speedy = {
				class = 'ambox-speedy',
				image = 'Ambox warning pn' .. __fileExtension
			},
			delete = {
				class = 'ambox-delete',
				image = 'Ambox warning pn' .. __fileExtension
			},
			content = {
				class = 'ambox-content',
				image = 'Ambox important' .. __fileExtension
			},
			style = {
				class = 'ambox-style',
				image = 'Edit-clear' .. __fileExtension
			},
			move = {
				class = 'ambox-move',
				image = 'Merge-split-transwiki default' .. __fileExtension
			},
			protection = {
				class = 'ambox-protection',
				image = 'Padlock-silver-medium' .. __fileExtension
			},
			notice = {
				class = 'ambox-notice',
				image = 'Information icon4' .. __fileExtension
			}
		},
		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               = '<small>[[Help:Maintenance template removal|Learn how and when to remove this template message]]</small>',
		templatestyles              = 'Module:Message box/ambox.css'
	},
	
	cmbox = {
		types = {
			speedy = {
				class = 'cmbox-speedy',
				image = 'Ambox warning pn' .. __fileExtension
			},
			delete = {
				class = 'cmbox-delete',
				image = 'Ambox warning pn' .. __fileExtension
			},
			content = {
				class = 'cmbox-content',
				image = 'Ambox important' .. __fileExtension
			},
			style = {
				class = 'cmbox-style',
				image = 'Edit-clear' .. __fileExtension
			},
			move = {
				class = 'cmbox-move',
				image = 'Merge-split-transwiki default' .. __fileExtension
			},
			protection = {
				class = 'cmbox-protection',
				image = 'Padlock-silver-medium' .. __fileExtension
			},
			notice = {
				class = 'cmbox-notice',
				image = 'Information icon4' .. __fileExtension
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'cmbox'},
		imageEmptyCell       = true,
		templatestyles       = 'Module:Message box/cmbox.css'
	},
	
	fmbox = {
		types = {
			warning = {
				class = 'fmbox-warning',
				image = 'Ambox warning pn' .. __fileExtension
			},
			editnotice = {
				class = 'fmbox-editnotice',
				image = 'Information icon4' .. __fileExtension
			},
			system = {
				class = 'fmbox-system',
				image = 'Information icon4' .. __fileExtension
			}
		},
		default              = 'system',
		showInvalidTypeError = true,
		classes              = {'fmbox'},
		imageEmptyCell       = false,
		imageRightNone       = false,
		templatestyles       = 'Module:Message box/fmbox.css'
	},
	
	imbox = {
		types = {
			speedy = {
				class = 'imbox-speedy',
				image = 'Ambox warning pn' .. __fileExtension
			},
			delete = {
				class = 'imbox-delete',
				image = 'Ambox warning pn' .. __fileExtension
			},
			content = {
				class = 'imbox-content',
				image = 'Ambox important' .. __fileExtension
			},
			style = {
				class = 'imbox-style',
				image = 'Edit-clear' .. __fileExtension
			},
			move = {
				class = 'imbox-move',
				image = 'Merge-split-transwiki default' .. __fileExtension
			},
			protection = {
				class = 'imbox-protection',
				image = 'Padlock-silver-medium' .. __fileExtension
			},
			license = {
				class = 'imbox-license licensetpl',
				image = 'PD-icon' .. __fileExtension
			},
			featured = {
				class = 'imbox-featured',
				image = 'Cscr-featured' .. __fileExtension
			},
			notice = {
				class = 'imbox-notice',
				image = 'Information icon4' .. __fileExtension
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'imbox'},
		imageEmptyCell       = true,
		below                = true,
		--templateCategory     = 'File message boxes',
		templatestyles       = 'Module:Message box/imbox.css'
	},
	
	ombox = {
		types = {
			speedy = {
				class = 'ombox-speedy',
				image = 'Ambox warning pn' .. __fileExtension
			},
			delete = {
				class = 'ombox-delete',
				image = 'Ambox warning pn' .. __fileExtension
			},
			content = {
				class = 'ombox-content',
				image = 'Ambox important' .. __fileExtension
			},
			style = {
				class = 'ombox-style',
				image = 'Edit-clear' .. __fileExtension
			},
			move = {
				class = 'ombox-move',
				image = 'Merge-split-transwiki default' .. __fileExtension
			},
			protection = {
				class = 'ombox-protection',
				image = 'Padlock-silver-medium' .. __fileExtension
			},
			notice = {
				class = 'ombox-notice',
				image = 'Information icon4' .. __fileExtension
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'ombox'},
		allowSmall           = true,
		imageEmptyCell       = true,
		imageRightNone       = true,
		templatestyles       = 'Module:Message box/ombox.css'
	},
	
	tmbox = {
		types = {
			speedy = {
				class = 'tmbox-speedy',
				image = 'Ambox warning pn' .. __fileExtension
			},
			delete = {
				class = 'tmbox-delete',
				image = 'Ambox warning pn' .. __fileExtension
			},
			content = {
				class = 'tmbox-content',
				image = 'Ambox important' .. __fileExtension
			},
			style = {
				class = 'tmbox-style',
				image = 'Edit-clear' .. __fileExtension
			},
			move = {
				class = 'tmbox-move',
				image = 'Merge-split-transwiki default' .. __fileExtension
			},
			protection = {
				class = 'tmbox-protection',
				image = 'Padlock-silver-medium' .. __fileExtension
			},
			notice = {
				class = 'tmbox-notice',
				image = 'Information icon4' .. __fileExtension
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'tmbox'},
		allowSmall           = true,
		imageRightNone       = true,
		imageEmptyCell       = true,
		--templateCategory     = 'Talk message boxes',
		templatestyles       = 'Module:Message box/tmbox.css'
	}
}
Cookies helfen uns bei der Bereitstellung des ZIM HilfeWikis. Bei der Nutzung vom ZIM HilfeWiki werden die in der Datenschutzerklärung beschriebenen Cookies gespeichert.