Template:Mbox/doc: Difference between revisions
More actions
use {{TemplateBox}}; "textalign" parameter changed to "textstyle" |
remove duplicate parameters, test |
||
| Line 22: | Line 22: | ||
|3type = string/wiki-page-name | |3type = string/wiki-page-name | ||
|3def = depend on style | |3def = depend on style | ||
| | |3stat = <!-- required, optional or optional-; optional- means it is optional and omitted in the usage-sample --> | ||
|4 = imageright | |4 = imageright | ||
Revision as of 14:58, 11 November 2014
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. centering - "align:left" / "align:right" / "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.