Template:Ambox/doc: Difference between revisions

From Greyhawk Wiki
Jump to navigation Jump to search
TemplateData
Use {{\sandbox}} and {{Sandbox other}}; top: Update {{Uses TemplateStyles}}
Line 2: Line 2:
{{Languages|Template:Ambox}}
{{Languages|Template:Ambox}}
</includeonly>{{lua|Module:Message box}}
</includeonly>{{lua|Module:Message box}}
{{Uses TemplateStyles|Template:Ambox/styles.css}}
{{Uses TemplateStyles|Module:Message box/ambox.css}}
{{Documentation subpage}}
{{Documentation subpage}}
{{high-use|8000}}
{{high-use|8000}}
Line 9: Line 9:
=== <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
{{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
Line 77: Line 77:
}
}
</templatedata>
</templatedata>
<includeonly>
<includeonly>{{Sandbox other||
[[Category:Mbox templates{{#translation:}}]]
[[Category:Mbox templates{{#translation:}}]]
</includeonly>
}}</includeonly>

Revision as of 13:03, 15 July 2021

Lua error: callParserFunction: function "#translation" was not found.

[[Category:Template documentation pages{{#translation:}}]]

This is the {{Ambox}} or Article message box meta-template. This template also depends on MediaWiki:Gadget-enwp-boxes.css.

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.

See also

Other pages:

This is a generic article message box.

Template parameters

ParameterDescriptionTypeStatus
typetype

no description

Suggested values
speedy delete content style notice move protection
Lineoptional
texttext

no description

Stringsuggested