Template:Mbox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m 1 revision imported |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{# | <templatestyles src="Mbox/styles.css" /><table class="messagebox plainlinks layouttemplate {{{lang|}}} {{{class|}}}" {{#if:{{{lang|}}}|lang="{{{lang}}}" dir="{{#dir:{{{lang|}}}}}"}} style="margin:2px {{#if:{{{margin|}}}|{{{margin|}}}|{{#if:{{{width|}}}|auto|10%}}}};width:{{#if:{{{width|}}}|{{{width|}}}|auto}};{{#switch:{{{type|}}} | ||
{{ | |warning |speedy = border:2px solid var(--border-color-error,#b22222);background:var(--background-color-error-subtle,#ffdbdb); | ||
<!-- | |serious |delete |stop = border:2px solid var(--border-color-error,#b22222); | ||
|issue |content = border:2px solid #f28500;background:var(--background-color-warning-subtle,#ffe);<!--warn--> | |||
|query |style = border:2px solid #f4c430;background:var(--background-color-warning-subtle,#ffe);<!--cleanup--> | |||
|shit = border:2px solid #960; | |||
|license = border:2px solid #88a; | |||
|legal = border:2px solid var(--border-color-notice,#666);background:var(--background-color-base,#fff); | |||
|honor = border:2px solid #ca3;background:var(--background-color-warning-subtle,#fcf4db); | |||
|growth = border:2px solid #8d4;background:var(--background-color-success-subtle,#d5fdf4);<!--alt--> | |||
|move = border:2px solid #93c; | |||
|protection |message = border:2px solid var(--border-color-base,#aaa);<!--none--> | |||
|notice |#default = border:2px solid var(--border-color-progressive--hover,#48d);background:var(--background-color-neutral-subtle,#fbfcff);<!--info--> | |||
}}color:var(--color-base,#222);border-inline-start-width:8px;border-collapse:collapse;{{{style|}}}"><tr> | |||
{{#ifeq:{{{image|}}}|none | |||
| <td class="mbox-empty-cell"></td><!--No image. Cell with some width or padding necessary for text cell to have 100% width.--> | |||
| <td class="mbox-image" style="padding-inline-start:.9em" dir="{{#dir:{{{lang|}}}}}">{{#if:{{{image|}}} | |||
| {{{image|}}} | |||
| [[File:{{#switch:{{{type|}}} | |||
|warning = Commons-emblem-late | |||
|speedy = Commons-emblem-urgent | |||
|serious |delete = Gnome-emblem-important | |||
|stop = Commons-emblem-hand | |||
|move = Go-next-purple | |||
|issue |content = Commons-emblem-issue | |||
|query = Commons-emblem-query | |||
|style = Gnome-edit-clear | |||
|shit = OpenMoji-color 1F4A9 | |||
|license = Commons-emblem-copyright | |||
|legal = Commons-emblem-legal | |||
|honor = Gnome-help-about | |||
|growth = Dialog-apply | |||
|protection = Gnome-security-medium | |||
|message = Tango-style info icon | |||
|notice |#default = Commons-emblem-notice | |||
}}.svg|45x45px|class=noviewer|{{#ifeq:{{NAMESPACE}}|Template||link=}}]] | |||
}}</td> | |||
}}<td class="mbox-text" {{#if:{{{textstyle|}}} | style="{{{textstyle|}}}" }}>{{{text|}}}</td>{{#if:{{{imageright|}}} | |||
| <td class="mbox-imageright">{{{imageright|}}}</td> | |||
}}</tr></table><!-- | |||
Most templates made based on this template do not comply with [[Help:Authoring a license-template]] | |||
-->{{#ifeq:{{{type|}}}|license|[[Category:Licensing templates based on Mbox]]}}<noinclude> | |||
{{Documentation}} | |||
</noinclude> | </noinclude> |