Template:Chembox CASNo/format: Difference between revisions
Appearance
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|}}}: }}{{#if: {{ |
|#default={{#if:{{{ix_label|}}}|{{{ix_label|}}}: }}{{#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|}}} | {{{comment}}}}}<!-- |
-->{{#if:{{{comment|}}} | {{{comment}}}}}<!-- |
||
-->{{{botref|}}}<!-- |
-->{{{botref|}}}<!-- |
Revision as of 19:31, 12 May 2021
This template is used on approximately 14,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
Usage
- See also
- {{Cascite}}