Modèle:Mbox

De DigiWiki.

(Différences entre les versions)
 
Ligne 1 : Ligne 1 :
-
<table class="metadata plainlinks mbox {{#switch:{{{small|}}}
+
{{#switch:{{{small|}}}
-
| left = mbox-small-left
+
| left =  
-
}} {{#switch:{{{type|}}}
+
  {{mbox/core
-
| speedy    =
+
  | small     = left
-
| critical  = mbox-critical
+
  | type      = {{{type|}}}
-
| delete
+
  | image      = {{#if:{{{smallimage|}}}
-
| important  = mbox-important
+
                | {{{smallimage}}}
-
| warning   
+
                | {{{image|}}}
-
| content    = mbox-warning
+
                }}
-
| caution   
+
  | imageright = {{#if:{{{smallimageright|}}}
-
| style      = mbox-caution
+
                | {{{smallimageright}}}
-
| notice    = mbox-notice
+
                | {{{imageright|}}}
-
| move      = mbox-move
+
                }}
-
| protection = mbox-protection
+
  | style      = {{{style|}}}
-
| notice
+
   | textstyle  = {{{textstyle|}}}
-
| license   = mbox-license
+
  | text      = {{#if:{{{smalltext|}}}
-
| #default  = <!-- no type colours -->
+
                | {{{smalltext}}}
-
}}" style="{{{style|}}}">
+
                | {{{text}}}
-
<tr>
+
                }}
-
{{#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. -->
+
| #default =  
| #default =  
-
   <td class="mbox-image">{{
+
   {{mbox/core
-
   #switch:{{{small|}}}
+
   | type      = {{{type|}}}
-
  | left = <!-- Don't use the DIV -->
+
   | image     = {{{image|}}}
-
  | #default = <div style="width: {{{imagewidth||52px}}};">
+
   | imageright = {{{imageright|}}}
-
   }}
+
  | style      = {{{style|}}}
-
  {{#if:{{{image|}}}
+
   | textstyle  = {{{textstyle|}}}
-
  | {{{image}}}
+
   | text      = {{{text}}}
-
  | [[File:{{#switch:{{{type|}}}
+
-
    | critical   = Ambox speedy deletion.png
+
-
    | important  = Ambox deletion.png
+
-
    | warning    = Ambox content.png
+
-
    | caution    = Edit-clear.svg
+
-
    | move      = Ambox move.png
+
-
    | protection = Ambox protection.png
+
-
    | license = Imbox license.png
+
-
    | notice          <!-- notice = default -->
+
-
    | #default  = Ambox notice.png
+
-
    }} | {{#switch:{{{small|}}}  
+
-
      | left = 20x20px
+
-
      | #default = 40x40px
+
-
      }} |link=|alt=]]
+
-
  }}{{#switch:{{{small|}}}
+
-
   | left = <!-- Don't use the /DIV -->
+
-
  | #default = </div>
+
-
  }}</td>
+
-
}}
+
-
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
+
-
{{#if:{{{imageright|}}}
+
-
| {{#ifeq:{{{imageright|}}}|none
+
-
   | <!-- No image. -->
+
-
  | <td class="mbox-imageright">{{#switch:{{{small|}}}
+
-
    | left = {{{imageright}}}
+
-
    | #default = <div style="width: {{{imagerightwidth|52px}}};"> {{{imageright}}} </div>
+
-
    }}</td>
+
   }}
   }}
}}
}}
-
</tr>
 
-
</table>
 

Version actuelle en date du 21 janvier 2012 à 11:42

Outils personnels
  • Cette page a été consultée 531 fois.
donate
Google Ads