Difference between revisions of "Template:Side box"

From WikiChem
Jump to: navigation, search
(adjust style)
(attempt to fix style)
Line 1: Line 1:
<table class="metadata plainlinks" style="border:1px solid #aaa; background-color:#f9f9f9; width: 238px; font-size: 85%; float: right; clear: both; margin: 0 0 1em 1em; line-height: 1.25em;{{{style|}}}">
+
<table style="border:1px solid #aaa; background-color:#f9f9f9; width: 238px; font-size: 85%; float: right; clear: both; margin: 0 0 1em 1em; line-height: 1.25em;{{{style|}}}">
 
<tr>
 
<tr>
 
{{#switch:{{{image|}}}
 
{{#switch:{{{image|}}}
 
|<!--BLANK-->|none={{td}}
 
|<!--BLANK-->|none={{td}}
|#default=<td class="mbox-image">{{{image}}}</td>
+
|#default=<td style="border: none; padding: 2px 0 2px 0.9em; text-align: center;">{{{image}}}</td>
 
}}
 
}}
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
+
<td style="border: none; padding: 0.25em 0.9em; width: 100%; {{{textstyle|}}}"> {{{text}}} </td>
 
{{#if:{{{imageright|}}}
 
{{#if:{{{imageright|}}}
| <td class="mbox-imageright">{{{imageright}}}</td>
+
| <td style="border: none; padding: 2px 0.9em 2px 0; text-align: center;">{{{imageright}}}</td>
 
}}
 
}}
 
</tr>
 
</tr>
 
{{#if:{{{below|}}}
 
{{#if:{{{below|}}}
| <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class="mbox-text" style="{{{textstyle|}}}"> {{{below}}} </td></tr>
+
| <tr><td colspan={{#if:{{{imageright|}}}|3|2}} style="border: none; padding: 0.25em 0.9em; width: 100%; {{{textstyle|}}}"> {{{below}}} </td></tr>
 
}}
 
}}
 
</table><noinclude>
 
</table><noinclude>

Revision as of 04:21, 27 July 2009

{{{text}}}
[edit] [purge] Template-info-500px.png Template documentation


Usage

Parameters

Examples

See also

Error creating thumbnail: Unable to save thumbnail to destination
Wikipedia-logo.png This template was originally imported from Wikipedia, specifically this version of the template "Template:Side box". Please see the history page on Wikipedia for the original authors. This WikiChem template may have been modified since it was imported. It is licensed under the Creative Commons Attribution–Share Alike 3.0 Unported license.