Template:Mbox/doc: Difference between revisions
More actions
text-align fixed and quotation marks removed |
|||
| Line 17: | Line 17: | ||
|3 = image | |3 = image | ||
|3d-en = Override the image ( | |3d-en = Override the image (''none'' for no image). | ||
|3d-td-en = Override the image (none for no image). | |||
|3label = <!-- A (very) brief name for the parameter. --> | |3label = <!-- A (very) brief name for the parameter. --> | ||
|3aliases = <!-- List of aliases, separated by / (a slash) --> | |3aliases = <!-- List of aliases, separated by / (a slash) --> | ||
| Line 33: | Line 34: | ||
- | - | ||
|5 = textstyle | |5 = textstyle | ||
|5d-en = Override default style of text (e.g. | |5d-en = Override default style of text (e.g. alignment - text-align:left; / text-align:right; / text-align:center;). | ||
|5label = <!-- A (very) brief name for the parameter. --> | |5label = <!-- A (very) brief name for the parameter. --> | ||
|5aliases = <!-- List of aliases, separated by / (a slash) --> | |5aliases = <!-- List of aliases, separated by / (a slash) --> | ||
Revision as of 01:05, 4 May 2015
This is used to create message boxes.
Usage
{{Mbox
|text =
|type =
|image =
|imageright =
|textstyle =
|style =
}}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
text | The text to be displayed. | empty | optional | |
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). | depend 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
The style is different on categories. It uses {{Cmbox}} instead.