Template:Bmbox: Difference between revisions

From BetaArchive Wiki
en.wikibooks>Davidgothberg
(Planned new version from /sandbox. Many new additions and fixes. See discussions at Wikipedia talk:Article message boxes.)
m (Protected "Template:Bmbox": High traffic page ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
(26 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   <!-- Can be used from 19 May 2008 -->
   {{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-merge  <!--ambox-move can be used 20 May 2008-->
                }}
  | protection = ambox-protection
   | imageright = {{#if:{{{smallimageright|}}}
  | notice    = ambox-notice
                | {{{smallimageright}}}
  | #default  = ambox-notice
                | {{{imageright|}}}
}}" style="{{{style|}}}">
                }}
<tr>
  | style      = {{{style|}}}
<td class="ambox-image">
  | textstyle  = {{{textstyle|}}}
{{#ifeq:{{{image|}}}|none
  | text      = {{#if:{{{smalltext|}}}
  | <!-- No image cell; empty cell necessary for text cell to have 100% width -->
                | {{{smalltext}}}
   | <div style="width:52px;"> {{#switch:{{{image|{{{type|}}}}}}
                | {{{text}}}
    | speedy    = [[Image:Ambox speedy deletion.png|40x40px]]
                }}
    | delete
  }}
    | serious    = [[Image:Ambox deletion.png|40x40px]]
| #default =
    | content    = [[Image:Ambox content.png|40x40px]]
   {{Bmbox/core
    | style      = [[Image:Ambox style.png|40x40px]]
  | type      = {{{type|}}}
    | move
   | image      = {{{image|}}}
    | merge      = [[Image:Ambox move.png|40x40px]]
  | imageright = {{{imageright|}}}
    | protection = [[Image:Ambox protection.png|40x40px]]
  | style      = {{{style|}}}
    | notice    = [[Image:Ambox notice.png|40x40px]]
  | textstyle  = {{{textstyle|}}}
    | blank      = &nbsp;
   | text      = {{{text}}}
    | #default  = {{{image|[[Image:Ambox notice.png|40x40px]]}}}
  }}
   }}</div>
}}<!--{{Ambox}} end--><noinclude>
}}</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 13:38, 8 May 2019

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

Template:Bmbox/doc