Difference between revisions of "Template:Chembox PubChem"

From blackwiki
Jump to navigation Jump to search
imported>DePiep
(add documentation page, manage whitespace, let text be seen., replaced: {{PAGENAME}} → {{documentation}}, removed: {{intricate}}, includeonly (2) using AWB)
imported>DePiep
(Update Template:Chembox suite templates per WT:Chembox changes c.s.)
Line 1: Line 1:
 
| [[PubChem]]
 
| [[PubChem]]
| {{#if:{{{value|}}}|<span class="reflink plainlinks nourlexpansion">[http://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?cid={{{value}}} {{{value}}}]</span>{{#if:{{{value_comment|}}}|&nbsp;{{{value_comment}}} }}{{#switch:{{{value_ref|}}}x | {{pubchemcite}}x=&nbsp;<sup>{{tick|7}}</sup> | changedx=&nbsp;<sup>{{cross|7}}</sup> }}}}{{#if:{{{value1|}}}|{{#if:{{{value|}}}|,}} <span class="reflink plainlinks nourlexpansion">[http://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?cid={{{value1}}} {{{value1}}}]</span>{{#if:{{{value1_comment|}}}|&nbsp;{{{value1_comment}}} }}{{#switch:{{{value1_ref|}}}x | {{pubchemcite}}x=&nbsp;<sup>{{tick|7}}</sup> | changedx=&nbsp;<sup>{{cross|7}}</sup> }}}}{{#if:{{{value2|}}}|{{#if:{{{value|}}}{{{value1|}}}|,}} <span class="reflink plainlinks nourlexpansion">[http://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?cid={{{value2}}} {{{value2}}}]</span>{{#if:{{{value2_comment|}}}|&nbsp;{{{value2_comment}}} }}{{#switch:{{{value2_ref|}}}x | {{pubchemcite}}x=&nbsp;<sup>{{tick|7}}</sup> | changedx=&nbsp;<sup>{{cross|7}}</sup> }}}}{{#if:{{{value3|}}}|{{#if:{{{value|}}}{{{value1|}}}{{{value2|}}}|,}} <span class="reflink plainlinks nourlexpansion">[http://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?cid={{{value3}}} {{{value3}}}]</span>{{#if:{{{value3_comment|}}}|&nbsp;{{{value3_comment}}} }}{{#switch:{{{value3_ref|}}}x | {{pubchemcite}}x=&nbsp;<sup>{{tick|7}}</sup> | changedx=&nbsp;<sup>{{cross|7}}</sup> }}}}{{#if:{{{value4|}}}|{{#if:{{{value|}}}{{{value1|}}}{{{value2|}}}{{{value3|}}}|,}} <span class="reflink plainlinks nourlexpansion">[http://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?cid={{{value4}}} {{{value4}}}]</span>{{#if:{{{value4_comment|}}}|&nbsp;{{{value4_comment}}} }}{{#switch:{{{value4_ref|}}}x | {{pubchemcite}}x=&nbsp;<sup>{{tick|7}}</sup> | changedx=&nbsp;<sup>{{cross|7}}</sup> }}}}{{#if:{{{value5|}}}|{{#if:{{{value|}}}{{{value1|}}}{{{value2|}}}{{{value3|}}}{{{value4|}}}|,}} <span class="reflink plainlinks nourlexpansion">[http://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?cid={{{value5}}} {{{value5}}}]</span>{{#if:{{{value5_comment|}}}|&nbsp;{{{value5_comment}}} }}{{#switch:{{{value5_ref|}}}x | {{pubchemcite}}x=&nbsp;<sup>{{tick|7}}</sup> | changedx=&nbsp;<sup>{{cross|7}}</sup> }}}}{{#if:{{{value10|}}}|{{#if:{{{value|}}}|,&nbsp;}}{{{value10}}} }}{{#if:{{{value11|}}}|{{#if:{{{value|}}}{{{value10|}}}|,&nbsp;}}{{{value11}}} }}
+
| {{#invoke:String|replace|source=<!-- (remove any initial linebreak)
 +
-->{{{PubChem|}}}{{{PubChem1|}}}{{{PubChem2|}}}{{{PubChem3|}}}{{{PubChem4|}}}{{{PubChem5|}}}<!--
 +
-->{{#if:{{{PubChemOther|}}}|<br/>{{{PubChemOther|}}} }}
 +
|pattern=^%<br%s*%/?%s*%>|replace=|plain=false|no_category=true}}
 +
<!-- keep newline -->
 +
 
 
|-<noinclude>{{documentation}}</noinclude>
 
|-<noinclude>{{documentation}}</noinclude>

Revision as of 14:03, 6 February 2015

| PubChem |

|-

Template documentation[view] [edit] [history] [purge]
Note
|PubChem_Ref=... is unused and deprecated. Can be removed from article's {{Chembox}}.
{{Pubchemcite}} is deprecated. (|PubChem= is not tracked any more by CheMoBot).
More via {{cascite}}.