Template:Mbox/doc: Difference between revisions
More actions
new section →{{int:Seealso}} |
templatedata; – cmbox (soon to be deprecated); – cleanupbox (also kind of deprecated, only difference is langlink (deprecated) support, therefore potentially confusing to users) |
||
| Line 6: | Line 6: | ||
|1type = string/line | |1type = string/line | ||
|1def = <!-- default value for the parameter --> | |1def = <!-- default value for the parameter --> | ||
|1stat = | |1stat = required | ||
|2 = type | |2 = type | ||
| Line 14: | Line 14: | ||
|2type = string | |2type = string | ||
|2def = notice | |2def = notice | ||
|2stat = | |2stat = optional | ||
|3 = image | |3 = image | ||
| Line 22: | Line 22: | ||
|3aliases = <!-- List of aliases, separated by / (a slash) --> | |3aliases = <!-- List of aliases, separated by / (a slash) --> | ||
|3type = string/wiki-page-name | |3type = string/wiki-page-name | ||
|3def = | |3def = depends on style | ||
|3stat = | |3stat = optional | ||
|4 = imageright | |4 = imageright | ||
| Line 31: | Line 31: | ||
|4type = string/wiki-page-name | |4type = string/wiki-page-name | ||
|4def = <!-- default value for the parameter --> | |4def = <!-- default value for the parameter --> | ||
|4stat = | |4stat = optional | ||
- | - | ||
|5 = textstyle | |5 = textstyle | ||
| Line 38: | Line 38: | ||
|5aliases = <!-- List of aliases, separated by / (a slash) --> | |5aliases = <!-- List of aliases, separated by / (a slash) --> | ||
|5type = string | |5type = string | ||
|5stat = optional- | |||
|5stat = | |||
|6 = style | |6 = style | ||
| Line 46: | Line 45: | ||
|6aliases = <!-- List of aliases, separated by / (a slash) --> | |6aliases = <!-- List of aliases, separated by / (a slash) --> | ||
|6type = string | |6type = string | ||
|6stat = optional- | |||
|6stat = | |||
|7 = lang | |7 = lang | ||
| Line 54: | Line 52: | ||
|7aliases = <!-- List of aliases, separated by / (a slash) --> | |7aliases = <!-- List of aliases, separated by / (a slash) --> | ||
|7type = string | |7type = string | ||
|7stat = optional- | |7stat = optional- | ||
| Line 134: | Line 131: | ||
|type= | |type= | ||
}} | }} | ||
<includeonly> | <includeonly> | ||
Revision as of 19:34, 13 June 2015
This is used to create message boxes.
Usage
{{Mbox
|text =
|type =
|image =
|imageright =
}}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
text | The text to be displayed. | empty | required | |
type | Changes the color depending on the message needed. Each has its own preset image. | notice | optional | |
image | Override the image (none for no image). | depends on style | optional | |
imageright | Show an image on the right side. | empty | optional | |
textstyle | Override default style of text (e.g. alignment - text-align:left; / text-align:right; / text-align:center;). | empty | optional | |
style | Override in custom style overrides for the template using CSS. | empty | optional | |
lang | Set the language of the text – it's important for right-to-left languages: their image is on the right and imageright is on the left. | empty | optional | |
|
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard. Existing template documentation Newly created template documentation and imports Wikipedia's help about TemplateData • Commons-specific information This is used to create message boxes.
| ||||||||||||||||||||||||||||||||||||||||
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users
Localization
This template is not intended to be localized.
Examples