Difference between revisions of "Template:Ambox/core"
From Self-sufficiency
m (1 revision) |
(core breakout) |
||
(15 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | <table class="metadata plainlinks ambox {{#switch:{{{small|}}} | + | <table class="metadata plainlinks ambox {{#switch:{{{small|}}}|left=mbox-small-left}} |
− | | left = mbox-small-left | + | {{#switch:{{{type|}}} |
− | }} {{#switch:{{{type|}}} | + | |
| speedy = ambox-speedy | | speedy = ambox-speedy | ||
| delete = ambox-delete | | delete = ambox-delete | ||
Line 12: | Line 11: | ||
}}" style="{{{style|}}}"> | }}" style="{{{style|}}}"> | ||
<tr> | <tr> | ||
− | {{# | + | {{#ifeq:{{{image|}}}|none |
− | | | + | | <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->{{td}} |
− | | | + | | <td class="mbox-image"><div style="width: 52px;"> |
− | | | + | {{#ifeq:{{{image|}}}|blank |
− | + | | | |
− | + | | {{#if:{{{image|}}} | |
− | + | | {{{image}}} | |
− | + | | {{#switch:{{{type|}}} | |
− | + | | speedy = [[Image:Ambox speedy deletion.png|40x40px]] | |
− | + | | delete = [[Image:Ambox deletion.png|40x40px]] | |
− | + | | content = [[Image:Ambox content.png|40x40px]] | |
− | + | | style = [[Image:Ambox style.png|40x40px]] | |
− | + | | move = [[Image:Ambox move.png|40x40px]] | |
− | + | | protection = [[Image:Ambox protection.png|40x40px]] | |
− | + | | notice <!-- notice = default --> | |
− | + | | #default = [[Image:Ambox notice.png|40x40px]] | |
− | + | }} | |
− | + | }} | |
− | + | }}</div></td> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | }} | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
}} | }} | ||
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> | <td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> | ||
Line 45: | Line 35: | ||
| {{#ifeq:{{{imageright|}}}|none | | {{#ifeq:{{{imageright|}}}|none | ||
| <!-- No image. --> | | <!-- No image. --> | ||
− | | <td class="mbox-imageright"> | + | | <td class="mbox-imageright"> {{{imageright}}} </td> |
− | + | ||
− | + | ||
− | + | ||
}} | }} | ||
}} | }} | ||
</tr> | </tr> | ||
− | </table><!-- | + | </table><!-- Detect and report usage with faulty "type" parameter: |
− | Detect and report usage with faulty "type" parameter: | + | |
-->{{#switch:{{{type|}}} | -->{{#switch:{{{type|}}} | ||
| <!-- No type fed, is also valid input --> | | <!-- No type fed, is also valid input --> | ||
Line 64: | Line 50: | ||
| notice = <!-- Do nothing, valid "type" --> | | notice = <!-- Do nothing, valid "type" --> | ||
| #default = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --> | | #default = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --> | ||
− | |||
− | |||
− | |||
− | |||
}}<noinclude> | }}<noinclude> | ||
− | {{pp-template}} | + | |
− | {{ | + | {{pp-template|small=yes}} |
+ | {{Documentation}} | ||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |
Revision as of 15:01, 10 March 2009
{{{text}}} |
[edit]
Documentation