Template:Metabox: Difference between revisions

Revert - bugfix does not solve problem entirely.
sims>LostInRiverview
(Implementing bugfix as suggested by Icemandeaf - Template should no longer overlap or clip into other elements)
sims>LostInRiverview
(Revert - bugfix does not solve problem entirely.)
Line 5:
|text = To avoid large-scale disruption and unnecessary server load, consider testing your changes elsewhere, such as by copying the source code of this template and pasting it into your [[w:Help:User page|user space]], or in the [[The Sims Wiki:Sandbox|sandbox]]. Consider proposing your changes on the [[Template talk:Metabox|talk page]] before editing this template.
}}}}
</noinclude>{{#ifeq:{{{size}}}|small|<div style="display: table-cell;">
<div style="background: #{{#if:{{{backgroundcolor|}}}|{{{backgroundcolor}}}|{{MetaboxBG|{{{type}}} }} }}; border: 1px solid #E0E0E0; text-align: left; width: {{#if:{{{width|}}}|{{{width}}}%|40%}}; box-shadow: 1px 1px 3px #777; min-height: {{{imagesize|45}}}px; margin-bottom: 1px;">{{#if:{{{image|}}}|<div style="float: left; width: {{#expr: {{{imagesize|45}}} + 5}}px; margin-left: 3px; position: absolute;">[[File:{{{image}}}|center|{{#if:{{{imagesize|}}}|{{{imagesize}}}px|45px}}]]</div>|}}<div style="background: #{{#if:{{{headercolor|}}}|{{{headercolor}}}|{{#if:{{{bordercolor|}}}|{{{bordercolor}}}|{{MetaboxHeader|{{{type}}} }} }} }}; width: auto; margin: 3px;{{#if:{{{image|}}}| padding-left:{{#expr: {{{imagesize|45}}} + 5}}px;| padding-left: 5px;}} font-side: 95%; font-weight: bold; text-shadow: 1px 1px 2px #333; color: white; box-shadow: 1px 1px 3px #777;">{{#if: {{{headline|}}}|{{{headline}}}|&nbsp;}}</div><div style="padding-bottom: 3px; {{#if:{{{image|}}}|margin-left: {{#expr: {{{imagesize|45}}} + 5}}px;|margin-left: 5px;}} margin-right: 5px; font-size: 90%;">
{{{text}}}</div>
</div></div>
|<center><div style="display: table-cell;">
<div style="background: #{{#if:{{{backgroundcolor|}}}|{{{backgroundcolor}}}|{{MetaboxBG|{{{type}}} }} }}; border: 1px solid #E0E0E0; text-align: left; width: {{#if: {{{width|}}}|{{{width}}}%|85%}}; box-shadow: 1px 1px 3px #777; min-height: {{{imagesize|60}}}px; margin-bottom: 1px;">{{#if:{{{image|}}}|<div style="float: left; width: {{#expr: {{{imagesize|60}}} + 5}}px; margin-left: 5px; position: absolute;">[[File:{{{image}}}|center|{{#if:{{{imagesize|}}}|{{{imagesize}}}px|60px}}]]</div>|}}<div style="background: #{{#if:{{{headercolor|}}}|{{{headercolor}}}|{{#if:{{{bordercolor|}}}|{{{bordercolor}}}|{{MetaboxHeader|{{{type}}} }} }} }}; width: auto; margin: 5px;{{#if:{{{image|}}}| padding-left:{{#expr: {{{imagesize|60}}} + 5}}px;| padding-left: 5px;}} font-side: 110%; font-weight: bold; text-shadow: 1px 1px 2px #333; color: white; box-shadow: 1px 1px 3px #777;">{{#if: {{{headline|}}}|{{{headline}}}|&nbsp;}}</div><div style="padding-bottom: 5px;{{#if:{{{image|}}}|margin-left: {{#expr: {{{imagesize|60}}} + 10}}px;|margin-left: 5px;}} margin-right: 5px;">
{{{text}}}</div>
{{clrl}}</div></div></center>
}}<includeonly>{{#if:{{{cat|}}}|{{#ifeq:{{NAMESPACE}}| | [[Category:{{{cat}}}|{{#if:{{{catsort|}}}|{{{catsort}}}|{{{PAGENAME}}}}}]]|}}|}}{{#if:{{{nocat|}}} | | {{#ifeq:{{NAMESPACE}}|Template|[[Category:Templates using Metabox|{{PAGENAME}}]]|}}}}</includeonly><noinclude>
{{Documentation}}
Anonymous user