User:Jon/template-ambox-hack: Difference between revisions
< User:Jon
Copyright notice: copied from Template:Ambox as of 18 Dec |
get rid cate |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<table class="metadata plainlinks ambox {{#switch:{{{type|}}} | {{tmbox|type=notice}} | ||
<table class="metadata plainlinks ambox {{#switch:{{{type|}}} <!-- switch table class --> | |||
| speedy = ambox-speedy | | speedy = ambox-speedy | ||
| delete = ambox-delete | | delete = ambox-delete | ||
Line 6: | Line 7: | ||
| move = ambox-move | | move = ambox-move | ||
| protection = ambox-protection | | protection = ambox-protection | ||
| | | talkpage <!-- notice = default --> | ||
| #default = ambox-notice | | #default = ambox-notice | ||
}}" style="{{{style|}}}"> | }}" style="{{{style|}}}"> | ||
Line 24: | Line 25: | ||
| move = Ambox move.png | | move = Ambox move.png | ||
| protection = Ambox protection.png | | protection = Ambox protection.png | ||
| | | talkpage <!-- notice = default --> | ||
| #default = | | #default = talkpage.svg | ||
}} | 40x40px |link=|alt=]] | }} | 40x40px |link=|alt=]] | ||
}}</div> | }}</div> | ||
Line 35: | Line 36: | ||
| <!-- No image. --> | | <!-- No image. --> | ||
| <td class="mbox-imageright"><div style="width: 52px;"> {{{imageright}}} </div></td> | | <td class="mbox-imageright"><div style="width: 52px;"> {{{imageright}}} </div></td> | ||
}} | }} | ||
}} | }} | ||
</tr> | </tr> | ||
Line 105: | Line 106: | ||
}} | }} | ||
</noinclude> | </noinclude> |
Latest revision as of 13:11, 18 December 2018
{{{text}}} |
{{{text}}} |
Usage
Simple usage example:
{{ambox | text = Some text.}}
Some text. |
Complex example:
{{ambox | type = style | image = [[File:Emblem-question-yellow.svg|40px|alt=Question mark]] | textstyle = color: red; font-weight: bold; font-style: italic; | text = Text for a big box, for the top of articles. }}
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. |
type=delete – Deletion issues. |
type=content – Content issues. |
type=style – Style issues. |
type=notice – Article notices. |
type=move – Merge, split and transwiki proposals. |
type=protection – Protection notices. |