Template:Ambox: Difference between revisions

From Pandora Wiki
Jump to navigationJump to search
ABC (talk | contribs)
Created page with "<table class="metadata plainlinks ambox {{#switch:{{{small|}}} | left = mbox-small-left }} " style="{{{style|}}} margin: 0px 10%;border: 1px #aaa solid;{{#if:{{{stacked|}}}|borde..."
 
ABC (talk | contribs)
workaround for no images
Line 12: Line 12:
| #default  = #1e90ff solid;background-color: #fbfbfb;"><tr>
| #default  = #1e90ff solid;background-color: #fbfbfb;"><tr>
}}
}}
{{#switch:{{{image|}}}
{{#switch:{{{lol|}}}
| blank    <!-- Fall back to "none", since deprecated. -->
| blank    <!-- Fall back to "none", since deprecated. -->
| none = <td class="mbox-empty-cell" style="border: none;padding: 0px;width 1px;"></td>  <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->
| none = <td class="mbox-empty-cell" style="border: none;padding: 0px;width 1px;"></td>  <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->
Line 21: Line 21:
   | #default = <div style="width: 52px;">  
   | #default = <div style="width: 52px;">  
   }}
   }}
   {{#if:{{{image|}}}
   {{#switch:{{{small|}}}
  | {{{image}}}
  | [[Image:{{#switch:{{{type|}}}
    | danger    = Ambox warning pn.svg
    | warning    = Ambox warning pn.svg
    | caution    = Ambox important.svg
    | approval  = Thumb_up_icon.svg
    | proposal  = Ambox warning purple.svg
    | detail    = Ambox style.png
    | protection = Ambox protection.png
    | notice          <!-- notice = default -->
    | #default  = Information icon4.svg
    }} | {{#switch:{{{small|}}}
      | left = 20x20px
      | #default = 40x40px
      }} ]]
  }}{{#switch:{{{small|}}}
   | left = <!-- Don't use the /DIV -->
   | left = <!-- Don't use the /DIV -->
   | #default = </div>  
   | #default = </div>  

Revision as of 12:46, 22 April 2011


[create] File:Template-info.svg Template documentation