Template:Bmbox: Difference between revisions

From BetaArchive Wiki
en.wikibooks>Happy-melon
(these are now 'extinct' in the wild)
m (Protected "Template:Bmbox": High traffic page ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
(15 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
| delete    = ambox-delete
  | small     = left
| content    = ambox-content
  | type       = {{{type|}}}
| style     = ambox-style
  | image      = {{#if:{{{smallimage|}}}
| move       = ambox-move
                | {{{smallimage}}}
| protection = ambox-protection
                | {{{image|}}}
| notice    <!-- notice = default -->
                }}
| #default  = ambox-notice
   | imageright = {{#if:{{{smallimageright|}}}
}}" style="{{{style|}}}">
                | {{{smallimageright}}}
<tr>
                | {{{imageright|}}}
{{#ifeq:{{{image|}}}|none
                }}
| <!-- 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>
  | style      = {{{style|}}}
| <td class="mbox-image"><div style="width: 52px;">
  | textstyle  = {{{textstyle|}}}
  {{#ifeq:{{{image|}}}|blank
  | text       = {{#if:{{{smalltext|}}}
  | &nbsp;
                | {{{smalltext}}}  
   | {{#if:{{{image|}}}
                | {{{text}}}  
    | {{{image}}}
                }}
    | {{#switch:{{{type|}}}
  }}
      | speedy    = [[Image:Ambox speedy deletion.png|40x40px]]
| #default =  
      | delete    = [[Image:Ambox deletion.png|40x40px]]
  {{Bmbox/core
      | content    = [[Image:Ambox content.png|40x40px]]
  | type      = {{{type|}}}
      | style      = [[Image:Ambox style.png|40x40px]]
  | image      = {{{image|}}}
      | move      = [[Image:Ambox move.png|40x40px]]
  | imageright = {{{imageright|}}}
      | protection = [[Image:Ambox protection.png|40x40px]]
  | style     = {{{style|}}}
       | notice    <!-- notice = default -->
  | textstyle  = {{{textstyle|}}}
      | #default  = [[Image:Ambox notice.png|40x40px]]
   | text       = {{{text}}}
      }}
  }}
    }}
}}<!--{{Ambox}} end--><noinclude>
  }}</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  = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing. ([[:Category:Ambox templates using deprecated types|learn more]])</div>[[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