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-content | style = ombox-style | move = ombox-move | protection = ombox-protection | notice <!-- notice = default --> | #default = ombox-notice }} {{{class|}}}" style="{{{style|}}}"> <tr> {{#ifeq:{{{image|}}}|none | <!-- No image. Cell with some width or padding necessary for text cell...") |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<table class="plainlinks ombox {{#ifeq:{{{small}}}|yes|mbox-small}} | <table class="plainlinks ombox {{#ifeq:{{{small|}}}|yes|mbox-small}} | ||
{{#switch:{{{type|}}} | {{#switch:{{{type|notice}}} | ||
| speedy = ombox-speedy | | speedy = ombox-speedy | ||
| delete = ombox-delete | | delete = ombox-delete | ||
Line 7: | Line 7: | ||
| move = ombox-move | | move = ombox-move | ||
| protection = ombox-protection | | protection = ombox-protection | ||
| notice | | notice = ombox-notice | ||
| warning = ombox-warning | |||
| error = ombox-error | |||
| success = ombox-success | |||
| #default = ombox-notice | | #default = ombox-notice | ||
}} {{{class|}}}" style="{{{style|}}}"> | }} {{{class|}}}" style="{{{style|}}}"> | ||
Line 16: | Line 19: | ||
{{#if:{{{image|}}} | {{#if:{{{image|}}} | ||
| {{{image}}} | | {{{image}}} | ||
| [[ | | [[File:{{#switch:{{{type|notice}}} | ||
| speedy = Imbox speedy deletion.png | | speedy = Imbox speedy deletion.png | ||
| delete = Imbox deletion.png | | delete = Imbox deletion.png | ||
Line 23: | Line 26: | ||
| move = Imbox move.png | | move = Imbox move.png | ||
| protection = Imbox protection.png | | protection = Imbox protection.png | ||
| notice | | notice = Imbox notice.png | ||
| warning = Imbox warning.png | |||
| error = Imbox error.png | |||
| success = Imbox success.png | |||
| #default = Imbox notice.png | | #default = Imbox notice.png | ||
}} | {{#ifeq:{{{small|}}}|yes | }} | {{#ifeq:{{{small|}}}|yes | ||
Line 31: | Line 37: | ||
}}</td> | }}</td> | ||
}} | }} | ||
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> | <td class="mbox-text" style="{{{textstyle|}}}"> {{{text|This is a default message. To use this template, provide the parameters such as type, image, imageright, class, style, textstyle, and text.}}} </td> | ||
{{#if:{{{imageright|}}} | {{#if:{{{imageright|}}} | ||
| {{#ifeq:{{{imageright|}}}|none | | {{#ifeq:{{{imageright|}}}|none | ||
Line 40: | Line 46: | ||
</tr> | </tr> | ||
</table><!-- Detect and report usage with faulty "type" parameter: | </table><!-- Detect and report usage with faulty "type" parameter: | ||
-->{{#switch:{{{type|}}} | -->{{#switch:{{{type|notice}}} | ||
| speedy | | speedy | ||
| delete | | delete | ||
Line 48: | Line 53: | ||
| move | | move | ||
| protection | | protection | ||
| notice = <!-- Do nothing, valid "type" --> | | notice | ||
| #default = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category: | | warning | ||
| error | |||
| success = <!-- 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:Message box parameter needs fixing|{{FULLPAGENAME}}]] | |||
}} | |||
Latest revision as of 14:59, 21 July 2024
![]() |
This is a default message. To use this template, provide the parameters such as type, image, imageright, class, style, textstyle, and text. |