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

From blackwiki
Jump to navigation Jump to search
imported>DePiep
m
imported>DePiep
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="word-wrap:break-word; margin-top:0.6em; border-bottom:1px solid #ccc;">InChI={{#invoke:String|replace|source={{{InChI|}}} |pattern=^InChI%=|replace=|plain=false}}<!--
+
<div style="border-top:1px solid #ccc; padding:0.2em 0 0.2em 1.5em; text-align:left;"><!--
-->{{#if:{{{InChI_comment|}}}|&#x20;{{{InChI_comment}}} }}<!--
+
 
-->{{{InChI_Ref|}}}<!--
+
-->{{#if:{{{InChI|}}} |<div style="word-wrap:break-word; text-indent:-1.5em; font-size:11px; line-height:120%;">{{#if:{{{ix_label|}}} |{{{ix_label|}}}:&#x20;}}InChI={{#invoke:String|replace|source={{{InChI|}}} |pattern=^InChI%=|replace=|plain=false}}<!--
-->{{#if:{{{InChIkey|}}}|<br/>Key:&nbsp;{{{InChIkey}}} }}<!--
+
-->{{{InChI_Ref|}}}</div>}}<!--
-->{{#if:{{{InChIkey_comment|}}}|&#x20;{{{InChIkey_comment}}} }}<!--
+
 
-->{{{InChIkey_Ref|}}}</div><!--
+
-->{{#if:{{{InChIkey|}}} |<div style="word-wrap:break-word; text-indent:-1.5em; font-size:11px; line-height:120%;">{{#if:{{{InChI|}}} | |{{#if:{{{ix_label|}}} |{{{ix_label|}}}:&#x20;}}}}Key:&nbsp;{{{InChIkey}}}<!--
--><noinclude>
+
-->{{{InChIkey_Ref|}}}</div>}}<!--
{{documentation}}
+
 
</noinclude>
+
--></div><!--
 +
at least one of {InChI, InChIKey} must be present (empty data may show bad)
 +
with InChI, ix_label and InChI_comment are equal
 +
--><noinclude>{{documentation}}</noinclude>

Latest revision as of 23:50, 19 March 2017