Template:Ambox/doc: Difference between revisions
add dep |
Abra Saghast (talk | contribs) removing {{high use}} |
||
| (15 intermediate revisions by 6 users not shown) | |||
| Line 1: | Line 1: | ||
{{ | <includeonly>{{Languages|Template:Ambox}}</includeonly> | ||
{{ | {{Mbox templates}} | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
{{ | {{Lua|Module:Message box{{\sandbox}}}} | ||
This is the {{Tl|Ambox}} or '''Article message box''' meta-template. | |||
This is the {{Tl|Ambox}} or '''Article message box''' meta-template. | |||
MobileFrontend will treat this template as a page issue. If you don't want that MobileFrontend does so, you may use a different message box template. See also [[Reading/Web/Projects/Mobile Page Issues|this page]]. | |||
== 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 | {{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 | {{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 | {{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 | {{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}} | ||
|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 | {{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 | {{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 45: | Line 49: | ||
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 52: | Line 100: | ||
* [[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. | ||
<includeonly> | |||
== TemplateData == | |||
<!--{{TemplateData header}}--> | |||
{{Mbox/TemplateData}} | |||
<!--templatedata> | |||
{ | |||
"params": { | |||
"type": { | |||
"type": "line", | |||
"suggestedvalues": [ | |||
"speedy", | |||
"delete", | |||
"content", | |||
"style", | |||
"notice", | |||
"move", | |||
"protection" | |||
] | |||
}, | |||
"text": { | |||
"type": "string", | |||
"suggested": true | |||
} | |||
}, | |||
"description": "This is a generic article message box." | |||
} | |||
</templatedata--> | |||
<includeonly>{{Sandbox other|| | |||
<!-- Categories below this line; interwikis at Wikidata --> | |||
[[Category:Mbox templates{{#translation:}}]] | [[Category:Mbox templates{{#translation:}}]] | ||
</includeonly> | }}</includeonly> | ||
Latest revision as of 09:50, 13 January 2025
| 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: |
This is the {{Ambox}} or Article message box meta-template.
MobileFrontend will treat this template as a page issue. If you don't want that MobileFrontend does so, you may use a different message box template. See also this page.
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 |