Template:Bmbox: Difference between revisions

From BetaArchive Wiki
en.wikibooks>Davidgothberg
(Updating to use "mbox-*" class names instead of "ambox-*". See Template talk:Mbox#Simpler to use class names.)
m (Protected "Template:Bmbox": High traffic page ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
(17 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<table class="metadata plainlinks ambox
<!--{{Ambox}} begin-->{{#switch:{{{small|}}}
{{#switch:{{{type|}}}
| left =  
| speedy    = ambox-speedy
  {{Bmbox/core
| serious    <!-- This value is **deprecated**, please don't use it! -->
  | small     = left
| delete    = ambox-delete
  | type       = {{{type|}}}
| content    = ambox-content
  | image      = {{#if:{{{smallimage|}}}
| style     = ambox-style
                | {{{smallimage}}}
| merge      <!-- This value is **deprecated**, please don't use it! -->
                | {{{image|}}}
| move       = 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: 0px; width: 1px;"></td>
  | text       = {{#if:{{{smalltext|}}}
| <td class="mbox-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|}}}
      | serious    <!-- This value is **deprecated**, please don't use it! -->
  | image      = {{{image|}}}
      | delete    = [[Image:Ambox deletion.png|40x40px]]
  | imageright = {{{imageright|}}}
      | content    = [[Image:Ambox content.png|40x40px]]
  | style     = {{{style|}}}
      | style      = [[Image:Ambox style.png|40x40px]]
  | textstyle  = {{{textstyle|}}}
      | merge      <!-- This value is **deprecated**, please don't use it! -->
   | text      = {{{text}}}
      | move      = [[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="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
| <td class="mbox-imageright"><div style="width: 52px;"> {{{imageright}}} </div></td>
}}
</tr>
</table><!-- Detect and report usage with faulty "type" parameter:
-->{{#switch:{{{type|}}}
|   <!-- No type fed, is also valid input -->
| speedy
| delete
| content
| style
| move
| protection
| notice    =   <!-- Do nothing, valid "type" -->
| #default   = [[Category:Ambox templates using deprecated types|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
}}<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