Template:Ambox/doc: Difference between revisions
(Created page with "{{doc/start}} The template is a notice template ===Named parameters=== :; |icon=: image file name for use on the left, e.g. "Stub.png" :; |image=: left (image) cell content, overrides <code>|icon=</code> if provided. :; |type=: top line text :; |info=: list of extra info :; |border=: border colour (defaults to green) ::; red : ambox-red (serious issue) ::; yellow : ambox-yellow (mild issue) ::; green : ambox-green (good!) ::; purple : ambox-purple (technica...") |
No edit summary |
||
Line 1: | Line 1: | ||
{{doc/start}} | {{doc/start}} | ||
<includeonly>{{Languages|Template:Ambox}}</includeonly> | |||
{{Mbox templates}} | |||
This is the {{Tl|Ambox}} or '''Article message box''' meta-template. | |||
== | == Parameters == | ||
=== <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. | |||
{{Ambox{{\sandbox}} | |||
| nocat = true | |||
| type = speedy | |||
| text = type=<u>speedy</u> — Speedy deletion issues, such as {{tl|speedy}}. | |||
}} | |||
{{Ambox{{\sandbox}} | |||
| nocat = true | |||
| type = delete | |||
| text = type=<u>delete</u> — Deletion issues, such as {{tl|delete}}. | |||
}} | |||
{{Ambox{{\sandbox}} | |||
| nocat = true | |||
| type = content | |||
| text = type=<u>content</u> — Content issues, such as {{tl|Update}} and {{tl|Expand}}. | |||
}} | |||
{{Ambox{{\sandbox}} | |||
| nocat = true | |||
| type = style | |||
| text = type=<u>style</u> — Style issues, such as {{tl|cleanup}} and {{tl|Documentation needed}}. | |||
}} | |||
{{Ambox{{\sandbox}} | |||
| nocat = true | |||
| type = notice | |||
| text = type=<u>notice</u> — Notices, such as {{tl|Extension exception}} and {{tl|Translating}}. | |||
}} | |||
{{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}}. | |||
}} | |||
{{Ambox{{\sandbox}} | |||
| nocat = true | |||
| type = protection | |||
| text = type=<u>protection</u> — Protection notices, such as {{tl|Pp-cascading}} and {{tl|protectedinterface}}. | |||
}} | |||
If no <code>type</code> parameter is given the template defaults to {{para|type|notice}}. | |||
=== | === <code>small=left</code> === | ||
{{Ambox | {{Ambox{{\sandbox}} | ||
| type = | | nocat = true | ||
| | | type = speedy | ||
| text = type=<u>speedy</u> — Speedy deletion issues, such as {{tl|speedy}}. | |||
| small = left | |||
}} | }} | ||
{{Ambox{{\sandbox}} | |||
| nocat = true | |||
{{Ambox | | type = delete | ||
| type = | | text = type=<u>delete</u> — Deletion issues, such as {{tl|delete}}. | ||
| | | small = left | ||
| | |||
}} | }} | ||
{{Ambox{{\sandbox}} | |||
| nocat = true | |||
{{Ambox | | type = content | ||
| | | text = type=<u>content</u> — Content issues, such as {{tl|Update}} and {{tl|Expand}}. | ||
| | | small = left | ||
| type = | |||
| | |||
}} | }} | ||
{{Ambox{{\sandbox}} | |||
| nocat = true | |||
{{Ambox | | type = style | ||
| | | text = type=<u>style</u> — Style issues, such as {{tl|cleanup}} and {{tl|Documentation needed}}. | ||
| type = | | small = left | ||
| | |||
}} | }} | ||
{{Ambox{{\sandbox}} | |||
| nocat = true | |||
{{Ambox | | type = notice | ||
| | | text = type=<u>notice</u> — Notices, such as {{tl|Extension exception}} and {{tl|Translating}}. | ||
| type = | | small = left | ||
| | |||
}} | }} | ||
{{Ambox{{\sandbox}} | |||
| nocat = true | |||
{{Ambox | | type = move | ||
| | | text = type=<u>move</u> — Merge, split and transwiki proposals, such as {{tl|Merge}} and {{tl|Move to Commons}}. | ||
| type = | | small = left | ||
| | |||
}} | }} | ||
{{Ambox{{\sandbox}} | |||
| nocat = true | |||
{{Ambox | | type = protection | ||
| | | text = type=<u>protection</u> — Protection notices, such as {{tl|Pp-cascading}} and {{tl|protectedinterface}}. | ||
| type = | | small = left | ||
| | |||
}} | }} | ||
{{doc/end}} | {{doc/end}} |
Revision as of 05:02, 29 June 2022
This is the {{Ambox}}
or Article message box meta-template.
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.
type=speedy — Speedy deletion issues, such as {{speedy}} . |
type=delete — Deletion issues, such as {{delete}} . |
type=style — Style issues, such as {{cleanup}} and {{Documentation needed}} . |
type=notice — Notices, such as {{Extension exception}} and {{Translating}} . |
type=move — Merge, split and transwiki proposals, such as {{Merge}} and {{Move to Commons}} . |
type=protection — Protection notices, such as {{Pp-cascading}} and {{protectedinterface}} . |
If no type
parameter is given the template defaults to |type=notice
.
small=left
type=speedy — Speedy deletion issues, such as {{speedy}} . |
type=delete — Deletion issues, such as {{delete}} . |
type=style — Style issues, such as {{cleanup}} and {{Documentation needed}} . |
type=notice — Notices, such as {{Extension exception}} and {{Translating}} . |
type=move — Merge, split and transwiki proposals, such as {{Merge}} and {{Move to Commons}} . |
type=protection — Protection notices, such as {{Pp-cascading}} and {{protectedinterface}} . |
This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.