« Modèle:Mbox/core Voir l’historique

(Changed to reflect redirect change for main article)
 
(Added a few more icons)
Ligne 1 : Ligne 1 :
'''Icon''' links directly to:
<table style="
 
  border: 1px solid rgb(170, 170, 170);
* [[Waze symbols]], client app icons for alert, moods (other drivers), ranks, and candy
  margin: 4px 5%;
 
  border-collapse: collapse;
 
  background: none repeat scroll 0% 0% rgb(249, 249, 249);
'''Icon''' may also refer to:
{{{style|}}}">
 
<tr>
* Forum icon, (or [[Your_Rank_and_Points#Forum_badges|Forum badge]]) appears in right pane of an editor's forum post
{{#switch:{{{image|}}}
* Park icon, (or [[Nearing_destination|parking pin]] to mark the location of your vehicle
| none = <td class="mbox-empty-cell"></td>  <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->
 
| #default =
{{Disambig}}
  <td style="
  border: medium none;
  padding: 2px 0px 2px 0.9em;
  text-align: center;
">{{
  #switch:{{{small|}}}
  | left = <!-- Don't use the DIV -->
  | #default = <div style="width: {{{imagewidth||52px}}};">
  }}
  {{#if: {{{image|}}}
  | {{{image}}}
  | [[File:{{#if: {{{filename|}}} | {{{filename}}} | {{#switch:{{{type|}}}
    | critical  = Mbox warning.png
    | important  = Mbox important.png
    | warning    = mbox_warning_yellow.png
    | caution    = Mbox caution.png
    | move      = Mbox move.png
    | protection = Mbox protection.png
    | license    = Mbox license.png
    | speculation  = Mbox speculation.png
    | construction = Warning blue construction.png
    | cleanup    = Edit-clear.png
    | notice      <!-- notice = default -->
    | #default  = Mbox information.png
    }} }} | {{#switch:{{{small|}}}
      | left = 20x20px
      | #default = 40x40px
      }} |link=|alt=]]
  }}{{#switch:{{{small|}}}
  | left = <!-- Don't use the /DIV -->
  | #default = </div>
  }}</td>
}}
<td style="
  width: 100%;
  border: medium none;
  padding: 0.25em 0.9em;
{{{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 du 24 février 2014 à 08:24

{{{text}}}