Template:Ambox/doc: Difference between revisions
m Trim leading whitespace when transcluded |
→TemplateData: Transclude TemplateData from {{Mbox/TemplateData}} |
||
| Line 33: | Line 33: | ||
| text = type=<u>style</u> — Style issues, such as {{tl|cleanup}} and {{tl|Documentation needed}}. | | text = type=<u>style</u> — Style issues, such as {{tl|cleanup}} and {{tl|Documentation needed}}. | ||
}} | }} | ||
{{ | {{Ambox{{\sandbox}} | ||
| nocat = true | | nocat = true | ||
| type = notice | | type = notice | ||
| Line 76: | Line 76: | ||
| small = left | | small = left | ||
}} | }} | ||
{{ | {{Ambox{{\sandbox}} | ||
| nocat = true | | nocat = true | ||
| type = notice | | type = notice | ||
| Line 104: | Line 104: | ||
== TemplateData == | == TemplateData == | ||
{{TemplateData header}} | <!--{{TemplateData header}}--> | ||
<templatedata> | {{Mbox/TemplateData}} | ||
<!--templatedata> | |||
{ | { | ||
"params": { | "params": { | ||
| Line 127: | Line 128: | ||
"description": "This is a generic article message box." | "description": "This is a generic article message box." | ||
} | } | ||
</templatedata> | </templatedata--> | ||
<includeonly>{{Sandbox other|| | <includeonly>{{Sandbox other|| | ||
<!-- Categories below this line; interwikis at Wikidata --> | <!-- Categories below this line; interwikis at Wikidata --> | ||
[[Category:Mbox templates{{#translation:}}]] | [[Category:Mbox templates{{#translation:}}]] | ||
}}</includeonly> | }}</includeonly> | ||
Revision as of 03:44, 19 July 2021
| File:OOjs UI icon book-ltr.svg | This is a documentation subpage for Template:Ambox. It contains usage information, categories and other content that is not part of the original Template page. |
[[Category:Template documentation pages{{#translation:}}]]
| File:Lua-Logo.svg | This template uses Lua: |
Lua error: callParserFunction: function "#translation" was not found.
| This template is used on approximately 8,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before changing this template. |
This is the {{Ambox}} or Article message box meta-template. This template also depends on MediaWiki:Gadget-enwp-boxes.css.
Parameters
type
The type parameter defines the colour of the left bar, and the image that is used by default. The type is chosen not on aesthetics but is based on the type of issue that the template describes. The seven available types and their default images are shown below.
If no type parameter is given the template defaults to |type=notice.
small=left
See also
Other pages:
- w:Template:Mbox
- w:Wikipedia:Ambox CSS classes — Describes how to use the ambox CSS classes directly in wikitables and HTML tables.
- w:Wikipedia:Article message boxes — The style guideline for creating article message boxes.
- w:Wikipedia talk:Article message boxes — For discussion about these matters.
TemplateData
TemplateData for Ambox
This is the specialized version of the {{mbox}} or “multi namespace message box” meta-template.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Type | type | no description
| String | suggested |
| Image (left) | image | no description
| Content | suggested |
| Image (right) | imageright | no description | Content | optional |
| CSS Style | style | no description | String | optional |
| Text CSS Style | textstyle | no description | String | optional |
| Text | text | no description | Content | suggested |
| Small? | small | no description
| Boolean | optional |
| Small Image (left) | smallimage | no description
| Content | optional |
| Small Image (right) | smallimageright | no description
| Content | optional |
| Small Text | smalltext | no description
| Content | optional |