Modèle:Mbox

De DigiWiki.

(Différences entre les versions)
Ligne 1 : Ligne 1 :
-
{{#switch:{{{small|}}}
+
<table id="{{{id|}}}" class="mbox mbox-wide
-
| left =  
+
{{#switch:{{{type|}}}
-
  {{mbox/core
+
| warning    = mbox-warning
-
  | small      = left
+
| editnotice =  
-
  | type      = {{{type|}}}
+
| system          <!-- system = default -->
-
  | image      = {{#if:{{{smallimage|}}}
+
| #default  = mbox-notice
-
                | {{{smallimage}}}
+
}} {{{class|}}}" style="{{{style|}}}">
-
                | {{{image|}}}
+
<tr>
-
                }}
+
{{#ifeq:{{{image|}}}|none
-
  | imageright = {{#if:{{{smallimageright|}}}
+
| <td class="mbox-empty-cell"><!-- No image. --></td>
-
                | {{{smallimageright}}}
+
| <td class="mbox-image">
-
                | {{{imageright|}}}
+
  {{#if:{{{image|}}}
-
                }}
+
  | {{{image}}}
-
   | style     = {{{style|}}}
+
  | [[File:{{#switch:{{{type|}}}
-
  | textstyle  = {{{textstyle|}}}
+
    | warning    = Cmbox deletion.png
-
  | text      = {{#if:{{{smalltext|}}}
+
    | editnotice = Imbox notice.png
-
                | {{{smalltext}}}  
+
    | system          <!-- system = default -->
-
                | {{{text}}}  
+
    | #default  = Imbox notice.png
-
                }}
+
    }}|40x40px|link=|alt=]]
-
  }}
+
   }}</td>
-
| #default =
+
}}
-
  {{mbox/core
+
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
-
   | type       = {{{type|}}}
+
{{#if:{{{imageright|}}}
-
   | image      = {{{image|}}}
+
| <td class="mbox-imageright"> {{{imageright}}} </td>
-
  | imageright = {{{imageright|}}}
+
}}
-
   | style     = {{{style|}}}
+
</tr>
-
  | textstyle  = {{{textstyle|}}}
+
</table><!--
-
  | text      = {{{text}}}
+
   Detect and report usage with faulty "type" parameter:
-
  }}
+
-->{{#switch:{{{type|}}}
-
}}<noinclude>
+
|   <!-- No type fed, is also valid input -->
 +
| warning
 +
| editnotice
 +
| system    =   <!-- Do nothing, valid "type" -->
 +
| #default   = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
 +
}}

Version du 21 janvier 2012 à 10:55

{{{text}}}
Outils personnels
donate
Google Ads