Template:Mbox and Template:Mbox/core: Difference between pages
Appearance
(Difference between pages)
imported>Evilissimo No edit summary |
imported>Evilissimo No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{ | <includeonly><table class="metadata plainlinks mbox {{#switch:{{{small|}}} | ||
| left = mbox-small-left | |||
}} {{#switch:{{{type|}}} | |||
| | | speedy = | ||
| | | critical = mbox-critical | ||
| | | delete | ||
| | | important = mbox-important | ||
| | | warning | ||
| content = mbox-warning | |||
| caution | |||
| style = mbox-caution | |||
| notice = mbox-notice | |||
| move = mbox-move | |||
| protection = mbox-protection | |||
| notice | |||
| license = mbox-license | |||
| #default = <!-- no type colours --> | |||
}}" style="{{{style|}}}"> | |||
<tr> | |||
{{#switch:{{{image|}}} | |||
| none = <td class="mbox-empty-cell"></td> <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --> | |||
| #default = | |||
<td class="mbox-image">{{ | |||
#switch:{{{small|}}} | |||
| left = <!-- Don't use the DIV --> | |||
| #default = <div style="width: {{{imagewidth||52px}}};"> | |||
}} | }} | ||
{{#if:{{{image|}}} | |||
| | | {{{image}}} | ||
| | | [[File:{{#switch:{{{type|}}} | ||
| | | critical = Ambox speedy deletion.png | ||
| | | important = Ambox deletion.png | ||
| | | warning = Ambox content.png | ||
| | | caution = Edit-clear.svg | ||
| | | move = Ambox move.png | ||
| | | protection = Ambox protection.png | ||
| | | license = Imbox license.png | ||
| | | notice <!-- notice = default --> | ||
| #default = Ambox notice.png | |||
| | }} | {{#switch:{{{small|}}} | ||
| left = 20x20px | |||
| #default = 40x40px | |||
}} |link=|alt=]] | |||
}}{{#switch:{{{small|}}} | |||
| left = <!-- Don't use the /DIV --> | |||
| #default = </div> | |||
}}</td> | |||
}} | }} | ||
</includeonly> | <td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> | ||
<noinclude> | {{#if:{{{imageright|}}} | ||
| {{#ifeq:{{{imageright|}}}|none | |||
| <!-- No image. --> | |||
| <td class="mbox-imageright">{{#switch:{{{small|}}} | |||
| left = {{{imageright}}} | |||
| #default = <div style="width: {{{imagerightwidth|52px}}};"> {{{imageright}}} </div> | |||
}}</td> | |||
}} | |||
}} | |||
</tr> | |||
</table></includeonly><noinclude> | |||
{{documentation}} | {{documentation}} | ||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> | ||