Template:Mbox/core

From 360Works Product Documentation Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<table class="metadata plainlinks mbox {{#switch:{{{small|}}} | left = mbox-small-left }} {{#switch:{{{type|}}} | speedy = | critical = mbox-critical | delete | importa...")
 
 
Line 2: Line 2:
 
| left = mbox-small-left
 
| left = mbox-small-left
 
}} {{#switch:{{{type|}}}
 
}} {{#switch:{{{type|}}}
| speedy     =  
+
| speedy =
| critical   = mbox-critical
+
| critical = mbox-critical
 
| delete
 
| delete
| important = mbox-important
+
| important = mbox-important
| warning  
+
| warning
| content    = mbox-warning
+
| warning = mbox-warning
| caution  
+
| caution
| style      = mbox-caution
+
| caution = mbox-caution
| notice     = mbox-notice
+
| notice = mbox-notice
| move       = mbox-move
+
| move = mbox-move
 
| protection = mbox-protection
 
| protection = mbox-protection
 
| notice
 
| notice
| license   = mbox-license
+
| license = mbox-license
| #default   = <!-- no type colours -->
+
| #default = <!-- no type colours -->
 
}}" style="{{{style|}}}">
 
}}" style="{{{style|}}}">
 
<tr>
 
<tr>
 
{{#switch:{{{image|}}}
 
{{#switch:{{{image|}}}
| none = <td class="mbox-empty-cell"></td>   <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->
+
| none = <td class="mbox-empty-cell"></td> <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->
| #default =  
+
| #default =
  <td class="mbox-image">{{
+
<td class="mbox-image">{{
  #switch:{{{small|}}}
+
#switch:{{{small|}}}
  | left = <!-- Don't use the DIV -->  
+
| left = <!-- Don't use the DIV -->
  | #default = <div style="width: {{{imagewidth||52px}}};">  
+
| #default = <div style="width: {{{imagewidth||52px}}};">
  }}
+
}}
  {{#if: {{{image|}}}
+
{{#if: {{{image|}}}
  | {{{image}}}
+
| {{{image}}}
  | [[File:{{#if: {{{filename|}}} | {{{filename}}} | {{#switch:{{{type|}}}
+
| [[File:{{#if: {{{filename|}}} | {{{filename}}} | {{#switch:{{{type|}}}
    | critical   = Ambox warning pn.svg
+
| critical = Ambox warning pn.png
    | important = Ambox warning pn.svg
+
| important = Ambox warning pn.png
    | warning   = Ambox important.svg
+
| warning = Ambox important.png
    | caution   = Edit-clear.svg
+
| caution = Edit-clear.png
    | move       = Ambox move.png
+
| move = Ambox move.png
    | protection = Ambox protection.png
+
| protection = Ambox protection.png
    | license = Imbox license.png
+
| license = Imbox license.png
    | notice         <!-- notice = default -->
+
| notice <!-- notice = default -->
    | #default   = Information icon4.svg
+
| #default = Ambox notice.png
    }} }} | {{#switch:{{{small|}}}  
+
}} }} | {{#switch:{{{small|}}}
      | left = 20x20px  
+
| left = 20x20px
      | #default = 40x40px  
+
| #default = 40x40px
      }} |link=|alt=]]
+
}} |link=|alt=]]
  }}{{#switch:{{{small|}}}
+
}}{{#switch:{{{small|}}}
  | left = <!-- Don't use the /DIV -->
+
| left = <!-- Don't use the /DIV -->
  | #default = </div>  
+
| #default = </div>
  }}</td>
+
}}</td>
 
}}
 
}}
 
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
 
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
 
{{#if:{{{imageright|}}}
 
{{#if:{{{imageright|}}}
 
| {{#ifeq:{{{imageright|}}}|none
 
| {{#ifeq:{{{imageright|}}}|none
  | <!-- No image. -->
+
| <!-- No image. -->
  | <td class="mbox-imageright">{{#switch:{{{small|}}}
+
| <td class="mbox-imageright">{{#switch:{{{small|}}}
    | left = {{{imageright}}}
+
| left = {{{imageright}}}
    | #default = <div style="width: {{{imagerightwidth|52px}}};"> {{{imageright}}} </div>
+
| #default = <div style="width: {{{imagerightwidth|52px}}};"> {{{imageright}}} </div>
    }}</td>
+
}}</td>
  }}
+
}}
 
}}
 
}}
 
</tr>
 
</tr>
 
</table><noinclude>
 
</table><noinclude>
{{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 18:48, 3 June 2013


Personal tools
Namespaces

Variants
Actions
Plug-in Products
Other Products
Navigation
Toolbox