Template:Bmbox/core: Difference between revisions

From BetaArchive Wiki
en.wikibooks>Happy-melon
(the ambox-small styles have decached)
No edit summary
 
(14 intermediate revisions by 7 users not shown)
Line 14: Line 14:
{{#switch:{{{image|}}}
{{#switch:{{{image|}}}
| blank    <!-- Fall back to "none", since deprecated. -->
| blank    <!-- Fall back to "none", since deprecated. -->
| none = <td class="mbox-empty-cell" style="border: none; padding: 0px; width: 1px;"></td>  <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->
| none = <td class="mbox-empty-cell"></td>  <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->
| #default =  
| #default =  
   <td class="mbox-image">{{
   <td class="mbox-image">{{
Line 23: Line 23:
   {{#if:{{{image|}}}
   {{#if:{{{image|}}}
   | {{{image}}}
   | {{{image}}}
   | [[Image:{{#switch:{{{type|}}}
   | [[File:{{#switch:{{{type|}}}
     | speedy    = Ambox speedy deletion.png
     | speedy    = Octagon delete.png
     | delete    = Ambox deletion.png
     | delete    = Octagon delete.png
     | content    = Ambox content.png
     | content    = Ambox important.png
     | style      = Ambox style.png
     | style      = Edit-clear.png
     | move      = Ambox move.png
     | move      = Merge-split-transwiki default.png
     | protection = Ambox protection.png
     | protection = Padlock-light-silver.png
     | notice          <!-- notice = default -->
     | notice          <!-- notice = default -->
     | #default  = Ambox notice.png
     | #default  = Information icon4.png
     }} | {{#switch:{{{small|}}}  
     }} | {{#switch:{{{small|}}}  
       | left = 20x20px  
       | left = 20x20px  
       | #default = 40x40px  
       | #default = 40x40px  
       }} ]]
       }} |link=|alt=]]
   }}{{#switch:{{{small|}}}
   }}{{#switch:{{{small|}}}
   | left = <!-- Don't use the /DIV -->
   | left = <!-- Don't use the /DIV -->
Line 63: Line 63:
| 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>
}}<!--
Detect and report usage of deprecated "image=blank":
-->{{#switch:{{{image|}}}
| blank = [[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
}}<noinclude>
}}<noinclude>
{{pp-template}}
{{documentation}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 09:16, 20 May 2019

Template documentation [view] [edit] [discuss] [history] [purge]

Template:Bmbox/core/doc