Jump to content

Template:Chembox CASNo/format: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
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
Tag: Reverted
live test for linking CAS RN based on reference in WD item, see talk page
Tag: Reverted
Line 2: Line 2:
|=
|=
|none|None={{#if:{{{ix_label|}}}|{{{ix_label|}}}: }}{{{localValue|}}}
|none|None={{#if:{{{ix_label|}}}|{{{ix_label|}}}: }}{{{localValue|}}}
|#default={{#if:{{{ix_label|}}}|{{{ix_label|}}}:&#x20;}}{{#if: {{wd|property|sourced| |P231}} | <span title="commonchemistry.cas.org">[https://commonchemistry.cas.org/detail?cas_rn={{{localValue}}} {{{localValue}}}]</span> | {{{localValue}}} }}<!--
|#default={{#if:{{{ix_label|}}}|{{{ix_label|}}}:&#x20;}}{{#if: {{#invoke:Sandbox/Leyo/CommonChemistry|entry_CAS_Common_Chemistry|cas={{{localValue}}}}} | <span title="commonchemistry.cas.org">[https://commonchemistry.cas.org/detail?cas_rn={{{localValue}}} {{{localValue}}}]</span>[[Category:Chembox CAS registry number linked]] | {{{localValue}}}[[Category:Chembox CAS registry number not linked]] }}<!--
-->{{#if:{{{comment|}}} |&#x20;{{{comment}}}}}<!--
-->{{#if:{{{comment|}}} |&#x20;{{{comment}}}}}<!--
-->{{{botref|}}}<!--
-->{{{botref|}}}<!--

Revision as of 19:31, 12 May 2021