Jump to content

Template:Infobox drug/formatCASnumber: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
per edit request on talk page - update external link
not creating a link to Common Chemistry if the CAS RN in the WD item does not have a reference (or if there is no CAS RN in the WD item at all); the link is unfortunately still created if the WD reference is NOT Common Chemistry
Line 3: Line 3:
|none|None={{#if:{{{ix_label|}}}|{{{ix_label|}}}: }}{{{localValue|}}}{{main other|1={{#ifeq:{{{index|0}}}|0|[[Category:Chemicals that do not have a CAS registry number assigned]]
|none|None={{#if:{{{ix_label|}}}|{{{ix_label|}}}: }}{{{localValue|}}}{{main other|1={{#ifeq:{{{index|0}}}|0|[[Category:Chemicals that do not have a CAS registry number assigned]]
|[[Category:Chemicals (indexed) that do not have a CAS registry number assigned]]}}}}
|[[Category:Chemicals (indexed) that do not have a CAS registry number assigned]]}}}}
|#default={{#if:{{{ix_label|}}} |{{{ix_label|}}}:&nbsp;}}<span title="www.commonchemistry.cas.org">[https://commonchemistry.cas.org/detail?cas_rn={{{localValue}}} {{{localValue}}}]</span>{{{botref|}}} {{{comment|}}}<!--
|#default={{#if:{{{ix_label|}}} |{{{ix_label|}}}:&nbsp;}}{{#if: {{wd|property|sourced| |P231}} | <span title="commonchemistry.cas.org">[https://commonchemistry.cas.org/detail?cas_rn={{{localValue}}} {{{localValue}}}]</span> | {{{localValue}}} }}{{{botref|}}} {{{comment|}}}<!--
-->}}<!--
-->}}<!--



Revision as of 21:26, 5 May 2021