Difference between revisions of "Template:Mbox"

From Minetest Wiki
Jump to navigation Jump to search
m
m
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="margin:0 auto 1em; text-align:justify; border-collapse:collapse; border-width:2px; border-style:solid; 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 -->
| legal = border-color:#666; background:#fff;
 
| honor = border-color:#ca3; background:#fcf4db;
 
| growth = border-color:#8d4; background:#f5fff5; <!-- alt-->
 
 
| 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">{{{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;">
 +
{{#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 ==
 +
<pre>
 +
{{Mbox
 +
|text =
 +
|type =
 +
}}
 +
</pre>
 +
 
 
== Examples ==
 
== Examples ==
  
Line 34: Line 62:
 
}}
 
}}
 
{{mbox
 
{{mbox
|text=query – for minor issues
+
|text=style – for cleanup
|type=query
 
}}
 
{{mbox
 
|text=style – for cleanup (only difference is different icon)
 
 
|type=style
 
|type=style
 
}}
 
}}
  
{{mbox
 
|text=legal – for legal disclaimers
 
|type=legal
 
}}
 
 
{{mbox
 
{{mbox
 
|text=protection – for protection notices
 
|text=protection – for protection notices
 
|type=protection
 
|type=protection
}}
 
{{mbox
 
|text=honor – for honors such as featured image
 
|type=honor
 
}}
 
{{mbox
 
|text=growth – for other "good" notices
 
|type=growth
 
 
}}
 
}}
 
{{mbox
 
{{mbox
 
|text=move – for move requests
 
|text=move – for move requests
 
|type=move
 
|type=move
}}
 
{{mbox
 
|text=message
 
|type=message
 
 
}}
 
}}
 
{{mbox
 
{{mbox
Line 70: Line 78:
 
|type=
 
|type=
 
}}
 
}}
 +
 +
== Disclaimer ==
 +
Template:Mbox is based on [[commons:Template:Mbox]] and [[mw:Template:Mbox]], which are available under the [//creativecommons.org/licenses/by-sa/3.0/ Creative Commons Attribution-ShareAlike License].
  
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 00:16, 8 May 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 and mw:Template:Mbox, which are available under the Creative Commons Attribution-ShareAlike License.