18,577
edits
mNo edit summary |
m (Text replacement - "<br>" to "<br/>") |
||
(32 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
< | <onlyinclude> | ||
{| class="ambox {{#ifeq: {{{1|}}}|section|ambox-small}} ambox-{{#switch: {{{type|}}} | |||
| content = content | style = style | |||
| delete = delete | move = move | |||
| protection = protection | notice | #default = notice | |||
}}" | |||
| class="ambox-image" | {{#if:{{{image|}}} | |||
} | | {{{image}}} | ||
| [[File:Ambox-{{#switch: {{{type|}}} | |||
| content = content | style = style | |||
| delete = delete | move = move | |||
| protection = protection | notice | #default = notice | |||
}}.png|40x40px|link=|alt=]] | |||
}} | |||
| class="ambox-text" | {{{text}}} | |||
} | |}</onlyinclude> | ||
</ | |||
==Purpose== | |||
'''Ambox''' is a meta-template used to create different types of amboxes. Amboxes are used to describe issues or information about articles. They can be placed at the top of an article to describe the entire article, or smaller versions can be used within sections. According to the [[Help:Format|formatting guide]], amboxes are the second things to appear in an article or section, just below {{Temlink|Hatnote|Hatnotes}}. | |||
==Usage== | |||
{{Usage/Block|type|image|text}} | |||
{{Usage/Param|type|Which category the ambox falls under. The available types are listed below.}} | |||
{{Usage/Param|image|An image to override the default image for that type.|optional|depends on type}} | |||
{{Usage/Param|text|The contents of the message.}} | |||
For use in a section rather than at the top of an article, pass "section" as an anonymous parameter. This will remove the image and make the ambox narrower, like so: {{Ambox|section|type=notice|text=This is a small ambox. It is used within sections, rather than at the top of an article.}} | |||
{{Clear}} | |||
===Ambox Types=== | |||
====Maintenance==== | |||
{{Ambox|type=delete|text=type=<u>delete</u>, used for articles being considered for deletion.}} | |||
{{Ambox|type=content|text=type=<u>content</u>, used for articles or sections with content problems.}} | |||
{{Ambox|type=style|text=type=<u>style</u>, used for articles or sections with style problems.}} | |||
{{Ambox|type=move|text=type=<u>move</u>, used for articles being considered for moves, merges, etc.}} | |||
====Information==== | |||
{{Ambox|type=notice|text=type=<u>notice</u>, used to display information about the article or section.}} | |||
{{Ambox|type=protection|text=type=<u>protection</u>, used to display protection information.}} | |||
===Common Amboxes=== | |||
These are some commonly used amboxes which use this meta-template. For a full up-to-date list of available amboxes, see {{Catlink|Ambox Templates}}. | |||
| | |||
}} | |||
{ | {| class="wikitable" | ||
| | ! colspan=4 | Maintenance || colspan=2 | Information | ||
| | |- | ||
| | ! style="background-color: red;" | delete | ||
! style="background-color: orange;" | content | |||
== | ! style="background-color: yellow;" | style | ||
! style="background-color: green;" | move | |||
! style="background-color: #5a7db5;" | notice | |||
! style="background-color: gray;" | protection | |||
|- | |||
| {{Temlink|Delete}} | |||
| {{Temlink|Stub}} | |||
{{Temlink|Focus}} | |||
| {{Temlink|Perspective}} | |||
| {{Temlink|Merge}} | |||
| {{Temlink|Spoiler}} | |||
{{Temlink|IncInterview}}<br/> | |||
{{Temlink|Policy}} | |||
| {{Temlink|Editing}} | |||
|} | |||
{{Cat|Formatting Templates}} | {{Cat|Formatting Templates}} | ||
{{Cat|Ambox Templates}} | {{Cat|Ambox Templates}} | ||