Modèle:Mbox

De DigiWiki.

(Différences entre les versions)
 
(2 versions intermédiaires masquées)
Ligne 1 : Ligne 1 :
-
<table id="{{{id|}}}" class="mbox mbox-wide
+
{{#switch:{{{small|}}}
-
{{#switch:{{{type|}}}
+
| left =  
-
| warning    = mbox-warning
+
  {{mbox/core
-
| editnotice =  
+
  | small      = left
-
| system          <!-- system = default -->
+
  | type      = {{{type|}}}
-
| #default   = mbox-notice
+
   | image      = {{#if:{{{smallimage|}}}
-
}} {{{class|}}}" style="{{{style|}}}">
+
                | {{{smallimage}}}
-
<tr>
+
                | {{{image|}}}
-
{{#ifeq:{{{image|}}}|none
+
                }}
-
| <td class="mbox-empty-cell"><!-- No image. --></td>
+
  | imageright = {{#if:{{{smallimageright|}}}
-
| <td class="mbox-image">
+
                | {{{smallimageright}}}
-
   {{#if:{{{image|}}}
+
                | {{{imageright|}}}
-
  | {{{image}}}
+
                }}
-
  | [[File:{{#switch:{{{type|}}}
+
  | style      = {{{style|}}}
-
    | warning    = Cmbox deletion.png
+
  | textstyle  = {{{textstyle|}}}
-
    | editnotice = Imbox notice.png
+
   | text      = {{#if:{{{smalltext|}}}
-
    | system          <!-- system = default -->
+
                | {{{smalltext}}}  
-
    | #default   = Imbox notice.png
+
                | {{{text}}}
-
    }}|40x40px|link=|alt=]]
+
                }}
-
   }}</td>
+
  }}
 +
| #default =
 +
  {{mbox/core
 +
  | type      = {{{type|}}}
 +
  | image      = {{{image|}}}
 +
  | imageright = {{{imageright|}}}
 +
  | style      = {{{style|}}}
 +
   | textstyle  = {{{textstyle|}}}
 +
  | text      = {{{text}}}
 +
   }}
}}
}}
-
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
 
-
{{#if:{{{imageright|}}}
 
-
| <td class="mbox-imageright"> {{{imageright}}} </td>
 
-
}}
 
-
</tr>
 
-
</table><!--
 
-
  Detect and report usage with faulty "type" parameter:
 
-
-->{{#switch:{{{type|}}}
 
-
|  <!-- 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 -->
 
-
}}<noinclude>
 
-
{{documentation}}
 
-
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
-
</noinclude>
 

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

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