Difference between revisions of "Template:Ambox/core"
From Self-sufficiency
(hardcoded small styles) |
(image sizing) |
||
Line 19: | Line 19: | ||
{{#ifeq:{{{image|}}}|none | {{#ifeq:{{{image|}}}|none | ||
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->{{td}} | | <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->{{td}} | ||
− | | <td class="mbox-image"> | + | | <td class="mbox-image">{{#switch: {{{small|}}} | left=<!--nothing--> | <div style="width:52px;"> }} |
− | + | {{#if:{{{image|}}} | |
− | + | | {{{image}}} | |
− | + | | [[Image:{{#switch:{{{type|}}} | |
− | + | | speedy = Ambox speedy deletion.png | |
− | + | | delete = Ambox deletion.png | |
− | + | | content = Ambox content.png | |
− | + | | style = Ambox style.png | |
− | + | | move = Ambox move.png | |
− | + | | protection = Ambox protection.png | |
− | + | | notice <!-- notice = default --> | |
− | + | | #default = Ambox notice.png | |
− | + | }} | {{#switch: {{{small|}}} | left=20x20px | 40x40px }} ]] | |
− | + | }}{{#switch: {{{small|}}} | left=<!--nothing--> | </div> }}</td> | |
− | + | ||
− | + | ||
− | + | ||
}} | }} | ||
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> | <td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> |
Revision as of 18:26, 10 March 2009
40x40px | {{{text}}} |
[edit]
Documentation