Template:Ombox/core: Difference between revisions

From Linguifex
Jump to navigation Jump to search
m re-adding book (accid. deleted by massive import)
No edit summary
 
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|}}}
| speedy    = ombox-speedy
| speedy    = ombox-speedy
Line 5: Line 5:
| content    = ombox-content
| content    = ombox-content
| style      = ombox-style
| style      = ombox-style
| book      = ombox-book
| move      = ombox-move
| move      = ombox-move
| protection = ombox-protection
| protection = ombox-protection
| notice         <!-- notice = default -->
| notice
| #default  = ombox-notice
| #default  = ombox-notice
}} {{{class|}}}" style="{{{style|}}}" role="presentation">
}} {{{class|}}}" style="{{{style|}}}">
<tr>
<tr>
{{#ifeq:{{{image|}}}|none
{{#ifeq:{{{image|}}}|none
Line 17: Line 16:
   {{#if:{{{image|}}}
   {{#if:{{{image|}}}
   | {{{image}}}
   | {{{image}}}
   | [[Image:{{#switch:{{{type|}}}
   | [[File:{{#switch:{{{type|}}}
     | speedy    = Imbox speedy deletion.png
     | speedy    = Codex icon clock color-error.svg
     | delete    = Imbox deletion.png
     | delete    = Codex icon trash color-error.svg
     | content    = Imbox content.png
     | content    = Codex icon alert color-warning.svg
    | book      = Book icon.png
     | style      = OOjs UI icon broom.svg
     | style      = Edit-clear.svg
     | move      = Codex icon move color-warning.svg
     | move      = Imbox move.png
     | protection = Codex icon lock color-progressive.svg
     | protection = Imbox protection.png
     | notice
     | notice         <!-- notice = default -->
     | #default  = Codex icon notice color-progressive.svg
     | #default  = Imbox notice.png
     }} | {{#ifeq:{{{small|}}}|yes
     }} | {{#ifeq:{{{small|}}}|yes
     | 30x30px
     | 30x30px
     | 40x40px
     | 40x40px
     }}|link=|alt=]]
     }}|alt=|link=]]
   }}</td>
   }}</td>
}}
}}
Line 47: Line 45:
| delete
| delete
| content
| content
| book
| style
| style
| move
| move
| protection
| protection
| notice    =   <!-- Do nothing, valid "type" -->
| 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 -->
| #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|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
}}<noinclude>
}}
 
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>

Latest revision as of 17:26, 20 April 2026