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 ...) |
m (4 revisions imported) |
||
(211 intermediate revisions by 2 users not shown) | |||
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 === | ||
Line 85: | Line 85: | ||
The following examples use different '''type''' parameters but use no image parameters thus they use the default images for each type. | The following examples use different '''type''' parameters but use no image parameters thus they use the default images for each type. | ||
− | + | ||
− | |||
− | |||
− | |||
{{ambox | {{ambox | ||
| type = delete | | type = delete |
Latest revision as of 02:34, 10 August 2019
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=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}}. |