Module:Message box/doc
Appearance
![]() | This is a documentation subpage for Module:Message box. It may contain usage information, categories and other content that is not part of the original module page. |
This module implements the message box templates {{mbox}}, {{ambox}}, {{cmbox}}, {{fmbox}}, {{imbox}}, {{ombox}}, and {{tmbox}}. It uses the same basic code for each of these templates; the differences between each of them are configured using the data at Module:Message box/configuration.
Usage from #invoke
{{#invoke:Message box|box type|parameters}}
There are seven available box types:
mbox
- for message boxes to be used in multiple namespacesambox
- for article message boxescmbox
- for category message boxesfmbox
- for interface message boxesimbox
- for file namespace message boxestmbox
- for talk page message boxesombox
- for message boxes in other namespaces
Parameters
Parameters available to all box types
- page
- demospace
- type
- id
- style
- textstyle
- text
- image
- imageright
- nocat
Parameters limited to specific box types
- subst - depends on cfg.substCheck
- small - depends on cfg.allowSmall
- plainlinks - depends on cfg.usePlainlinksParam
- name - depends on cfg.useCollapsibleTextFields
- sect - depends on cfg.useCollapsibleTextFields
- issue - depends on cfg.useCollapsibleTextFields
- talk - depends on cfg.useCollapsibleTextFields
- fix - depends on cfg.useCollapsibleTextFields
- date - depends on cfg.useCollapsibleTextFields
- info - depends on cfg.useCollapsibleTextFields
- smalltext - depends on cfg.allowSmall
- below - depends on cfg.below
- smallimage - depends on cfg.allowSmall
- smallimageright - depends on cfg.allowSmall
- cat, cat1, cat2, cat3, ... - depends on cfg.useMainspaceCategories
- category, category1, category2, category3, ... - depends on cfg.useMainspaceCategories