Template:Bmbox: Difference between revisions

From BetaArchive Wiki
en.wikibooks>John Vandenberg
en.wikibooks>Happy-melon
(note deprecated type values to prevent confusion)
Line 1: Line 1:
<table style="{{{style|}}}" class="metadata plainlinks ambox {{#switch:{{{type|}}}
<table class="metadata plainlinks ambox  
  | serious = ambox-serious
{{#switch:{{{type|}}}
  | content = ambox-content
| speedy    = ambox-speedy
  | style   = ambox-style
| delete    <!-- this value is **deprecated**, please don't use it! -->
  | merge   = ambox-merge
| serious   = ambox-delete
  | notice  = ambox-notice
| content   = ambox-content
  | #default = ambox-notice
| style     = ambox-style
}}">
| move      <!-- this value is **deprecated**, please don't use it! -->
| merge     = ambox-move
| protection = ambox-protection
| notice    <!-- notice = default -->
| #default   = ambox-notice
}}" style="{{{style|}}}">
<tr>
<tr>
<td class="ambox-image">
{{#ifeq:{{{image|}}}|none
{{#ifeq:{{{image}}}|none
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 1px;"></td>
  | <!-- no image cell; empty cell necessary for text cell to have 100% width -->
| <td class="ambox-image"><div style="width: 52px;">
  | <div style="width:52px;"> {{#switch:{{{image|{{{type|}}}}}}
  {{#ifeq:{{{image|}}}|blank
     | serious  = [[Image:Stop hand nuvola.svg|40px]]
  | &nbsp;
     | content  = [[Image:Emblem-important.svg|40px]]
  | {{#if:{{{image|}}}
    | style   = [[Image:Broom icon.svg|40px]]
    | {{{image}}}
    | merge    = [[Image:Merge-split-transwiki default.svg]]
     | {{#switch:{{{type|}}}
    | notice  = [[Image:Info non-talk.png|40px]]
      | speedy    = [[Image:Ambox speedy deletion.png|40x40px]]
    | blank    = [[Image:No image.svg]]
      | delete     <!-- this value is **deprecated**, please don't use it! -->
     | #default = {{{image|[[Image:Info non-talk.png|40px]]}}}
      | serious    = [[Image:Ambox deletion.png|40x40px]]
   }}</div>
      | content   = [[Image:Ambox content.png|40x40px]]
}}</td>
      | style      = [[Image:Ambox style.png|40x40px]]
<td class="ambox-text">{{{text}}}</td>
      | move      <!-- this value is **deprecated**, please don't use it! -->
{{#if:{{{imageright|}}}|
      | merge      = [[Image:Ambox move.png|40x40px]]
  <td class="ambox-imageright"><div style="width:52px;"> {{{imageright}}} </div></td>
      | protection = [[Image:Ambox protection.png|40x40px]]
      | 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>
</tr>
</table>
</table><noinclude>
<noinclude>
 
[[mk:Шаблон:Ambox]]
{{pp-template|small=yes}}
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Revision as of 19:48, 17 August 2008