Difference between revisions of "Template:Mbox"
Jump to navigation
Jump to search
m (Removed some types) |
m |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | < | + | <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 | ||
− | |||
| delete = border-color:#b22222; | | delete = border-color:#b22222; | ||
| content | | content | ||
| issue = border-color:#f28500; background:#ffe; <!-- warn --> | | issue = border-color:#f28500; background:#ffe; <!-- warn --> | ||
− | |||
| 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--> |
− | |||
| notice | | notice | ||
| #default = border-color:#48d; background:#fbfcff; <!-- info --> | | #default = border-color:#48d; background:#fbfcff; <!-- info --> | ||
− | }} {{{style|}}}">< | + | }} {{{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 == | == Usage == | ||
<pre> | <pre> | ||
Line 37: | Line 60: | ||
|text=issue – for larger issues | |text=issue – for larger issues | ||
|type=issue | |type=issue | ||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
{{mbox | {{mbox | ||
Line 54: | Line 73: | ||
|text=move – for move requests | |text=move – for move requests | ||
|type=move | |type=move | ||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
{{mbox | {{mbox | ||
Line 65: | Line 80: | ||
== Disclaimer == | == Disclaimer == | ||
− | [[Template:Mbox]] | + | 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
{{{text}}} |
Usage
{{Mbox |text = |type = }}
Examples
warning – for speedy deletion and other serious notices |
serious – for deletion notices |
issue – for larger issues |
style – for cleanup |
protection – for protection notices |
move – for move requests |
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.