Difference between revisions of "Template:Chembox ChEMBL/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>DePiep
(sync, source code)
 
imported>DePiep
Line 1: Line 1:
 
| [[ChEMBL]]
 
| [[ChEMBL]]
| {{#if:{{{value|}}}|<span class="reflink plainlinks nourlexpansion">[https://www.ebi.ac.uk/chembldb/index.php/compound/inspect/CHEMBL{{{value}}} CHEMBL{{{value}}}]</span>{{#switch:{{{value_ref|}}}x | {{ebicite}}x=&nbsp;<sup>{{tick|7}}</sup>[[Category:Articles without EBI source]] | changedx=&nbsp;<sup>{{cross|7}}</sup> |{{{value_ref|}}}}}{{#if:{{{value1|}}}|{{#if:{{{value|}}}|,}} <span class="reflink plainlinks nourlexpansion">[https://www.ebi.ac.uk/chembldb/index.php/compound/inspect/CHEMBL{{{value1}}} CHEMBL{{{value1}}}]</span>{{#switch:{{{value1_ref|}}}x | {{ebicite}}x=&nbsp;<sup>{{tick|7}}</sup>[[Category:Articles without EBI source]] | changedx=&nbsp;<sup>{{cross|7}}</sup> |{{{value1_ref|}}}}}}}{{#if:{{{value2|}}}|{{#if:{{{value|}}}{{{value1|}}}|,}} <span class="reflink plainlinks nourlexpansion">[https://www.ebi.ac.uk/chembldb/index.php/compound/inspect/CHEMBL{{{value2}}} CHEMBL{{{value2}}}]</span>{{#switch:{{{value2_ref|}}}x | {{ebicite}}x=&nbsp;<sup>{{tick|7}}</sup>[[Category:Articles without EBI source]] | changedx=&nbsp;<sup>{{cross|7}}</sup> |{{{value2_ref|}}}}}}}{{#if:{{{value3|}}}|{{#if:{{{value|}}}{{{value1|}}}{{{value2|}}}|,}} <span class="reflink plainlinks nourlexpansion">[https://www.ebi.ac.uk/chembldb/index.php/compound/inspect/CHEMBL{{{value3}}} CHEMBL{{{value3}}}]</span>{{#switch:{{{value3_ref|}}}x | {{ebicite}}x=&nbsp;<sup>{{tick|7}}</sup>[[Category:Articles without EBI source]] | changedx=&nbsp;<sup>{{cross|7}}</sup> |{{{value3_ref|}}}}}}}{{#if:{{{value4|}}}|{{#if:{{{value|}}}{{{value1|}}}{{{value2|}}}{{{value3|}}}|,}} <span class="reflink plainlinks nourlexpansion">[https://www.ebi.ac.uk/chembldb/index.php/compound/inspect/CHEMBL{{{value4}}} CHEMBL{{{value4}}}]</span>{{#switch:{{{value4_ref|}}}x | {{ebicite}}x=&nbsp;<sup>{{tick|7}}</sup>[[Category:Articles without EBI source]] | changedx=&nbsp;<sup>{{cross|7}}</sup> |{{{value4_ref|}}}}}}}{{#if:{{{value5|}}}|{{#if:{{{value|}}}{{{value1|}}}{{{value2|}}}{{{value3|}}}{{{value4|}}}|,}} <span class="reflink plainlinks nourlexpansion">[https://www.ebi.ac.uk/chembldb/index.php/compound/inspect/CHEMBL{{{value5}}} CHEMBL{{{value5}}}]</span>{{#switch:{{{value5_ref|}}}x | {{ebicite}}x=&nbsp;<sup>{{tick|7}}</sup>[[Category:Articles without EBI source]] | changedx=&nbsp;<sup>{{cross|7}}</sup> |{{{value5_ref|}}}}}}}{{#if:{{{value10|}}}|{{#if:{{{value|}}}|,&nbsp;}}{{{value10}}} }}{{#if:{{{value11|}}}|{{#if:{{{value|}}}{{{value10|}}}|,&nbsp;}}{{{value11}}} }}
+
| {{#invoke:String|replace|source=<!-- (remove any initial linebreak)
 +
-->{{{ChEMBL|}}}{{{ChEMBL1|}}}{{{ChEMBL2|}}}{{{ChEMBL3|}}}{{{ChEMBL4|}}}{{{ChEMBL5|}}}{{{ChEMBL6|}}}{{{ChEMBL7|}}}<!--
 +
-->{{#if:{{{ChEMBLs|}}}|<br/>_BRK_{{{ChEMBLs|}}} }}<!--
 +
-->{{#if:{{{CASOther|}}}|<br/>_BRK_{{{CASOther|}}} }}
 +
|pattern=^%<br%s*%/?%>|replace=$BRK-REPL$|plain=false|no_category=true}}
 +
<!-- keep newline -->
 +
 
 
|-<noinclude>{{documentation}}</noinclude>
 
|-<noinclude>{{documentation}}</noinclude>

Revision as of 01:01, 22 December 2014

| ChEMBL |

|-