Template:Ombox/core: Difference between revisions

From Know Islam
Jump to navigation Jump to search
No edit summary
No edit summary
 
(3 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 = default -->
| 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}}}
   | [[Image:{{#switch:{{{type|}}}
   | [[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 = default -->
     | 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}}}
|  <!-- No type fed, is also valid input -->
| 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:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
| 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