Template:Mbox/core
From 360Works Product Documentation Wiki
(Difference between revisions)
(Created page with "<table class="metadata plainlinks mbox {{#switch:{{{small|}}} | left = mbox-small-left }} {{#switch:{{{type|}}} | speedy = | critical = mbox-critical | delete | importa...") |
|||
Line 2: | Line 2: | ||
| left = mbox-small-left | | left = mbox-small-left | ||
}} {{#switch:{{{type|}}} | }} {{#switch:{{{type|}}} | ||
− | | speedy | + | | speedy = |
− | | critical | + | | critical = mbox-critical |
| delete | | delete | ||
− | | important | + | | important = mbox-important |
− | | warning | + | | warning |
− | | | + | | warning = mbox-warning |
− | | caution | + | | caution |
− | | | + | | caution = mbox-caution |
− | | notice | + | | notice = mbox-notice |
− | | move | + | | move = mbox-move |
| protection = mbox-protection | | protection = mbox-protection | ||
| notice | | notice | ||
− | | license | + | | license = mbox-license |
− | | #default | + | | #default = <!-- no type colours --> |
}}" style="{{{style|}}}"> | }}" style="{{{style|}}}"> | ||
<tr> | <tr> | ||
{{#switch:{{{image|}}} | {{#switch:{{{image|}}} | ||
− | | none = <td class="mbox-empty-cell"></td> | + | | none = <td class="mbox-empty-cell"></td> <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --> |
− | | #default = | + | | #default = |
− | + | <td class="mbox-image">{{ | |
− | + | #switch:{{{small|}}} | |
− | + | | left = <!-- Don't use the DIV --> | |
− | + | | #default = <div style="width: {{{imagewidth||52px}}};"> | |
− | + | }} | |
− | + | {{#if: {{{image|}}} | |
− | + | | {{{image}}} | |
− | + | | [[File:{{#if: {{{filename|}}} | {{{filename}}} | {{#switch:{{{type|}}} | |
− | + | | critical = Ambox warning pn.png | |
− | + | | important = Ambox warning pn.png | |
− | + | | warning = Ambox important.png | |
− | + | | caution = Edit-clear.png | |
− | + | | 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> | |
}} | }} | ||
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> | <td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> | ||
{{#if:{{{imageright|}}} | {{#if:{{{imageright|}}} | ||
| {{#ifeq:{{{imageright|}}}|none | | {{#ifeq:{{{imageright|}}}|none | ||
− | + | | <!-- No image. --> | |
− | + | | <td class="mbox-imageright">{{#switch:{{{small|}}} | |
− | + | | left = {{{imageright}}} | |
− | + | | #default = <div style="width: {{{imagerightwidth|52px}}};"> {{{imageright}}} </div> | |
− | + | }}</td> | |
− | + | }} | |
}} | }} | ||
</tr> | </tr> | ||
</table><noinclude> | </table><noinclude> | ||
− | + | ||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
+ | |||
</noinclude> | </noinclude> |
Latest revision as of 18:48, 3 June 2013
{{{text}}} |