Module:Message box/configuration
Timeẓri
La documentation pour ce module peut être créée à Module:Message box/configuration/doc
----------------------------------------------------------------------------------------------------
--
-- Configuration for Module:Message box
--
-- This configuration data provides all standard layout keys, CSS styling classes, and default strings
-- required by the Module:Message box processing engine.
----------------------------------------------------------------------------------------------------
local cfg = {}
-- Parameters that can be left blank without being discarded automatically
cfg.allowBlankParams = {
'talk', 'fix', 'date', 'info', 'sect', 'issue', 'text', 'smalltext'
}
----------------------------------------------------------------------------------------------------
-- 1. AMBOX (Article Message Box) Layout Configuration
----------------------------------------------------------------------------------------------------
cfg.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 = 'Ambox style.png'
},
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',
showInvalidTypeError = true,
allowMaxspaceCategories = true,
allowMainspaceCategories = true,
allowSmall = true,
smallClass = 'ambox-small',
substCheck = true,
classes = {'amarkbox', 'mbox-inside-ambox'},
useCollapsibleTextFields = true,
sectionDefault = 'article',
imageCellDiv = true
}
----------------------------------------------------------------------------------------------------
-- 2. CMBOX (Category Message Box) Layout Configuration
----------------------------------------------------------------------------------------------------
cfg.cmbox = {
types = {
speedy = {
class = 'cmbox-speedy',
image = 'Ambox speedy deletion.png'
},
delete = {
class = 'cmbox-delete',
image = 'Ambox deletion.png'
},
content = {
class = 'cmbox-content',
image = 'Ambox content.png'
},
style = {
class = 'cmbox-style',
image = 'Ambox style.png'
},
move = {
class = 'cmbox-move',
image = 'Ambox move.png'
},
protection = {
class = 'cmbox-protection',
image = 'Ambox protection.png'
},
notice = {
class = 'cmbox-notice',
image = 'Ambox notice.png'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'cmbox'},
imageEmptyCell = true
}
----------------------------------------------------------------------------------------------------
-- 3. FMBOX (Footer Message Box) Layout Configuration
----------------------------------------------------------------------------------------------------
cfg.fmbox = {
types = {
warning = {
class = 'fmbox-warning',
image = 'Ambox warning.png'
},
editnotice = {
class = 'fmbox-editnotice',
image = 'Ambox notice.png'
},
system = {
class = 'fmbox-system',
image = 'Ambox notice.png'
}
},
default = 'system',
showInvalidTypeError = true,
classes = {'fmbox'}
}
----------------------------------------------------------------------------------------------------
-- 4. IMBOX (Image/File Message Box) Layout Configuration
----------------------------------------------------------------------------------------------------
cfg.imbox = {
types = {
speedy = {
class = 'imbox-speedy',
image = 'Ambox speedy deletion.png'
},
delete = {
class = 'imbox-delete',
image = 'Ambox deletion.png'
},
content = {
class = 'imbox-content',
image = 'Ambox content.png'
},
style = {
class = 'imbox-style',
image = 'Ambox style.png'
},
move = {
class = 'imbox-move',
image = 'Ambox move.png'
},
protection = {
class = 'imbox-protection',
image = 'Ambox protection.png'
},
license = {
class = 'imbox-license',
image = 'Imbox license.png'
},
notice = {
class = 'imbox-notice',
image = 'Ambox notice.png'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'imbox'},
imageEmptyCell = true
}
----------------------------------------------------------------------------------------------------
-- 5. OMBOX (Other Pages Message Box) Layout Configuration
----------------------------------------------------------------------------------------------------
cfg.ombox = {
types = {
speedy = {
class = 'ombox-speedy',
image = 'Ambox speedy deletion.png'
},
delete = {
class = 'ombox-delete',
image = 'Ambox deletion.png'
},
content = {
class = 'ombox-content',
image = 'Ambox content.png'
},
style = {
class = 'ombox-style',
image = 'Ambox style.png'
},
move = {
class = 'ombox-move',
image = 'Ambox move.png'
},
protection = {
class = 'ombox-protection',
image = 'Ambox protection.png'
},
notice = {
class = 'ombox-notice',
image = 'Ambox notice.png'
}
},
default = 'notice',
showInvalidTypeError = true,
allowSmall = true,
smallClass = 'mbox-small',
classes = {'ombox'},
imageEmptyCell = true
}
----------------------------------------------------------------------------------------------------
-- 6. TMBOX (Talk Page Message Box) Layout Configuration
----------------------------------------------------------------------------------------------------
cfg.tmbox = {
types = {
speedy = {
class = 'tmbox-speedy',
image = 'Ambox speedy deletion.png'
},
delete = {
class = 'tmbox-delete',
image = 'Ambox deletion.png'
},
content = {
class = 'tmbox-content',
image = 'Ambox content.png'
},
style = {
class = 'tmbox-style',
image = 'Ambox style.png'
},
move = {
class = 'tmbox-move',
image = 'Ambox move.png'
},
protection = {
class = 'tmbox-protection',
image = 'Ambox protection.png'
},
notice = {
class = 'tmbox-notice',
image = 'Ambox notice.png'
}
},
default = 'notice',
showInvalidTypeError = true,
allowSmall = true,
smallClass = 'mbox-small',
classes = {'tmbox'},
imageEmptyCell = true
}
return cfg