Difference between revisions of "Template:Side box"

From WikiChem
Jump to: navigation, search
(attempt to fix style)
(revert to previous)
 
Line 1: Line 1:
<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|}}}">
+
<table class="metadata plainlinks mbox-small{{#ifeq:{{lc:{{{position|}}}}}|left|-left}}" style="border:1px solid #aaa; background-color:#f9f9f9; {{{style|}}}">
 
<tr>
 
<tr>
 
{{#switch:{{{image|}}}
 
{{#switch:{{{image|}}}
 
|<!--BLANK-->|none={{td}}
 
|<!--BLANK-->|none={{td}}
|#default=<td style="border: none; padding: 2px 0 2px 0.9em; text-align: center;">{{{image}}}</td>
+
|#default=<td class="mbox-image">{{{image}}}</td>
 
}}
 
}}
<td style="border: none; padding: 0.25em 0.9em; width: 100%; {{{textstyle|}}}"> {{{text}}} </td>
+
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
 
{{#if:{{{imageright|}}}
 
{{#if:{{{imageright|}}}
| <td style="border: none; padding: 2px 0.9em 2px 0; text-align: center;">{{{imageright}}}</td>
+
| <td class="mbox-imageright">{{{imageright}}}</td>
 
}}
 
}}
 
</tr>
 
</tr>
 
{{#if:{{{below|}}}
 
{{#if:{{{below|}}}
| <tr><td colspan={{#if:{{{imageright|}}}|3|2}} style="border: none; padding: 0.25em 0.9em; width: 100%; {{{textstyle|}}}"> {{{below}}} </td></tr>
+
| <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class="mbox-text" style="{{{textstyle|}}}"> {{{below}}} </td></tr>
 
}}
 
}}
 
</table><noinclude>
 
</table><noinclude>
  
{{pp-template|small=yes}}
 
 
{{Documentation}}
 
{{Documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Latest revision as of 15:08, 13 August 2009

[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.