Template:Cmbox: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Davidgothberg
Starting out this category message box meta-template.
 
meta>Davidgothberg
Updating to new ambox code.
Line 1: Line 1:
<table class="metadata plainlinks ambox  
<table class="metadata plainlinks ambox  
{{#switch:{{{type|}}}
{{#switch:{{{type|}}}
   | serious = ambox-serious
  | speedy    = ambox-speedy  <!-- Can be used from 19 May 2008 -->
   | content = ambox-content
  | delete                          <!-- delete = serious -->
   | style   = ambox-style
   | serious   = ambox-delete     
   | merge   = ambox-merge
   | content   = ambox-content
   | notice   = ambox-notice
   | style     = ambox-style
   | #default = ambox-notice
  | move                            <!-- move = merge -->
   | merge     = ambox-merge   <!-- We can't use ambox-move yet -->
  | protection = ambox-protection
   | notice     = ambox-notice
   | #default   = ambox-notice
}}" style="border: 1px solid #aaa; background: #d2e8ff; {{{style|}}}">
}}" style="border: 1px solid #aaa; background: #d2e8ff; {{{style|}}}">
<tr>
<tr>
<td class="ambox-image">
<td class="ambox-image">
{{#ifeq:{{{image}}}|none
{{#ifeq:{{{image|}}}|none
   | <!-- no image cell; empty cell necessary for text cell to have 100% width -->
   | <!-- No image cell; empty cell necessary for text cell to have 100% width -->
   | <div style="width:52px;"> {{#switch:{{{image|{{{type|}}}}}}
   | <div style="width:52px;"> {{#switch:{{{image|{{{type|}}}}}}
     | serious = [[Image:Stop hand nuvola.svg|40px]]
    | speedy    = [[Image:Ambox deletion.png|40x40px]]
     | content = [[Image:Emblem-important.svg|40px]]
    | delete
     | style   = [[Image:Broom icon.svg|40px]]
     | serious   = [[Image:Ambox deletion.png|40x40px]]  
     | merge   = [[Image:Merge-split-transwiki default.svg]]
     | content   = [[Image:Ambox content.png|40x40px]]
     | notice   = [[Image:Info non-talk.png|40px]]
     | style     = [[Image:Broom icon.svg|40x40px]]
     | blank   = [[Image:No image.svg]]
    | move
     | #default = {{{image|[[Image:Information icon4.svg|40px]]}}}
     | merge     = [[Image:Merge-split-transwiki default.svg|40x40px]]
    | protection = [[Image:Padlock-silver-medium.svg|40x40px]]
     | notice     = [[Image:Ambox notice.png|40x40px]]
     | blank     = [[Image:No image.svg|40x40px]]
     | #default   = {{{image|[[Image:Ambox notice.png|40x40px]]}}}
   }}</div>
   }}</div>
}}</td>
}}</td>
<td class="ambox-text">{{{text}}}</td>
<td class="ambox-text" style="{{{textstyle|}}}">{{{text}}}</td>
{{#if:{{{imageright|}}}|
{{#if:{{{imageright|}}}
   <td class="ambox-imageright"><div style="width:52px;"> {{{imageright}}} </div></td>
   | <td class="ambox-imageright"><div style="width:52px;"> {{{imageright}}} </div></td>
}}
}}
</tr>
</tr>

Revision as of 05:30, 29 April 2008