Template:Ambox/doc: Difference between revisions
From BoyWiki
No edit summary |
|||
Line 9: | Line 9: | ||
This is the {{Tl|Ambox}} or '''Article message box''' meta-template. | This is the {{Tl|Ambox}} or '''Article message box''' meta-template. | ||
==Basic usage== | |||
The box below shows the most common parameters that are accepted by {{Tl|Ambox}}. The purpose of each is described below. | |||
<pre style="overflow:auto;"> | |||
{{Ambox | |||
| name = | |||
| subst = <includeonly>{{subst:substcheck}}</includeonly> | |||
| small = {{{small|}}} | |||
| type = | |||
| image = | |||
| sect = {{{1|}}} | |||
| issue = | |||
| talk = {{{talk|}}} | |||
| fix = | |||
| date = {{{date|}}} | |||
| cat = | |||
| all = | |||
}} | |||
</pre> | |||
== Parameters == | == Parameters == | ||
=== <code>type</code> === | === <code>type</code> === |
Revision as of 18:39, 16 June 2022
Warning | This template is used on approximately 1,430,000 pages, or roughly 24848% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
File:Lua-Logo.svg | This template uses Lua: |
This is the {{Ambox}} or Article message box meta-template.
Basic usage
The box below shows the most common parameters that are accepted by {{Ambox}}. The purpose of each is described below.
{{Ambox | name = | subst = <includeonly>{{subst:substcheck}}</includeonly> | small = {{{small|}}} | type = | image = | sect = {{{1|}}} | issue = | talk = {{{talk|}}} | fix = | date = {{{date|}}} | cat = | all = }}
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
File:OOjs UI icon clock-destructive.svg.png | type=speedy — Speedy deletion issues, such as
{{speedy}}. |
File:OOjs UI icon alert-destructive.svg.png | 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}}. |
File:Merge-split-transwiki default.svg.png | type=move — Merge, split and transwiki proposals, such as
{{Merge}} and {{Move to Commons}}. |
File:Semi-protection-shackle-keyhole.svg.png | type=protection — Protection notices, such as
{{Pp-cascading}} and {{protectedinterface}}. |
|}