|
|
(One intermediate revision by the same user not shown) |
Line 1: |
Line 1: |
| <table class="{{#if:{{yesno|{{{plainlinks|yes}}}}}|plainlinks}}" style="margin: 4px 10%; border-collapse: collapse; background: #fbfbfb;
| | {{#invoke:Message box|imbox}}<noinclude> |
| {{#switch:{{{type|}}}
| | {{documentation}} |
| | speedy = border: 3px solid #b22222; background: #fee;
| | <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> |
| | delete = border: 3px solid #b22222;
| | </noinclude> |
| | content = border: 3px solid #f28500;
| |
| | style = border: 3px solid #f4c430;
| |
| | move = border: 3px solid #9932cc;
| |
| | protection = border: 3px solid #bba;
| |
| | license = border: 3px solid #88a; background: #f7f8ff;
| |
| | featured = border: 3px solid #cba135;
| |
| | notice <!-- notice = default -->
| |
| | #default = border: 3px solid #1e90ff;
| |
| }} {{{style|}}}" role="presentation">
| |
| <tr>
| |
| {{#ifeq:{{{image|}}}|none
| |
| | <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 1px;"></td>
| |
| | <td style="border: none; padding: 2px 0px 2px 0.9em; text-align: center;">
| |
| {{#if:{{{image|}}}
| |
| | {{{image}}}
| |
| | {{#switch:{{{type|}}}
| |
| | speedy = [[File:Imbox speedy deletion.png|40x40px|alt=|link=]]
| |
| | delete = [[File:Imbox deletion.png|40x40px|alt=|link=]]
| |
| | content = [[File:Imbox content.png|40x40px|alt=|link=]]
| |
| | style = [[File:Edit-clear.svg|40x40px|link=|alt=]]
| |
| | move = [[File:Imbox move.png|40x40px|alt=|link=]]
| |
| | protection = [[File:Imbox protection.png|40x40px|alt=|link=]]
| |
| | license = [[File:Imbox license.png|40x40px|alt=|link=]]
| |
| | featured = [[File:Imbox featured.png|40x40px]]
| |
| | notice <!-- notice = default -->
| |
| | #default = [[File:Imbox notice.png|40x40px|alt=|link=]]
| |
| }}
| |
| }}</td>
| |
| }}
| |
| <td style="border: none; padding: 0.25em 0.9em; width: 100%; {{{textstyle|}}}"> {{{text}}} </td>
| |
| {{#if:{{{imageright|}}}
| |
| | <td style="border: none; padding: 2px 0.9em 2px 0px; text-align: center;"> {{{imageright}}} </td>
| |
| }}
| |
| </tr>
| |
| {{#if:{{{below|}}}
| |
| | <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class="mbox-text" style="{{{textstyle|}}}"> {{{below}}} </td></tr>
| |
| }}
| |
| </table><!-- Detect and report usage with faulty "type" parameter:
| |
| -->{{#switch:{{{type|}}}
| |
| | <!-- No type fed, is also valid input -->
| |
| | speedy
| |
| | delete
| |
| | content
| |
| | style
| |
| | move
| |
| | protection
| |
| | license
| |
| | featured
| |
| | 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:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
| |
| }}<!--
| |
| | |
| --><includeonly>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq:{{NAMESPACE}}|Template|[[Category:File message boxes]]}}}}</includeonly><!--
| |
| | |
| -->
| |