Difference between revisions of "Template:Chembox image sbs"

From blackwiki
Jump to navigation Jump to search
imported>Beetstra
(alignment)
imported>DMacks
(apply centering to cell contents rather than to the image itself. Reduces number of <div> layers in generated HTML, which reduces spaces that browsers render between divs)
Line 1: Line 1:
<includeonly>{{#if:{{{par_valueL|}}}| {{!}} style="{{{par_styleL|padding: 5px;}}}" {{!}} [[File:{{{par_valueL}}}|{{{par_sizeL}}}|center|alt={{{par_altL}}}|{{{par_nameL}}}]]{{#if:{{{par_captionL|}}}|<br /><div align="center">{{{par_captionL|}}}</div>}}
+
<includeonly>{{#if:{{{par_valueL|}}}| {{!}} align="center" style="{{{par_styleL|padding: 5px;}}}" {{!}} [[File:{{{par_valueL}}}|{{{par_sizeL}}}|alt={{{par_altL}}}|{{{par_nameL}}}]]{{#if:{{{par_captionL|}}}|<br /><div align="center">{{{par_captionL|}}}</div>}}
{{#if:{{{par_valueR|}}}| {{!}} style="{{{par_styleR|padding: 5px;}}}" {{!}} [[File:{{{par_valueR}}}|{{{par_sizeR}}}|center|alt={{{par_altR}}}|{{{par_nameR}}}]]{{#if:{{{par_captionR|}}}|<br /><div align="center">{{{par_captionR|}}}</div>}} }} }}
+
{{#if:{{{par_valueR|}}}| {{!}} align="center" style="{{{par_styleR|padding: 5px;}}}" {{!}} [[File:{{{par_valueR}}}|{{{par_sizeR}}}|alt={{{par_altR}}}|{{{par_nameR}}}]]{{#if:{{{par_captionR|}}}|<br /><div align="center">{{{par_captionR|}}}</div>}} }} }}
 
|-</includeonly><noinclude>
 
|-</includeonly><noinclude>
  
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 13:22, 24 November 2010


Template documentation[view] [edit] [history] [purge]

Usage

In {{Chembox}}, for images side by side. See also {{Chembox image}}

See also