Template:Ambox/doc: Difference between revisions
Jump to navigation
Jump to search
Use {{\sandbox}} and {{Sandbox other}}; →top: Update {{Uses TemplateStyles}} |
→Parameters: Document `small=left` |
||
| Line 7: | Line 7: | ||
This is the {{Tl|Ambox}} or '''Article message box''' meta-template. This template also depends on [[MediaWiki:Gadget-enwp-boxes.css]]. | This is the {{Tl|Ambox}} or '''Article message box''' meta-template. This template also depends on [[MediaWiki:Gadget-enwp-boxes.css]]. | ||
== Parameters == | |||
=== <code>type</code> === | === <code>type</code> === | ||
The <code>type</code> 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. | The <code>type</code> 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. | ||
{{Ambox{{\sandbox}} | {{Ambox{{\sandbox}} | ||
|nocat=true | | nocat = true | ||
| type = speedy | | type = speedy | ||
| text = type=<u>speedy</u> — Speedy deletion issues, such as {{tl|speedy}}. | | text = type=<u>speedy</u> — Speedy deletion issues, such as {{tl|speedy}}. | ||
}} | }} | ||
{{Ambox{{\sandbox}} | {{Ambox{{\sandbox}} | ||
|nocat=true | | nocat = true | ||
| type = delete | | type = delete | ||
| text = type=<u>delete</u> — Deletion issues, such as {{tl|delete}}. | | text = type=<u>delete</u> — Deletion issues, such as {{tl|delete}}. | ||
}} | }} | ||
{{Ambox{{\sandbox}} | {{Ambox{{\sandbox}} | ||
|nocat=true | | nocat = true | ||
| type = content | | type = content | ||
| text = type=<u>content</u> — Content issues, such as {{tl|Update}} and {{tl|Expand}}. | | text = type=<u>content</u> — Content issues, such as {{tl|Update}} and {{tl|Expand}}. | ||
}} | }} | ||
{{Ambox{{\sandbox}} | {{Ambox{{\sandbox}} | ||
|nocat=true | | nocat = true | ||
| type = style | | type = style | ||
| 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}} | {{ambox{{\sandbox}} | ||
|nocat=true | | nocat = true | ||
| type = notice | | type = notice | ||
| text = type=<u>notice</u> — Notices, such as {{tl|Extension exception}} and {{tl|Translating}}. | | text = type=<u>notice</u> — Notices, such as {{tl|Extension exception}} and {{tl|Translating}}. | ||
}} | }} | ||
{{Ambox{{\sandbox}} | {{Ambox{{\sandbox}} | ||
|nocat=true | | nocat = true | ||
| type = move | | type = move | ||
| text = type=<u>move</u> — Merge, split and transwiki proposals, such as {{tl|Merge}} and {{tl|Move to Commons}}. | | text = type=<u>move</u> — Merge, split and transwiki proposals, such as {{tl|Merge}} and {{tl|Move to Commons}}. | ||
}} | }} | ||
{{Ambox{{\sandbox}} | {{Ambox{{\sandbox}} | ||
|nocat=true | | nocat = true | ||
| type = protection | | type = protection | ||
| text = type=<u>protection</u> — Protection notices, such as {{tl|Pp-cascading}} and {{tl|protectedinterface}}. | | text = type=<u>protection</u> — Protection notices, such as {{tl|Pp-cascading}} and {{tl|protectedinterface}}. | ||
| Line 47: | Line 48: | ||
If no <code>type</code> parameter is given the template defaults to {{para|type|notice}}. | If no <code>type</code> parameter is given the template defaults to {{para|type|notice}}. | ||
=== See also | === <code>small=left</code> === | ||
{{Ambox{{\sandbox}} | |||
| nocat = true | |||
| type = speedy | |||
| text = type=<u>speedy</u> — Speedy deletion issues, such as {{tl|speedy}}. | |||
| small = left | |||
}} | |||
{{Ambox{{\sandbox}} | |||
| nocat = true | |||
| type = delete | |||
| text = type=<u>delete</u> — Deletion issues, such as {{tl|delete}}. | |||
| small = left | |||
}} | |||
{{Ambox{{\sandbox}} | |||
| nocat = true | |||
| type = content | |||
| text = type=<u>content</u> — Content issues, such as {{tl|Update}} and {{tl|Expand}}. | |||
| small = left | |||
}} | |||
{{Ambox{{\sandbox}} | |||
| nocat = true | |||
| type = style | |||
| text = type=<u>style</u> — Style issues, such as {{tl|cleanup}} and {{tl|Documentation needed}}. | |||
| small = left | |||
}} | |||
{{ambox{{\sandbox}} | |||
| nocat = true | |||
| type = notice | |||
| text = type=<u>notice</u> — Notices, such as {{tl|Extension exception}} and {{tl|Translating}}. | |||
| small = left | |||
}} | |||
{{Ambox{{\sandbox}} | |||
| nocat = true | |||
| type = move | |||
| text = type=<u>move</u> — Merge, split and transwiki proposals, such as {{tl|Merge}} and {{tl|Move to Commons}}. | |||
| small = left | |||
}} | |||
{{Ambox{{\sandbox}} | |||
| nocat = true | |||
| type = protection | |||
| text = type=<u>protection</u> — Protection notices, such as {{tl|Pp-cascading}} and {{tl|protectedinterface}}. | |||
| small = left | |||
}} | |||
== See also == | |||
{{Mbox templates}} | {{Mbox templates}} | ||
Other pages: | Other pages: | ||
| Line 54: | Line 99: | ||
* [[w:Wikipedia:Article message boxes]] — The style guideline for creating article message boxes. | * [[w:Wikipedia:Article message boxes]] — The style guideline for creating article message boxes. | ||
* [[w:Wikipedia talk:Article message boxes]] — For discussion about these matters. | * [[w:Wikipedia talk:Article message boxes]] — For discussion about these matters. | ||
== TemplateData == | |||
{{TemplateData header}} | |||
<templatedata> | <templatedata> | ||
{ | { | ||
Revision as of 13:41, 15 July 2021
| File:Lua-Logo.svg | This template uses Lua: |
Lua error: callParserFunction: function "#translation" was not found.
| 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:}}]]
| 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
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Ambox in articles based on its TemplateData.
TemplateData for Ambox
This is a generic article message box.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| type | type | no description
| Line | optional |
| text | text | no description | String | suggested |