Template:Imbox: Difference between revisions
From All Skies Encyclopaedia
imported>Davidgothberg (Decreasing the empty left image cell from a total of 3px width to 1px width. Can't be 0px since then boxes who are not filled with text don't stay 80% wide.) |
imported>Davidgothberg (Updating to use "mbox-*" class names instead of "imbox-*". See Template talk:Mbox.) |
||
Line 15: | Line 15: | ||
{{#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: 0px; width: 1px;"></td> |
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 0px; width: 1px;"></td> |
||
| <td class=" |
| <td class="mbox-image"> |
||
{{#if:{{{image|}}} |
{{#if:{{{image|}}} |
||
| {{{image}}} |
| {{{image}}} |
||
Line 32: | Line 32: | ||
}}</td> |
}}</td> |
||
}} |
}} |
||
<td class=" |
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td> |
||
{{#if:{{{imageright|}}} |
{{#if:{{{imageright|}}} |
||
| <td class=" |
| <td class="mbox-imageright"> {{{imageright}}} </td> |
||
}} |
}} |
||
</tr> |
</tr> |
||
{{#if:{{{below|}}} |
{{#if:{{{below|}}} |
||
| <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class=" |
| <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class="mbox-text" style="{{{textstyle|}}}"> {{{below}}} </td></tr> |
||
}} |
}} |
||
</table><noinclude> |
</table><noinclude> |
||
{{pp-template|small=yes}} |
{{pp-template|small=yes}} |
||
{{ |
{{documentation}} |
||
<!-- Add categories and |
<!-- Add categories and interwikis to the /doc subpage, not here! --> |
||
</noinclude> |
</noinclude> |