Template:Cmbox: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Davidgothberg
m moved Template:Cmbox to Template:Cambox: David Levy did not like "catbox", and "cmbox" is not nice to pronounce. So perhaps "cambox" since that was the second choice for me and Kelly. See talk page.
meta>Davidgothberg
Changing to hard coded styles so this box can be tested. Updating with latest code from {{ambox}}.
Line 1: Line 1:
<table class="metadata plainlinks ambox  
<table class="metadata plainlinks ambox" style="margin: 0px 10%; border: 1px solid #aaa;
{{#switch:{{{type|}}}
{{#switch:{{{type|}}}
   | speedy    = ambox-speedy  <!-- Can be used from 19 May 2008 -->
   | speedy    = margin: 3px 10%; border: 4px solid #b22222; background: #efd2d2;
   | delete                         <!-- delete = serious -->
   | delete     = background: #efd2d2;
  | serious    = ambox-delete     
   | content    = background: #fce6cc;
   | content    = ambox-content
   | style      = background: #fcf3d5;
   | style      = ambox-style
   | move       = background: #ead6f4;
   | move                           <!-- move = merge -->
   | protection = background: #ececdb;
   | merge      = ambox-merge   <!-- We can't use ambox-move yet -->
   | notice          <!-- notice = default -->
  | protection = ambox-protection
   | #default  = background: #d2e8ff;
  | notice    = ambox-notice
}} {{{style|}}}">
   | #default  = ambox-notice
}}" style="border: 1px solid #aaa; background: #d2e8ff; {{{style|}}}">
<tr>
<tr>
<td class="ambox-image">
<td class="ambox-image">
Line 17: Line 15:
   | <!-- 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|}}}}}}
     | speedy    = [[Image:Ambox deletion.png|40x40px]]
     | speedy    = [[Image:Ambox speedy deletion.png|40x40px]]  
     | delete  
     | delete    = [[Image:Ambox deletion.png|40x40px]]  
     | serious    = [[Image:Ambox deletion.png|40x40px]]  
     | content    = [[Image:Ambox content.png|40x40px]]
     | content    = [[Image:Ambox content.png|40x40px]]
     | style      = [[Image:Broom icon.svg|40x40px]]
     | style      = [[Image:Ambox style.png|40x40px]]
     | move
     | move       = [[Image:Ambox move.png|40x40px]]
    | merge      = [[Image:Merge-split-transwiki default.svg|40x40px]]
     | protection = [[Image:Ambox protection.png|40x40px]]
     | protection = [[Image:Padlock-silver-medium.svg|40x40px]]
     | notice    = [[Image:Ambox notice.png|40x40px]]
     | notice    = [[Image:Ambox notice.png|40x40px]]
     | blank      = [[Image:No image.svg|40x40px]]
     | blank      = &nbsp;
     | #default  = {{{image|[[Image:Ambox notice.png|40x40px]]}}}
     | #default  = {{{image|[[Image:Ambox notice.png|40x40px]]}}}
   }}</div>
   }}</div>

Revision as of 11:54, 1 May 2008