Line 1: |
Line 1: |
− | <table style="{{{style|}}}" class="metadata plainlinks ambox {{#switch:{{{type|}}} | + | <table class="metadata plainlinks ambox |
− | | serious = ambox-serious
| + | {{#switch:{{{type|}}} |
− | | content = ambox-content
| + | | speedy = ambox-speedy |
− | | style = ambox-style
| + | | delete = ambox-delete |
− | | merge = ambox-merge
| + | | content = ambox-content |
− | | notice = ambox-notice
| + | | style = ambox-style |
− | | #default = ambox-notice
| + | | move = ambox-move |
− | }}"> | + | | protection = ambox-protection |
| + | | notice <!-- notice = default --> |
| + | | #default = ambox-notice |
| + | }}" style="{{{style|}}}"> |
| <tr> | | <tr> |
− | <td class="ambox-image">
| + | {{#ifeq:{{{image|}}}|none |
− | {{#ifeq:{{{image}}}|none | + | | <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 0px; width: 1px;"></td> |
− | | <!-- no image cell; empty cell necessary for text cell to have 100% width -->
| + | | <td class="mbox-image"><div style="width: 52px;"> |
− | | <div style="width:52px;"> {{#switch:{{{image|{{{type|}}}}}}
| + | {{#ifeq:{{{image|}}}|blank |
− | | serious = [[Image:Stop hand nuvola.svg|40px]] | + | | |
− | | content = [[Image:Emblem-important.svg|40px]] | + | | {{#if:{{{image|}}} |
− | | style = [[Image:Broom icon.svg|40px]]
| + | | {{{image}}} |
− | | merge = [[Image:Merge-split-transwiki default.svg]]
| + | | {{#switch:{{{type|}}} |
− | | notice = [[Image:Info non-talk.png|40px]]
| + | | speedy = [[Image:Ambox speedy deletion.png|40x40px]] |
− | | blank = [[Image:No image.svg]]
| + | | delete = [[Image:Ambox deletion.png|40x40px]] |
− | | #default = {{{image|[[Image:Info non-talk.png|40px]]}}} | + | | content = [[Image:Ambox content.png|40x40px]] |
− | }}</div> | + | | style = [[Image:Ambox style.png|40x40px]] |
− | }}</td>
| + | | move = [[Image:Ambox move.png|40x40px]] |
− | <td class="ambox-text">{{{text}}}</td> | + | | protection = [[Image:Ambox protection.png|40x40px]] |
− | {{#if:{{{imageright|}}}| | + | | notice <!-- notice = default --> |
− | <td class="ambox-imageright"><div style="width:52px;"> {{{imageright}}} </div></td>
| + | | #default = [[Image:Ambox notice.png|40x40px]] |
| + | }} |
| + | }} |
| + | }}</div></td> |
| + | }} |
| + | <td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> |
| + | {{#if:{{{imageright|}}} |
| + | | <td class="mbox-imageright"><div style="width: 52px;"> {{{imageright}}} </div></td> |
| }} | | }} |
| </tr> | | </tr> |
− | </table><noinclude> | + | </table><!-- Detect and report usage with faulty "type" parameter: |
− | {{template doc}} | + | -->{{#switch:{{{type|}}} |
− | <!-- Add categories and inter-wikis to the /doc subpage, not here! --> | + | | <!-- No type fed, is also valid input --> |
| + | | speedy |
| + | | delete |
| + | | content |
| + | | style |
| + | | move |
| + | | protection |
| + | | notice = <!-- Do nothing, valid "type" --> |
| + | | #default = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:{{SITENAME}} message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --> |
| + | }}<noinclude> |
| + | |
| + | {{pp-template|small=yes}} |
| + | {{Documentation}} |
| + | <!-- Add categories and interwikis to the /doc subpage, not here! --> |
| </noinclude> | | </noinclude> |