Template talk:Infobox drug

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Pppery (talk | contribs) at 20:48, 17 February 2022. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Infobox drug: Changes log
  • 2016-12-08: add ECHA InfoCard from Wikidata P2566 (// with Chembox)
  • 2017-02-14: add licence_CA, improve showing+link of DailyMedID. licence_US link broken at FDA site.
  • 2017-02-16: PubChem (CID) add option 'none'. Shows & categorised (also: CASnr, Chemspider, ATCcode), simplyfy ATC/vet, fix ATC issues, always show PubChem SID, added licenSe_EU, licenSe_CA, general code cleanup
  • 2017-02-16, indexes (2nd identifiers): use unbulleted list not <br />, use /formatX subtemplates, use standard formatting, rename some index params (hard removal)
  • 2017-02-16, tracking categories: track 2nd identifiers & indexes to help maintenance checking (incl. Wikidata), rename and deprecate some, redo the track subtemplate, add default tracking option (when no need for new category)
  • 2017-05-10: add physiological data set (endogenous drugs); parameter metabolites possible in two sections.
  • 2017-05-19: reorder to position of pronunciation in rare situation; metabolism maybe repeated in contexts; add option component #5.
  • 2017-07-20: add new parameter legal_BR, legal_BR_comment with options (Brazil)
  • 2017-08-18: add INN_EMA to allow EMA-licence showing for differently written INN.
  • 2017-08-25: add local INN variants AAN, BAN, JAN, USAN as synonyms; move synonyms into clinical data section.
  • 2017-10-15: add cat 'Drug has EMA link', rm cat 'Drug has EU (EMA) licence'. See EMA talks.
  • 2017-10-21: licence_EU and EMA: improve external link (see also subtemplate)
  • 2018-03-08: adjust TemplatePar error message
  • 2018-03-31: add tracking physiologica data
  • 2018-03-31: add section gene therapy; with 4 parameters; tracking
  • 2018-03-31: add parameter gt_target_gene
  • 2018-04-14: adjust labels in gene therapy (gt_*)
  • 2018-04-18: add links 'edit at WD' to E-number and ECHA chart ID
  • 2018-08-20: vaccine_type: allow free text
  • 2019-04-22: add DTXSID, DTXSID2 for CompTox database el (uses P3117)
  • 2020-07-05: Category:Infobox-drug molecular-weight unexpected-character: +main other

Biosimilars (and biologics)

This template is being used for articles on medicines with biosimilars, such as Rituxan and the drugs <sic> that are biosimilars for it. Template:Infobox_drug#Monoclonal_antibody_drugs is helpful. However, field synonyms (displayed as "Other names") isn't appropriate; biosimilars and generics aren't the same thing. I propose a new field: biosimilars. Consensus? --50.201.195.170 (talk) 00:21, 30 June 2021 (UTC)[reply]

That is biosimilar. -DePiep (talk) 05:50, 30 June 2021 (UTC)[reply]
What? That article is about biosimilars, but so what? --50.201.195.170 (talk) 07:14, 30 June 2021 (UTC)[reply]
I was looking up what "biosimilar" is, and if we even have an article about it. And probably the article link will be the (left hand) label if this data is added. -DePiep (talk) 11:06, 30 June 2021 (UTC)[reply]
Ah, OK! Yes, that would be appropriate for the left hand table link. So do we have consensus? --50.201.195.170 (talk) 07:04, 7 July 2021 (UTC)[reply]
I'd like to read more specialists (I am not, in med).
For now, one could use this route: [1]. -DePiep (talk) 13:47, 7 July 2021 (UTC)[reply]

Proposal

Infobox drug
Clinical data
Other namessynonyms
Biosimilarsrituximab-abbs, rituximab-pvvr, rituximab-arrx
AHFS/Drugs.comMonograph
  • Add data point/parameter "biosimilars" (distinct from synonyms, trade maks etc.). Would take text input unedited (shows as entered). See Rituximab. -DePiep (talk) 13:47, 7 July 2021 (UTC)[reply]
Between |synonyms= and |Drugs.com=, see demo → -DePiep (talk) 12:45, 11 July 2021 (UTC)[reply]

Template-protected edit request on 11 July 2021

Please replace all code from {{Infobox drug/sandbox}} into {{Infobox drug}} (diff).

Change
Add parameter |biosimilars= by request § Biosimilars (and biologics). Testcase. DePiep (talk) 13:09, 11 July 2021 (UTC)[reply]
To editors DePiep and Ozzie10aaaa:  done, and thank you very much! P.I. Ellsworth  ed. put'r there 16:01, 11 July 2021 (UTC)[reply]
Applied in Rituxan. -DePiep (talk) 16:08, 11 July 2021 (UTC)[reply]

doc

@DePiep: Is the |biosimilars= parameter officially supported? I don't see it in the documentation. Thanks. --Whywhenwhohow (talk) 04:51, 30 December 2021 (UTC)[reply]

It is, as used in article and as advocated above. So one can adjust the doc. -DePiep (talk) 06:09, 30 December 2021 (UTC)[reply]

Template-protected edit request on 29 August 2021

I recommend capitalizing the "what" in "what is this?" Regards Hildeoc (talk) 18:11, 29 August 2021 (UTC)[reply]

 Not done for now: please establish a consensus for this alteration before using the {{edit template-protected}} template. Similar annotations, like that applied by {{Citation needed}} and similar templates, start with a lower-case letter. This may be a little different, in that it ends in a question mark, but {{Compared to?}} and {{From whom?}} also start with lower-case letters. – Jonesey95 (talk) 15:37, 31 August 2021 (UTC)[reply]

Add HTTPS for chemspider

Please use HTTPS for chemspider. For example, use
https://www.chemspider.com/Chemical-Structure.44208824.html
instead of
http://www.chemspider.com/Chemical-Structure.44208824.html
Whywhenwhohow (talk) 22:31, 12 September 2021 (UTC)[reply]

@DePiep: Any plans to make this change? Thanks. --Whywhenwhohow (talk) 04:55, 30 December 2021 (UTC)[reply]
When read as a question, the answer is: shortly, hadn't noticed this one before. -DePiep (talk) 06:00, 30 December 2021 (UTC)[reply]
 Done (30 Dec) -DePiep (talk) 18:39, 6 January 2022 (UTC)[reply]

URLencode dailymed

Multi-word queries containing spaces currently don't work. As a result, pages like Bismuth subcitrate/metronidazole/tetracycline are using underlines as the word separator, with the very visible side effect of getting a super wide infobox.

replace

{{#if:{{{DailyMedID|}}} |
* <small>{{abbr|US|United States|class=country-name}}</small> [[DailyMed]]: <span title="dailymed.nlm.nih.gov">[https://dailymed.nlm.nih.gov/dailymed/search.cfm?labeltype=all&query={{{DailyMedID}}} {{{DailyMedID}}}]</span> }}

with

{{#if:{{{DailyMedID|}}} |
* <small>{{abbr|US|United States|class=country-name}}</small> [[DailyMed]]: <span title="dailymed.nlm.nih.gov">[https://dailymed.nlm.nih.gov/dailymed/search.cfm?labeltype=all&query={{urlencode:{{{DailyMedID}}}}} {{{DailyMedID}}}]</span> }}

Artoria2e5 🌉 03:45, 5 January 2022 (UTC)[reply]

@Artoria2e5:  Done 1063941924Uzume (talk) 18:40, 5 January 2022 (UTC)[reply]

todo: GHS?

Maybe {{GHS phrases}} could be added. (hazard & precaution label texts, warning symbols). -DePiep (talk) 18:41, 6 January 2022 (UTC)[reply]

Like, "P302+P334: IF ON SKIN: Immerse in cool water or wrap in wet bandages". More Occupational safety and health (OHS) related, and professional handling. Don't know if many drug chemicals have such a warning/danger set.
Also, don't see much spare time for this imn my own, new, calendar (was empty when I bought it some time ago...). -DePiep (talk) 18:45, 6 January 2022 (UTC)[reply]

Template-protected edit request on 9 January 2022

Please copy all code from {{Infobox drug/sandbox}} into {{Infobox drug}} (diff)

Change: Default behaviour: when the article has a corresponding data page (name pattern: "{{FULLPAGENAME}} (data page)"), the IB adds a direct link to that page. For example, see Cocaine <=> Cocaine (data page). All fine. The change is:

1. When |data page=none suppress the link (do not show).
2. When the target page is a redirect, do not show the link.
3. Bugfix: When |data page=Nonstandard data page name → link to that page.
Also works when the page is entered with brackets |data page=[[pagename]].
4. Bugfix: |data page=<blank> (param is present), do as default.
new template: {{Infobox drug/data page link}} (internal only)

Tests:

/testcases11#(data_page)
/testcases10#(data_page) (page .../testcases10 (data_page) is a redirect).

Support:

Same setup as {{Chembox}} has for data pages. Bugfix, and options are more obvious. Currently some 6 articles are affected. DePiep (talk) 07:58, 9 January 2022 (UTC)[reply]
 Done * Pppery * it has begun... 03:45, 10 January 2022 (UTC)[reply]

Nomination of Caffeine (data page) for deletion

A discussion is taking place as to whether the article Caffeine (data page) is suitable for inclusion in Wikipedia according to Wikipedia's policies and guidelines or whether it should be deleted.

The article will be discussed at Wikipedia:Articles for deletion/Caffeine (data page) until a consensus is reached, and anyone, including you, is welcome to contribute to the discussion. The nomination will explain the policies and guidelines which are of concern. The discussion focuses on high-quality evidence and our policies and guidelines.

Users may edit the article during the discussion, including to improve the article to address concerns raised in the discussion. However, do not remove the article-for-deletion notice from the top of the article.

DePiep (talk) 14:06, 14 January 2022 (UTC)[reply]

Emitting citation template errors

Infobox drug
Identifiers
CAS Number

I have noticed that {{infobox drug}} has started to emit citation template errors. For example, when editing the lead section of Ridaforolimus, the error message "Script warning: One or more citation templates have errors" is displayed. If one removes the |CAS_number= parameter, the error message goes away. Looking at the {{infobox drug}} script code, it is not obvious to me why this error message is being generated. Any ideas? Boghog (talk) 14:00, 5 February 2022 (UTC)[reply]

I have added an extremely abbreviated {{infobox drug}} that I lifted from Alendronic acid. If this section is previewed, there is no citation template error message in the preview message box. If you copy the abbreviated {{infobox drug}} and replace the entire content of the Ridaforolimus, or replace the entire content of Alendronic acid with the abbreviated infobox and then preview (don't save), you should see the error message. Pick a random non-chemistry article (I used USS Will Rogers (SSBN-659)) and replace its entire content with the abbreviated infobox and preview: no preview error message. Also, in none of these examples does the infobox actually render a visible citation. Because this issue seems tied to chemistry articles only, I wonder if this has something to do with wikidata.
Poking around in Module:Citation/CS1, I think that I can see the offending {{citation}} rendering:
<cite id=\"CITEREFFood_and_Drug_Administration\" class=\"citation cs2\">[[Food and Drug Administration]] (ed.), ''ridaforolimus'', UNII 48Z35KB15K, [[WDQ (identifier)|Wikidata]]&nbsp;[[:d:Q6593799|Q6593799]]</cite><span title=\"ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=ridaforolimus&rfr_id=info%3Asid%2Fen.wikipedia.org%3ARidaforolimus\" class=\"Z3988\"></span> <span class=\"cs1-visible-error citation-comment\"><code class=\"cs1-code\">{{[[Template:citation|citation]]}}</code>: </span><span class=\"cs1-visible-error citation-comment\"><code class=\"cs1-code\">&#124;access-date=</code> requires <code class=\"cs1-code\">&#124;url=</code> ([[Help:CS1 errors#accessdate_missing_url|help]])</span>[[Category:CS1 errors: access-date without URL]]
Food and Drug Administration (ed.), ridaforolimus, UNII 48Z35KB15K, Wikidata Q6593799 {{citation}}: |access-date= requires |url= (help)
category commented out; error message not styled because at the place that I extracted this citation, template styles has not yet been included in the rendering.
{{cite q}} is transcluded by the infobox, so perhaps this citation is that case but whatever is calling {{cite q}} is not returning the rendered citation. I suspect {{cite q}} because that template always includes the wikidata qid and {{cite q}} is a wrapper template around {{citation}}.
Trappist the monk (talk) 16:39, 11 February 2022 (UTC)[reply]
@Trappist the monk and Boghog:
Suspected edit re |CAS_number=(May 2021): [2] in {{Infobox drug/formatCASnumber}}. To revert (but do keep 'www' removed).
I do not understand (nor was it discussed/announced) what improvement was intended. I am not sure that "wd-source" route is the way to go anyway.
Same and worse: In sister IB {{Chembox}}, same day same editor Leyo same edit [3] had to be revered. Even worse, after that similar edit, Leyo inserted a sandbox [4] (?!), also reverted.
so: Revert partially, and don't spend time on searching intention. Thanks for the reports. -DePiep (talk) 17:40, 11 February 2022 (UTC)[reply]

Template-protected edit request on 14 February 2022

Please revert this edit partially, do keep www. removed. In {{Infobox drug/formatCASnumber}}, the latest edit, 5 May 2021.

(In other words, to edit:
1. revert this edit
2. remove www. from the url
HTH -DePiep (talk) 10:39, 14 February 2022 (UTC))[reply]
Change: bugfix. See report at § Emitting citation template errors: engaging wikidata this way introduced citation errors.
Background: See bug research above. Change was not discussed or tested. Similar issue happened at {{Chembox}} (talk, [5] &tc.). I note that no such change or edit can be made without propor discussion, sandboxing and testing beforehand.
@Boghog and Trappist the monk: thanks for the reports. DePiep (talk) 09:02, 14 February 2022 (UTC)[reply]

Background

The edit you would like to revert was made 9 months ago and hasn't caused any citation errors until very recently. Therefore, it is likely that the error occurred due to a change of another template or module. --Leyo 22:03, 14 February 2022 (UTC)[reply]

Leyo, about the bug: you have not disproven the bug; just an assumption. It's just that the report by boghog appeared recently. @Trappist the monk: convincingly showed, above, that this invoking Wikidata was the cause. No related edits were made since. As noted, on that same day May 2021, you introduced the similar error in {{Chembox CASNo/format}} (overwritten by you with your sandbox page [6]?!). In this debugging process, you were pinged, already weeks ago [7]. Conclusion: it is a bug, to be fixed, and you have not convinced otherwise.
Leyo, about your edits and posts: I have re-opened this Edit Request. By now, I conclude that you have introduced a bug and are unwilling to acknowledge, and unwilling engage in discussion, and obstructing the bugfix. With this, cancelling this Edit Request as you did is disruptive. To make the edits, you had to use your WP:TPE rights. You did not sandbox, not test, not discuss your edits befoe or after. That is an abuse of TPE right twice (no consesus seeked, not debug known bug=keep disruption). If you persist in this disruption in any way, be it on talkpage or in editing, that could be a reason to have your TPE bit be revoked. -DePiep (talk) 07:49, 15 February 2022 (UTC)[reply]
I take note of your view. I couldn't react earlier as I was almost entirely offline for the last few weeks. --Leyo 08:30, 15 February 2022 (UTC)[reply]
I now actually reactivated the edit request (as I intended) [8]. Why on earth was the Edit Request template commented out at all, Leyo? -12:29, 15 February 2022 (UTC)
Well, there is no need to rush since readers are not affected. The reason why this error only occurs now, i.e. after several months, should be investigated first. Moreover, how many articles are affected? --Leyo 15:15, 15 February 2022 (UTC)[reply]
This search suggests that approximately 7700 articles are affected. This error became noticeable following the most recent update to the cs1|2 module suite which was completed 2022-01-26. Before then, cs1|2 was not capable of separately reporting errors via the preview message box.
Trappist the monk (talk) 16:04, 15 February 2022 (UTC)[reply]
No Leyo, not "investigated first". It is a bug, so revert first. After that, there is space & time for investigation and whatever (but not in live templates). I'd expect a template TPE editor to understand & agree. -DePiep (talk) 16:11, 15 February 2022 (UTC)[reply]
This holds true for a bug that actually affects readers, which is not the case here. After the revert, the investigation is probably more difficult.
Thayts, the main developer of Module:Wd, may be able to tell if a quick fix could be done there. --Leyo 16:26, 15 February 2022 (UTC)[reply]
"After the revert, the investigation is probably more difficult". Nonsense, irrelevant. No reason to keep a bug in mainspace. Getting tired. Last call to behave as Good Template Editor. -DePiep (talk) 18:07, 15 February 2022 (UTC)[reply]

 Done Per Wikipedia:Template editor, This right should never be used to gain an upper hand in editing disputes. This request not being implemented would produce a situation in which Leyo has used his template editor right (included in adminiship) to gain the upper hand in an editing dispute. * Pppery * it has begun... 20:48, 17 February 2022 (UTC)[reply]

Change URL link for UNII

How do I change current linkout for UNIIs to the FDA site from the NLM site. https://precision.fda.gov/uniisearch/srs/unii/a4p49jaz9h — Preceding unsigned comment added by Lncallahan (talkcontribs) 02:22, 16 February 2022 (UTC)[reply]

To be changed in {{Infobox drug/formatUNII}}. Done in /sandbox (diff).
Wikidata check: Unique Ingredient Identifier (Q6593799)UNII (P652). I note that the WD property has same link added (Dec 2021).
todo: 1. check for being formal change?; 2. check {{Infobox drug/sandbox}}, will do so later for LR time reasons. -DePiep (talk) 12:05, 16 February 2022 (UTC)[reply]

Thanks For changing the link — Preceding unsigned comment added by Lncallahan (talkcontribs) 04:55, 17 February 2022 (UTC)[reply]

Template-protected edit request on 17 February 2022

Please replace all code in {{Infobox drug/formatUNII}} with all code from {{Infobox drug/formatUNII/sandbox}} (diff).

Change: update external URL per request #Change_URL_link_for_UNII above.

Tested: /sandbox live previews; for Aspirin, /sbox: R16CO5Y76E; conform independent WD change. DePiep (talk) 09:14, 17 February 2022 (UTC)[reply]

 Done * Pppery * it has begun... 20:12, 17 February 2022 (UTC)[reply]