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..."
 
removed "ambox derived works" which is a dead link
 
(2 intermediate revisions by one other user not shown)
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>  
Line 43: Line 27:
}}
}}
<td class="mbox-text" style="{{{textstyle|}}} border: none;padding: 0.25em 0.9em;width: 100%;text-align: center;"> {{{text}}} </td>
<td class="mbox-text" style="{{{textstyle|}}} border: none;padding: 0.25em 0.9em;width: 100%;text-align: center;"> {{{text}}} </td>
{{#if:{{{imageright|}}}
| {{#ifeq:{{{imageright|}}}|none
  | <!-- No image. -->
  | <td class="mbox-imageright" style="border: none;padding: 2px 0.9em 2px 0;text-align: center;">{{#switch:{{{small|}}}
    | left = {{{imageright}}}
    | #default = <div style="width: 52px;"> {{{imageright}}} </div>
    }}</td>
  }}
}}
</tr>
</tr>
</table>
</table>
<includeonly>[[Category:Ambox Derived Works|{{PAGENAME}}]]</includeonly>


<noinclude>
<noinclude>

Latest revision as of 21:43, 25 October 2013


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