Template:Mbox/core View history

mNo edit summary
m (1 revision imported)
 
(28 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<table class="metadata plainlinks mbox {{#switch:{{{small|}}}
<table style="
| left = mbox-small-left
}} {{#switch:{{{type|}}}
| speedy    =
| critical  = mbox-critical
| delete
| important  = mbox-important
| 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|
   border: 1px solid rgb(170, 170, 170);
   border: 1px solid rgb(170, 170, 170);
   margin: 4px 10%;
   margin: 4px 5%;
   border-collapse: collapse;
   border-collapse: collapse;
   background: none repeat scroll 0% 0% rgb(249, 249, 249);
   background: none repeat scroll 0% 0% rgb(249, 249, 249);
}}}">
  width: 90%;
{{{style|}}}">
<tr>
<tr>
{{#switch:{{{image|}}}
{{#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. -->
| 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" style="
   <td style="
   border: medium none;
   border: medium none;
   padding: 2px 0px 2px 0.9em;
   padding: 2px 0px 2px 0.9em;
Line 38: Line 22:
   | {{{image}}}
   | {{{image}}}
   | [[File:{{#if: {{{filename|}}} | {{{filename}}} | {{#switch:{{{type|}}}
   | [[File:{{#if: {{{filename|}}} | {{{filename}}} | {{#switch:{{{type|}}}
     | critical   = Mbox warning.svg
     | critical     = Mbox warning.png
     | important = Mbox important.svg
    | warning      = mbox warning yellow.png
     | warning    = Mbox warning.svg
     | important   = Mbox important.png
     | caution    = Edit-clear.svg
    | flag        <!-- flag = caution -->
     | move       = Ambox move.png
     | caution      = Mbox caution.png
     | protection = Ambox protection.png
     | speculation  = Mbox speculation.png
     | license = Imbox license.png
     | move         = Mbox move.png
     | notice         <!-- notice = default -->
     | protection   = Mbox protection.png
     | #default   = Mbox_information.png
     | license     = Mbox license.png
     | construction = Mbox construction yellow.png
    | neweditor    = Mbox new editor.png
    | mail        = Mbox mail.png
    | forum        = Gnome-system-users.svg.png
    | cleanup      = Edit-clear.png
    | wiki        = wikitext.png
    | note        <!-- note = notice -->
    | notice      = Mbox notice.png
    | information  <!-- information = default -->
     | #default     = Mbox information.png
     }} }} | {{#switch:{{{small|}}}  
     }} }} | {{#switch:{{{small|}}}  
       | left = 20x20px  
       | left = 20x20px  
Line 56: Line 50:
   }}</td>
   }}</td>
}}
}}
<td class="mbox-text" style="{{{textstyle|
<td style="
   width: 100%;
   width: 100%;
   border: medium none;
   border: medium none;
   padding: 0.25em 0.9em;
   padding: 0.25em 0.9em;
}}}"> {{{text}}} </td>
{{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
{{#if:{{{imageright|}}}
| {{#ifeq:{{{imageright|}}}|none
| {{#ifeq:{{{imageright|}}}|none
Line 72: Line 66:
</tr>
</tr>
</table><noinclude>
</table><noinclude>
{{documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
{{Documentation|content=This subtemplate supports the default values of {{tl|Mbox}}. It should not be altered without review from a Wiki Expert. Contact one through the [http://www.waze.com/forum/viewforum.php?f=276 Wiki Updates and Discussion forum.]}}
 
<!-- This category is only for the template itself -->
 
[[Category:Template:Mbox]]
 
</noinclude>
</noinclude>

Latest revision as of 13:01, 4 December 2022

{{{text}}}
Documentation icon Template documentation

This subtemplate supports the default values of {{Mbox}}. It should not be altered without review from a Wiki Expert. Contact one through the Wiki Updates and Discussion forum.

Subpages of this template.