Template:Tmbox/doc
Uses Lua: |
This is the talk message box meta-template, mainly used by other templates to create consistent message boxes for discussion pages.
Usage
{{Tmbox
|type =
|image =
|imageright =
|class =
|style =
|textstyle =
|text =
|small =
|lang =
}}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
type | type | Type of the box (speedy, delete, content, style, move, protection or notice), affects the colors and the default image of the box | notice | optional |
image smallimage | main image | The image that appears on the left of the template (on the right in right-to-left context), using full image syntax (e.g. [[File:Some image.svg|40px]] ), or the special value none to completely hide the image. The default image depends on the box type (see below). | empty | optional |
imageright smallimageright | secondary image | The image that appears on the right of the template (on the left in right-to-left context), using full image syntax (e.g. [[File:Some image.svg|40px]] ), by default nothing. | empty | optional |
class | CSS class | Space-separated list of additional CSS classes for the whole box | empty | optional |
style | CSS style | Semicolon-separated list of additional inline CSS rules for the whole box | empty | optional |
textstyle | text CSS style | Semicolon-separated list of additional inline CSS rules for the text cell | empty | optional |
text smalltext | text | The message itself | empty | required |
small | small | Set to “yes” to make the box smaller and right-aligned | empty | optional |
lang | language | Language of the box’s content, affects layout e.g. for right-to-left or East Asian languages | empty | suggested |
<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 the talk message box meta-template, mainly used by other templates to create consistent message boxes for discussion pages.
|
Additional information
The template is intended to be used in the following namespaces: all talk namespaces and noticeboards
The template is intended to be used by the following user groups: all users
Example
{{Tmbox|type = speedy |image = [[File:Example en.svg|30px]] |imageright = [[File:Example.svg|30px]] |style = border-style:dotted |textstyle = font-style:italic |text = This is the text |small = yes }}
renders as:
See also
- {{Talkbox}}
- For extensive documentation, see w:Template:Tmbox/doc.
Localization
This template is not intended to be localized.
Styles
Possible styles of the template with their default images:
notice (default) |
speedy |
delete |
content |
style |
move |
protection |