Jump to content

Template:Mbox and Template:Mbox/core: Difference between pages

(Difference between pages)
Page 1
Page 2
imported>Evilissimo
No edit summary
 
imported>Evilissimo
No edit summary
 
Line 1: Line 1:
<includeonly>{{
<includeonly><table class="metadata plainlinks mbox {{#switch:{{{small|}}}
  {{namespace detect
| left = mbox-small-left
  | demospace = {{{demospace|}}}
}} {{#switch:{{{type|}}}
   | main     = ambox
| speedy    =
   | talk      = tmbox
| critical   = mbox-critical
   | file      = imbox
| delete
   | category  = cmbox
| important  = mbox-important
   | other    = ombox
| warning   
| content    = mbox-warning
| caution   
| style     = mbox-caution
| notice    = mbox-notice
| move      = mbox-move
| protection = mbox-protection
| notice
| license   = mbox-license
| #default  = <!-- no type colours -->
}}" style="{{{style|}}}">
<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 =
  <td class="mbox-image">{{
   #switch:{{{small|}}}
  | left = <!-- Don't use the DIV -->
   | #default = <div style="width: {{{imagewidth||52px}}};">
   }}
   }}
| type      = {{{type|}}}
  {{#if:{{{image|}}}
| image      = {{{image|}}}
  | {{{image}}}
| imageright = {{{imageright|}}}
  | [[File:{{#switch:{{{type|}}}
| class      = {{{class|}}}
    | critical  = Ambox speedy deletion.png
| style      = {{{style|}}}
    | important  = Ambox deletion.png
| textstyle  = {{{textstyle|}}}
    | warning    = Ambox content.png
| text      = {{{text}}}
    | caution    = Edit-clear.svg
| small      = {{{small|}}}
    | move      = Ambox move.png
| smallimage = {{{smallimage|}}}
    | protection = Ambox protection.png
| smallimageright = {{{smallimageright|}}}
    | license = Imbox license.png
| smalltext  = {{{smalltext|}}}
    | notice          <!-- notice = default -->
| subst      = {{{subst|}}}
    | #default  = Ambox notice.png
| date      = {{{date|}}}
    }} | {{#switch:{{{small|}}}  
      | left = 20x20px
      | #default = 40x40px
      }} |link=|alt=]]
  }}{{#switch:{{{small|}}}
  | left = <!-- Don't use the /DIV -->
  | #default = </div>
  }}</td>
}}
}}
</includeonly>
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
<noinclude>
{{#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></includeonly><noinclude>
{{documentation}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>