« Module:Message box/configuration » : différence entre les versions

De Adadov.net wiki
(by SublimeText.Mediawiker)
mAucun résumé des modifications
 
(22 versions intermédiaires par 2 utilisateurs non affichées)
Ligne 10 : Ligne 10 :
speedy = {
speedy = {
class = 'ambox-speedy',
class = 'ambox-speedy',
image = 'Ambox warning pn.svg'
image = 'Warning.png'
},
},
delete = {
delete = {
class = 'ambox-delete',
class = 'ambox-delete',
image = 'Ambox warning pn.svg'
image = 'Alert.png'
},
},
content = {
content = {
class = 'ambox-content',
class = 'ambox-content',
image = 'Warning.png'
image = 'Note_tip.png'
},
},
style = {
style = {
Ligne 35 : Ligne 35 :
class = 'ambox-notice',
class = 'ambox-notice',
image = 'Note tip.png'
image = 'Note tip.png'
},
memo = {
class = 'ambox-notice',
image = 'NotesIcon.png'
},
dovconnect = {
class = 'ombox-notice',
image = 'Logo-Dovconnect-icon.png',
cat  = 'DovConnect'
}
}
},
},
Ligne 52 : Ligne 61 :
sectionDefault              = 'article',
sectionDefault              = 'article',
allowMainspaceCategories    = true,
allowMainspaceCategories    = true,
templateCategory            = 'Article message templates',
templateCategory            = "",
        templateCategoryRequireName = true,
        templateCategoryRequireName = false,
templateErrorCategory      = 'Article message templates with missing parameters',
templateErrorCategory      = 'Article message templates with missing parameters',
templateErrorParamsToCheck  = {'issue', 'fix', 'subst'}
templateErrorParamsToCheck  = {'issue', 'fix', 'subst'}
Ligne 62 : Ligne 71 :
speedy = {
speedy = {
class = 'cmbox-speedy',
class = 'cmbox-speedy',
image = 'Ambox warning pn.svg'
image = 'Alert.png'
},
},
delete = {
delete = {
class = 'cmbox-delete',
class = 'cmbox-delete',
image = 'Ambox warning pn.svg'
image = 'Alert.png'
},
},
content = {
content = {
Ligne 87 : Ligne 96 :
class = 'cmbox-notice',
class = 'cmbox-notice',
image = 'Note tip.png'
image = 'Note tip.png'
},
memo = {
class = 'cmbox-notice',
image = 'NotesIcon.png'
}
}
},
},
default              = 'notice',
default              = 'notice',
showInvalidTypeError = true,
showInvalidTypeError = true,
classes              = {'plainlinks', 'cmbox', 'wgTemplate'},
classes              = {'plainlinks', 'wgTemplate'},
imageEmptyCell      = true
imageEmptyCell      = true
},
},
Ligne 99 : Ligne 112 :
warning = {
warning = {
class = 'fmbox-warning',
class = 'fmbox-warning',
image = 'Ambox warning pn.svg'
image = 'Warning.png'
},
},
editnotice = {
editnotice = {
Ligne 122 : Ligne 135 :
speedy = {
speedy = {
class = 'imbox-speedy',
class = 'imbox-speedy',
image = 'Ambox warning pn.svg'
image = 'Alert.png'
},
},
delete = {
delete = {
class = 'imbox-delete',
class = 'imbox-delete',
image = 'Ambox warning pn.svg'
image = 'Alert.png'
},
},
content = {
content = {
Ligne 155 : Ligne 168 :
class = 'imbox-notice',
class = 'imbox-notice',
image = 'Note tip.png'
image = 'Note tip.png'
},
memo = {
class = 'imbox-notice',
image = 'NotesIcon.png'
}
}
},
},
default              = 'notice',
default              = 'notice',
showInvalidTypeError = true,
showInvalidTypeError = true,
classes              = {'imbox'},
classes              = {'wgTemplate'},
usePlainlinksParam  = true,
usePlainlinksParam  = true,
imageEmptyCell      = true,
imageEmptyCell      = true,
Ligne 168 : Ligne 185 :
ombox = {
ombox = {
types = {
types = {
warning = {
class = 'ombox-content',
image = 'Warning.png'
},
speedy = {
speedy = {
class = 'ombox-speedy',
class = 'ombox-speedy',
image = 'Ambox warning pn.svg'
image = 'Alert.png'
},
},
delete = {
delete = {
class = 'ombox-delete',
class = 'ombox-delete',
image = 'Ambox warning pn.svg'
image = 'Alert.png'
},
},
content = {
content = {
Ligne 195 : Ligne 216 :
class = 'ombox-notice',
class = 'ombox-notice',
image = 'Note tip.png'
image = 'Note tip.png'
},
memo = {
class = 'ombox-notice',
image = 'NotesIcon.png',
category = 'Memo'
},
dovconnect = {
class = 'ombox-notice',
image = 'Logo-Dovconnect-icon.png',
category  = { 'DovConnect' }
}
}
},
},
allowMainspaceCategories = true,
default              = 'notice',
default              = 'notice',
showInvalidTypeError = true,
showInvalidTypeError = true,
classes              = {'plainlinks', 'ombox'},
classes              = {'plainlinks', 'wgTemplate'},
allowSmall          = true,
allowSmall          = true,
imageEmptyCell      = true,
imageEmptyCell      = true,
Ligne 209 : Ligne 241 :
speedy = {
speedy = {
class = 'tmbox-speedy',
class = 'tmbox-speedy',
image = 'Ambox warning pn.svg'
image = 'Alert.png'
},
},
delete = {
delete = {
class = 'tmbox-delete',
class = 'tmbox-delete',
image = 'Ambox warning pn.svg'
image = 'Alert.png'
},
},
content = {
content = {
Ligne 234 : Ligne 266 :
class = 'tmbox-notice',
class = 'tmbox-notice',
image = 'Note tip.png'
image = 'Note tip.png'
},
memo = {
class = 'tmbox-notice',
image = 'NotesIcon.png'
}
}
},
},
default              = 'notice',
default              = 'notice',
showInvalidTypeError = true,
showInvalidTypeError = true,
classes              = {'plainlinks', 'tmbox'},
classes              = {'plainlinks', 'wgTemplate'},
allowId              = true,
allowId              = true,
allowSmall          = true,
allowSmall          = true,

Dernière version du 18 juin 2024 à 13:09

Documentation icon Documentation Module[créer]
--------------------------------------------------------------------------------
--                          Message box configuration                         --
--                                                                            --
-- This module contains configuration data for [[Module:Message box]].        --
--------------------------------------------------------------------------------

return {
	ambox = {
		types = {
			speedy = {
				class = 'ambox-speedy',
				image = 'Warning.png'
			},
			delete = {
				class = 'ambox-delete',
				image = 'Alert.png'
			},
			content = {
				class = 'ambox-content',
				image = 'Note_tip.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 = 'Note tip.png'
			},
			memo = {
				class = 'ambox-notice',
				image = 'NotesIcon.png'
			},
			dovconnect = {
				class = 'ombox-notice',
				image = 'Logo-Dovconnect-icon.png',
				cat   = 'DovConnect'
			}
		},
		default                     = 'notice',
		allowBlankParams            = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
		allowSmall                  = true,
		smallParam                  = 'left',
		smallClass                  = 'mbox-small-left',
		substCheck                  = true,
		classes                     = {'metadata', 'plainlinks', 'ambox', 'wgTemplate'},
		imageEmptyCell              = true,
		imageCheckBlank             = true,
		imageSmallSize              = '20x20px',
		imageCellDiv                = true,
		useCollapsibleTextFields    = true,
		imageRightNone              = true,
		sectionDefault              = 'article',
		allowMainspaceCategories    = true,
		templateCategory            = "",
        templateCategoryRequireName = false,
		templateErrorCategory       = 'Article message templates with missing parameters',
		templateErrorParamsToCheck  = {'issue', 'fix', 'subst'}
	},
	
	cmbox = {
		types = {
			speedy = {
				class = 'cmbox-speedy',
				image = 'Alert.png'
			},
			delete = {
				class = 'cmbox-delete',
				image = 'Alert.png'
			},
			content = {
				class = 'cmbox-content',
				image = 'Warning.png'
			},
			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 = 'Note tip.png'
			},
			memo = {
				class = 'cmbox-notice',
				image = 'NotesIcon.png'
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'plainlinks', 'wgTemplate'},
		imageEmptyCell       = true
	},
	
	fmbox = {
		types = {
			warning = {
				class = 'fmbox-warning',
				image = 'Warning.png'
			},
			editnotice = {
				class = 'fmbox-editnotice',
				image = 'Information icon4.svg'
			},
			system = {
				class = 'fmbox-system',
				image = 'Information icon4.svg'
			}
		},
		default              = 'system',
		showInvalidTypeError = true,
		allowId                = true,
		classes              = {'plainlinks', 'fmbox'},
		imageEmptyCell       = false,
		imageRightNone       = false
	},
	
	imbox = {
		types = {
			speedy = {
				class = 'imbox-speedy',
				image = 'Alert.png'
			},
			delete = {
				class = 'imbox-delete',
				image = 'Alert.png'
			},
			content = {
				class = 'imbox-content',
				image = 'Warning.png'
			},
			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 = 'Note tip.png'
			},
			memo = {
				class = 'imbox-notice',
				image = 'NotesIcon.png'
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'wgTemplate'},
		usePlainlinksParam   = true,
		imageEmptyCell       = true,
		below                = true,
		templateCategory     = 'File message boxes'
	},
	
	ombox = {
		types = {
			warning = {
				class = 'ombox-content',
				image = 'Warning.png'
			},
			speedy = {
				class = 'ombox-speedy',
				image = 'Alert.png'
			},
			delete = {
				class = 'ombox-delete',
				image = 'Alert.png'
			},
			content = {
				class = 'ombox-content',
				image = 'Warning.png'
			},
			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 = 'Note tip.png'
			},
			memo = {
				class = 'ombox-notice',
				image = 'NotesIcon.png',
				category = 'Memo'
			},
			dovconnect = {
				class = 'ombox-notice',
				image = 'Logo-Dovconnect-icon.png',
				category   = { 'DovConnect' }
			}
		},
		allowMainspaceCategories = true,
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'plainlinks', 'wgTemplate'},
		allowSmall           = true,
		imageEmptyCell       = true,
		imageRightNone       = true
	},
	
	tmbox = {
		types = {
			speedy = {
				class = 'tmbox-speedy',
				image = 'Alert.png'
			},
			delete = {
				class = 'tmbox-delete',
				image = 'Alert.png'
			},
			content = {
				class = 'tmbox-content',
				image = 'Warning.png'
			},
			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 = 'Note tip.png'
			},
			memo = {
				class = 'tmbox-notice',
				image = 'NotesIcon.png'
			}
		},
		default              = 'notice',
		showInvalidTypeError = true,
		classes              = {'plainlinks', 'wgTemplate'},
		allowId              = true,
		allowSmall           = true,
		imageRightNone       = true,
		imageEmptyCell       = true,
		imageEmptyCellStyle  = true,
		templateCategory     = 'Talk message boxes'
	}
}