Template:Ombox/core: Difference between revisions
(Add class parameter) |
No edit summary |
||
(8 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<table class="plainlinks ombox {{#ifeq:{{{small}}}|yes|mbox-small}} | <table class="plainlinks ombox {{#ifeq:{{{small}}}|yes|mbox-small}} | ||
{{#switch:{{{type|}}} | {{#switch:{{{type|}}} | ||
| speedy = ombox-speedy | | speedy = border: 2px solid #b22222; background: #fee; <!--ombox-speedy--> | ||
| delete = ombox-delete | | delete = border: 2px solid #b22222; <!--ombox-delete--> | ||
| content = ombox-content | | content = border: 1px solid #f28500; <!--ombox-content--> | ||
| style = ombox-style | | style = border: 1px solid #f4c430; <!--ombox-style--> | ||
| move = ombox-move | | move = border: 1px solid #9932cc; <!--ombox-move--> | ||
| protection = ombox-protection | | protection = border: 2px solid #bba; <!--ombox-protection--> | ||
| notice <!-- notice = default --> | | notice <!-- notice = default --> | ||
| #default = ombox-notice | | #default = border: 1px solid #aaa; <!--ombox-notice--> | ||
}} {{ | }}" style="{{grey border}} {{{style|}}}"> | ||
<tr> | <tr> | ||
{{#ifeq:{{{image|}}}|none | {{#ifeq:{{{image|}}}|none | ||
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><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-empty-cell"></td> | ||
| <td class="mbox-image"> | | <td class="mbox-image" style="vertical-align:middle"> | ||
{{#if:{{{image|}}} | {{#if:{{{image|}}} | ||
| {{{image}}} | | {{{image}}} | ||
| [[Image:{{#switch:{{{type|}}} | | [[Image:{{#switch:{{{type|}}} | ||
| speedy = | | speedy = Icon-warning.png | ||
| delete = | | delete = Delete.png | ||
| content = Imbox content.png | | content = Information icon.png <!-- Imbox content.png --> | ||
| style = | | style = Broom icon.png | ||
| move = | | move = ArrowGreen.svg.png | ||
| protection = | | protection = Padlock.png | ||
| notice <!-- notice = default --> | | notice <!-- notice = default --> | ||
| #default = | | #default = Information icon.png | ||
}} | {{#ifeq:{{{small|}}}|yes | }} | {{#ifeq:{{{small|}}}|yes|30x30px|40x40px}} ]] | ||
}}</td> | }}</td> | ||
}} | }} | ||
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> | <td class="mbox-text" style="font-size:8pt;{{{textstyle|}}}"> {{{text}}} </td> | ||
{{#if:{{{imageright|}}} | {{#if:{{{imageright|}}} | ||
| {{#ifeq:{{{imageright|}}}|none | | {{#ifeq:{{{imageright|}}}|none | ||
| <!-- No image. --> | | <!-- No image. --> | ||
| <td class="mbox-imageright"> {{{imageright}}} </td> | | <td class="mbox-imageright" style="vertical-align:middle"> {{{imageright}}} </td> | ||
}} | }} | ||
}} | }} | ||
Line 53: | Line 50: | ||
{{documentation}} | {{documentation}} | ||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | <!-- Add categories and interwikis to the /doc subpage, not here! -->[[Category:Templates]]</noinclude> | ||
</noinclude> |
Latest revision as of 11:36, 31 March 2023
![]() |
{{{text}}} |
The above documentation is transcluded from Template:Ombox/core/doc. (editEditors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |