Difference between revisions of "Template:Mbox"

From Minetest Wiki
Jump to navigation Jump to search
m (Removed some types)
m (Added icons)
Line 1: Line 1:
<div style="margin:0 auto 1em; text-align:justify; border-collapse:collapse; border-width:1px; border-style:dashed; width:{{{width|100%}}}; clear: both;  
+
<table style="margin: 0 auto 1em; text-align: justify; border-collapse: collapse; border-width: 1px; border-style: dashed; width: {{{width|100%}}}; clear: both;  
 
{{#switch:{{{type|}}}
 
{{#switch:{{{type|}}}
 
| speedy
 
| speedy
 
| warning = border-color:#b22222; background:#ffdbdb;
 
| warning = border-color:#b22222; background:#ffdbdb;
 
| serious
 
| serious
| stop
 
 
| delete = border-color:#b22222;
 
| delete = border-color:#b22222;
 
| content
 
| content
 
| issue = border-color:#f28500; background:#ffe; <!-- warn -->
 
| issue = border-color:#f28500; background:#ffe; <!-- warn -->
| query
 
 
| style = border-color:#f4c430; background:#ffe; <!-- cleanup -->
 
| style = border-color:#f4c430; background:#ffe; <!-- cleanup -->
 
| move = border-color:#93c;
 
| move = border-color:#93c;
| protection =
+
| protection = border-width:1px; <!-- none-->
| message = border-width:1px; <!-- none-->
 
 
| notice
 
| notice
 
| #default = border-color:#48d; background:#fbfcff; <!-- info -->
 
| #default = border-color:#48d; background:#fbfcff; <!-- info -->
}} {{{style|}}}"><div style="padding:0.25em 0.9em; {{{textstyle|}}}">{{{text}}}</div></div><noinclude>
+
}} {{{style|}}}">
 +
<tr>
 +
{{#ifeq:{{{image|}}}|none
 +
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 0; width: 1px;"></td>
 +
| <td style="border: none; padding: 2px 0 2px 0.9em; text-align: center; padding-right: 0.9em;">
 +
{{#if:{{{image|}}}
 +
| {{{image}}}
 +
| {{#switch:{{{type|}}}
 +
| speedy
 +
| warning
 +
| serious
 +
| delete = [[File:Mbox warning.png|25px|link=]]
 +
| content
 +
| issue = [[File:Mbox important.png|25px|link=]]
 +
| style = [[File:Mbox style.png|25px|link=]]
 +
| move = [[File:Mbox move.png|25px|link=]]
 +
| protection = [[File:Mbox protection.png|25px|link=]]
 +
| notice
 +
| #default = [[File:Mbox information.png|25px|link=]]
 +
}}
 +
}}</td>
 +
}}
 +
<td style="border: none; padding: 0.25em 0.9em; width: 100%; {{{textstyle|}}}">{{{text}}}</td>
 +
{{#if:{{{imageright|}}}
 +
| <td style="border: none; padding: 2px 0.9em 2px 0; text-align: center;">{{{imageright}}}</td>
 +
}}
 +
</tr></table><noinclude>
 
== Usage ==
 
== Usage ==
 
<pre>
 
<pre>
Line 37: Line 60:
 
|text=issue – for larger issues
 
|text=issue – for larger issues
 
|type=issue
 
|type=issue
}}
 
{{mbox
 
|text=query – for minor issues
 
|type=query
 
 
}}
 
}}
 
{{mbox
 
{{mbox
Line 54: Line 73:
 
|text=move – for move requests
 
|text=move – for move requests
 
|type=move
 
|type=move
}}
 
{{mbox
 
|text=message
 
|type=message
 
 
}}
 
}}
 
{{mbox
 
{{mbox

Revision as of 17:40, 12 April 2017

Mbox information.png {{{text}}}

Usage

{{Mbox
 |text =
 |type =
}}

Examples

Mbox warning.png warning – for speedy deletion and other serious notices
Mbox warning.png serious – for deletion notices
Mbox important.png issue – for larger issues
Mbox style.png style – for cleanup
Mbox protection.png protection – for protection notices
Mbox move.png move – for move requests
Mbox information.png notice (default)

Disclaimer

Template:Mbox is based on commons:Template:Mbox, which is available under the Creative Commons Attribution-ShareAlike License.