Template:Bmbox/core: Difference between revisions

From BetaArchive Wiki
en.wikibooks>Happy-melon
(hardcoded small styles)
en.wikibooks>Happy-melon
(image sizing)
Line 19: Line 19:
{{#ifeq:{{{image|}}}|none
{{#ifeq:{{{image|}}}|none
  | <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->{{td}}
  | <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->{{td}}
  | <td class="mbox-image"><div style="width: 52px;">
  | <td class="mbox-image">{{#switch: {{{small|}}} | left=<!--nothing--> | <div style="width:52px;"> }}
  {{#ifeq:{{{image|}}}|blank
{{#if:{{{image|}}}
    | &nbsp;
  | {{{image}}}
    | {{#if:{{{image|}}}
  | [[Image:{{#switch:{{{type|}}}
      | {{{image}}}
    | speedy    = Ambox speedy deletion.png
      | {{#switch:{{{type|}}}
    | delete    = Ambox deletion.png
          | speedy    = [[Image:Ambox speedy deletion.png|40x40px]]
    | content    = Ambox content.png
          | delete    = [[Image:Ambox deletion.png|40x40px]]
    | style      = Ambox style.png
          | content    = [[Image:Ambox content.png|40x40px]]
    | move      = Ambox move.png
          | style      = [[Image:Ambox style.png|40x40px]]
    | protection = Ambox protection.png
          | move      = [[Image:Ambox move.png|40x40px]]
    | notice         <!-- notice = default -->
          | protection = [[Image:Ambox protection.png|40x40px]]
    | #default  = Ambox notice.png
          | notice     <!-- notice = default -->
    }} | {{#switch: {{{small|}}} | left=20x20px | 40x40px }} ]]
          | #default  = [[Image:Ambox notice.png|40x40px]]
  }}{{#switch: {{{small|}}} | left=<!--nothing--> | </div> }}</td>
        }}
      }}
  }}</div></td>
}}
}}
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>

Revision as of 18:26, 10 March 2009