Template:Bmbox/core: Difference between revisions

From BetaArchive Wiki
en.wikibooks>Debresser
m (removed incorrect protection template)
No edit summary
 
(18 intermediate revisions by 9 users not shown)
Line 10: Line 10:
| notice    <!-- notice = default -->
| notice    <!-- notice = default -->
| #default  = ambox-notice
| #default  = ambox-notice
}}" style="{{#switch:{{{small|}}}
}}" style="{{{style|}}}">
| left = margin: 4px 1em 4px 0; width: 238px; border-collapse: collapse; font-size: 88%; line-height: 1.25em;
}} {{{style|}}}">
<tr>
<tr>
{{#ifeq:{{{image|}}}|none
{{#switch:{{{image|}}}
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td class="mbox-empty-cell" style="border: none; padding: 0px; width: 1px;"></td>
| blank    <!-- Fall back to "none", since deprecated. -->
| <td class="mbox-image">{{#switch:{{{small|}}}
| none = <td class="mbox-empty-cell"></td>  <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->
| #default =  
  <td class="mbox-image">{{
  #switch:{{{small|}}}
   | left = <!-- Don't use the DIV -->  
   | left = <!-- Don't use the DIV -->  
   | #default = <div style="width: 52px;">  
   | #default = <div style="width: 52px;">  
Line 22: 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 51: Line 52:
}}
}}
</tr>
</tr>
</table><!-- Detect and report usage with faulty "type" parameter:
</table><!--  
Detect and report usage with faulty "type" parameter:
-->{{#switch:{{{type|}}}
-->{{#switch:{{{type|}}}
|  <!-- No type fed, is also valid input -->
|  <!-- No type fed, is also valid input -->
Line 61: 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>
}}<noinclude>
}}<noinclude>
 
{{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