Difference between revisions of "Template:Chembox InChI/format"

From blackwiki
Jump to navigation Jump to search
imported>DePiep
(Formatting InChI, SMILES, JMol. Remove deprecated parameters. Fix footer logic. +minor changes. See talk)
imported>DePiep
(Format InChI and SMILES long strings. See talk:Chemical_infobox#Chembox_changes (15 December 2015))
Line 1: Line 1:
<div style="margin-bottom:0.4em; border-top:1px solid #ccc; padding-left:1.5em;"><!--
+
<div style="border-top:1px solid #ccc; padding:0.2em 0 0.2em 1.6em; text-align:left;"><!--
  
-->{{#if:{{{InChI|}}} |<div style="text-indent:-1.5em; padding-top:0.225em; line-height:1.15em;">{{#if:{{{InChI_comment|}}} |{{{InChI_comment}}}:&#x20;}}InChI={{#invoke:String|replace|source={{{InChI|}}} |pattern=^InChI%=|replace=|plain=false}}<!--
+
-->{{#if:{{{InChI|}}} |<div style="word-wrap:break-word; text-indent:-1.5em; font-size:11px; line-height:120%;">{{#if:{{{InChI_comment|}}} |{{{InChI_comment}}}:&#x20;}}InChI={{#invoke:String|replace|source={{{InChI|}}} |pattern=^InChI%=|replace=|plain=false}}<!--
 
-->{{{InChI_Ref|}}}</div>}}<!--
 
-->{{{InChI_Ref|}}}</div>}}<!--
  
-->{{#if:{{{InChIkey|}}} |<div style="text-indent:-1.5em; padding-top:0.225em; line-height:1.15em;">{{#if:{{{InChI|}}} | |{{#if:{{{InChI_comment|}}} |{{{InChI_comment}}}:&#x20;}}}}Key:&nbsp;{{{InChIkey}}}<!--
+
-->{{#if:{{{InChIkey|}}} |<div style="word-wrap:break-word; text-indent:-1.5em; font-size:11px; line-height:120%;">{{#if:{{{InChI|}}} | |{{#if:{{{InChI_comment|}}} |{{{InChI_comment}}}:&#x20;}}}}Key:&nbsp;{{{InChIkey}}}<!--
 
-->{{{InChIkey_Ref|}}}</div>}}<!--
 
-->{{{InChIkey_Ref|}}}</div>}}<!--
  

Revision as of 19:10, 15 December 2015