Vorlage:Ombox: Unterschied zwischen den Versionen
Copying from the /sandbox. This version is derived from the imbox since the imbox code is much closer to the needs of the ombox than the ambox is. See talk page for explanation/discussion.
imported>Happy-melon K (moved Template:Dmbox to Template:Ombox: per consensus at Template talk:Imbox#Other spaces message boxes) |
imported>Davidgothberg (Copying from the /sandbox. This version is derived from the imbox since the imbox code is much closer to the needs of the ombox than the ambox is. See talk page for explanation/discussion.) |
||
Zeile 1: | Zeile 1: | ||
<table class=" | <table class="plainlinks" style="margin: 3px 10%; border-collapse: collapse; background: #f9f9f9; | ||
{{#switch:{{{type|}}} | |||
| speedy = border: 2px solid #b22222; background: #fee; | |||
| delete = border: 2px solid #b22222; | |||
| content = border: 1px solid #f28500; | |||
| style = border: 1px solid #f4c430; | |||
| move = border: 1px solid #9932cc; | |||
| protection = border: 2px solid #bba; | |||
| notice <!-- notice = default --> | |||
| #default = border: 1px solid #aaa; | |||
}} {{{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 style="border: none; padding: 1px;"></td> | |||
| <td style="border: none; padding: 2px 0px 2px 0.9em; text-align: center;"> | |||
| speedy = [[Image: | {{#if:{{{image|}}} | ||
| delete | | {{{image}}} | ||
| {{#switch:{{{type|}}} | |||
| content = [[Image: | | speedy = [[Image:Imbox speedy deletion.png|40x40px]] | ||
| style = [[Image: | | delete = [[Image:Imbox deletion.png|40x40px]] | ||
| move | | content = [[Image:Imbox content.png|40x40px]] | ||
| style = [[Image:Imbox style.png|40x40px]] | |||
| protection = [[Image: | | move = [[Image:Imbox move.png|40x40px]] | ||
| notice | | protection = [[Image:Imbox protection.png|40x40px]] | ||
| notice <!-- notice = default --> | |||
| #default = | | #default = [[Image:Imbox notice.png|40x40px]] | ||
}}</ | }} | ||
}} | }}</td> | ||
<td | }} | ||
<td style="border: none; padding: 0.25em 0.9em; width: 100%; {{{textstyle|}}}"> {{{text}}} </td> | |||
{{#if:{{{imageright|}}} | {{#if:{{{imageright|}}} | ||
| <td style="border: none; padding: 2px 0.9em 2px 0px; text-align: center;"> {{{imageright}}} </td> | |||
}} | }} | ||
</tr> | </tr> | ||
</table><noinclude> | </table><noinclude> | ||
<!-- {{pp-template|small=yes}} --> | |||
{{Documentation}} | {{Documentation}} | ||
<!-- Add categories and | <!-- Add categories and inter-wikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |