Jump to content

Template:Ambox: Difference between revisions

From IdeaWazaWiki
wikademia>Davidgothberg
Planned fixes: Using new CSS class names (deployed for 30 days now). Fixing the empty "image=" parameter bug and the padding for the image=none case. And some other cleanup. (Tested in sandbox.)
wikademia>Eme
m 1 revision
 
(23 intermediate revisions by 11 users not shown)
Line 1: Line 1:
<table class="metadata plainlinks ambox
<!--{{Ambox}} begin-->{{#switch:{{{small|}}}
{{#switch:{{{type|}}}
| left =  
| speedy    = ambox-speedy
  {{Ambox/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-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: 1px;"></td>
   | text      = {{#if:{{{smalltext|}}}
| <td class="ambox-image"><div style="width: 52px;">
                | {{{smalltext}}}  
  {{#ifeq:{{{image|}}}|blank
                | {{{text}}}
   | &nbsp;
                }}
   | {{#if:{{{image|}}}
  }}
    | {{{image}}}
| #default =  
    | {{#switch:{{{type|}}}
  {{Ambox/core
      | speedy    = [[Image:Ambox speedy deletion.png|40x40px]]
  | type       = {{{type|}}}
       | delete
  | image      = {{{image|}}}
      | serious    = [[Image:Ambox deletion.png|40x40px]]
  | imageright = {{{imageright|}}}
      | content    = [[Image:Ambox content.png|40x40px]]
  | style      = {{{style|}}}
      | style      = [[Image:Ambox style.png|40x40px]]
  | textstyle  = {{{textstyle|}}}
      | move
  | text       = {{{text}}}
      | merge      = [[Image:Ambox move.png|40x40px]]
  }}
      | protection = [[Image:Ambox protection.png|40x40px]]
}}<!--
       | notice          <!-- notice = default -->
 
      | #default  = [[Image:Ambox notice.png|40x40px]]
--><includeonly>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq:{{NAMESPACE}}|Template|[[Category:Article message boxes]]}}}}</includeonly><!--
      }}
 
    }}
--><!--{{Ambox}} end--><noinclude>
  }}</div></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>

Latest revision as of 21:29, 18 December 2010

[create] Template documentation