Difference between revisions of "Template:Ambox"
Jump to navigation
Jump to search
sc4e>Freedo50 (New page: <includeonly><table class="metadata plainlinks ambox {{#switch:{{{type|}}} | speedy = ambox-speedy | delete = ambox-delete | content = ambox-content | style = ambox-style ...) |
sc4e>Freedo50 |
||
Line 47: | Line 47: | ||
| notice = <!-- Do nothing, valid "type" --> | | notice = <!-- Do nothing, valid "type" --> | ||
| #default = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing. ([[:Category:Ambox templates using deprecated types|learn more]])</div>[[Category:Ambox templates using deprecated types|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --> | | #default = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing. ([[:Category:Ambox templates using deprecated types|learn more]])</div>[[Category:Ambox templates using deprecated types|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --> | ||
− | }}</includeonly><noinclude>{{pp-template | + | }}</includeonly><noinclude>{{pp-template}} |
− | This | + | This template is a message box for article pages, it will be automatically transcluded by the {{[[Template:Mbox|Mbox]]}} tag. |
=== Usage === | === Usage === |
Revision as of 06:40, 27 December 2008
This high-risk template has been protected from editing to prevent vandalism. See the protection policy and protection log for more details. Please discuss any changes on the talk page; you may ask an editor or a moderator to make the edit if it is supported by consensus. You may also request that this page be unprotected. |
This template is a message box for article pages, it will be automatically transcluded by the {{Mbox}} tag.
Usage
Simple usage example:
{{ambox | text = Some text.}}
Some text. |
Complex example:
{{ambox | type = style | image = [[Image:Wiki_question.png|40px]] | style = width: 400px; | textstyle = color: red; font-weight: bold; font-style: italic; | text = The message body text. }}
The message body text. |
Article message box types
The following examples use different type parameters but use no image parameters thus they use the default images for each type.
type=speedy – Speedy deletion issues, such as {{db-g1}} and {{db-g3}}. |
type=delete – Deletion issues, such as {{afd}} and {{prod}}. |
type=content – Content issues, such as {{POV}} and {{globalize}}. |
type=style – Style issues, such as {{cleanup}} and {{wikify}}. |
type=notice – Article notices, such as {{current}} and {{inuse}}. |
type=move – Merge, split and transwiki proposals, such as {{split}} and {{copy to wiktionary}}. |
type=protection – Protection notices, such as {{pp-vandalism}} and {{pp-semi-protected}}. |