Template:Ombox/core: Difference between revisions
Jump to navigation
Jump to search
Created page with "<table class="plainlinks ombox {{#ifeq:{{{small}}}|yes|mbox-small}} {{#switch:{{{type|}}} | speedy = ombox-speedy | delete = ombox-delete | content = ombox-co..." |
No edit summary |
||
Line 1: | Line 1: | ||
<table class="plainlinks ombox {{#ifeq:{{{small}}}|yes|mbox-small}} | |||
{{#switch:{{{type|}}} | {{#switch:{{{type|}}} | ||
| speedy = ombox-speedy | | speedy = ombox-speedy | ||
Line 7: | Line 7: | ||
| move = ombox-move | | move = ombox-move | ||
| protection = ombox-protection | | protection = ombox-protection | ||
| notice | | notice <!-- notice = default --> | ||
| #default = ombox-notice | | #default = ombox-notice | ||
}} | }}" style="{{{style|}}}"> | ||
<tr> | |||
{{#ifeq:{{{image|}}}|none | {{#ifeq:{{{image|}}}|none | ||
| | | <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td class="mbox-empty-cell"></td> | ||
| | | <td class="mbox-image"> | ||
{{#if:{{{image|}}} | {{#if:{{{image|}}} | ||
| {{{image}}} | | {{{image}}} | ||
Line 23: | Line 23: | ||
| move = Imbox move.png | | move = Imbox move.png | ||
| protection = Imbox protection.png | | protection = Imbox protection.png | ||
| notice | | notice <!-- notice = default --> | ||
| #default = Imbox notice.png | | #default = Imbox notice.png | ||
}} | {{#ifeq:{{{small|}}}|yes | }} | {{#ifeq:{{{small|}}}|yes | ||
Line 29: | Line 29: | ||
| 40x40px | | 40x40px | ||
}}|link=|alt=]] | }}|link=|alt=]] | ||
}} | }}</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"> {{{imageright}}} </td> | ||
}} | }} | ||
}} | }} | ||
</tr> | |||
</table><!-- Detect and report usage with faulty "type" parameter: | |||
-- | -->{{#switch:{{{type|}}} | ||
| | | <!-- No type fed, is also valid input --> | ||
| speedy | | speedy | ||
| delete | | delete | ||
Line 48: | Line 48: | ||
| move | | move | ||
| protection | | protection | ||
| notice = | | notice = <!-- Do nothing, valid "type" --> | ||
| #default = | | #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 --> | ||
}} | }}<noinclude> | ||
{{pp-template}} | {{pp-template}} | ||
{{documentation}} | {{documentation}} | ||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | |||
</noinclude> |
Latest revision as of 16:06, 10 October 2010
File:Imbox notice.png | {{{text}}} |
[create] File:Template-info.svg Template documentation
Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |