Template:Bmbox: Difference between revisions

From BetaArchive Wiki
en.wikibooks>Davidgothberg
(Planned fixes: Using new CSS class names (deployed for 30 days now). Fixing the empty "image=" parameter bug and the padding for the image=none case. And some other cleanup. (Tested in sandbox.))
m (Protected "Template:Bmbox": High traffic page ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
(25 intermediate revisions by 10 users not shown)
Line 1: Line 1:
<table class="metadata plainlinks ambox
<!--{{Ambox}} begin-->{{#switch:{{{small|}}}
{{#switch:{{{type|}}}
| left =  
| speedy    = ambox-speedy
  {{Bmbox/core
| delete        <!-- delete = serious -->
  | small     = left
| serious    = ambox-delete
  | type      = {{{type|}}}
| content    = ambox-content
  | image      = {{#if:{{{smallimage|}}}
| style     = ambox-style
                | {{{smallimage}}}
| move          <!-- move = merge -->
                | {{{image|}}}
| merge      = ambox-move
                }}
| protection = ambox-protection
   | imageright = {{#if:{{{smallimageright|}}}
| notice        <!-- notice = default -->
                | {{{smallimageright}}}
| #default  = ambox-notice
                | {{{imageright|}}}
}}" style="{{{style|}}}">
                }}
<tr>
  | style      = {{{style|}}}
{{#ifeq:{{{image|}}}|none
  | textstyle  = {{{textstyle|}}}
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 1px;"></td>
  | text       = {{#if:{{{smalltext|}}}
| <td class="ambox-image"><div style="width: 52px;">
                | {{{smalltext}}}
  {{#ifeq:{{{image|}}}|blank
                | {{{text}}}  
  | &nbsp;
                }}
   | {{#if:{{{image|}}}
   }}
    | {{{image}}}
| #default =
    | {{#switch:{{{type|}}}
  {{Bmbox/core
      | speedy    = [[Image:Ambox speedy deletion.png|40x40px]]
  | type      = {{{type|}}}
      | delete
  | image      = {{{image|}}}
      | serious    = [[Image:Ambox deletion.png|40x40px]]
  | imageright = {{{imageright|}}}
      | content    = [[Image:Ambox content.png|40x40px]]
  | style      = {{{style|}}}
      | style      = [[Image:Ambox style.png|40x40px]]
  | textstyle  = {{{textstyle|}}}
      | move
  | text      = {{{text}}}
      | merge      = [[Image:Ambox move.png|40x40px]]
  }}
       | protection = [[Image:Ambox protection.png|40x40px]]
}}<!--{{Ambox}} end--><noinclude>
      | notice          <!-- notice = default -->
      | #default  = [[Image:Ambox notice.png|40x40px]]
      }}
    }}
   }}</div></td>
}}
<td class="ambox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
| <td class="ambox-imageright"><div style="width: 52px;"> {{{imageright}}} </div></td>
}}
</tr>
</table><noinclude>
 
{{pp-template|small=yes}}
{{Documentation}}
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>
<noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 14:38, 8 May 2019

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

Template:Bmbox/doc