Modèle:Mbox
De DigiWiki.
(Différences entre les versions)
Ligne 1 : | Ligne 1 : | ||
- | <table | + | <table class="metadata plainlinks mbox {{#switch:{{{small|}}} |
- | {{#switch:{{{type|}}} | + | | left = mbox-small-left |
- | | warning = mbox-warning | + | }} {{#switch:{{{type|}}} |
- | | | + | | speedy = |
- | | | + | | critical = mbox-critical |
- | | #default = | + | | 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> | <tr> | ||
- | {{# | + | {{#switch:{{{image|}}} |
- | | <td class="mbox-empty-cell"><!-- No image. -- | + | | none = <td class="mbox-empty-cell"></td> <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --> |
- | | <td class="mbox-image"> | + | | #default = |
+ | <td class="mbox-image">{{ | ||
+ | #switch:{{{small|}}} | ||
+ | | left = <!-- Don't use the DIV --> | ||
+ | | #default = <div style="width: {{{imagewidth||52px}}};"> | ||
+ | }} | ||
{{#if:{{{image|}}} | {{#if:{{{image|}}} | ||
| {{{image}}} | | {{{image}}} | ||
| [[File:{{#switch:{{{type|}}} | | [[File:{{#switch:{{{type|}}} | ||
- | | warning = | + | | critical = Ambox speedy deletion.png |
- | | | + | | important = Ambox deletion.png |
- | | | + | | warning = Ambox content.png |
- | | #default = | + | | caution = Edit-clear.svg |
- | }}|40x40px|link=|alt=]] | + | | 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> | ||
}} | }} | ||
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> | <td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> | ||
{{#if:{{{imageright|}}} | {{#if:{{{imageright|}}} | ||
- | | <td class="mbox-imageright"> {{{imageright}}} </td> | + | | {{#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> | + | </table> |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + |
Version du 21 janvier 2012 à 11:41
![]() |
{{{text}}} |