Template talk:Infobox drug/Archive 19

Template-protected edit request on 13 March 2021
Please replace all code Infobox drug with sandbox code

Change: updated and more consistent vaccine types. Fernando Trebien (talk) 14:54, 13 March 2021 (UTC)
 * Edit request stands (after low-key discussion below). -DePiep (talk) 01:15, 14 March 2021 (UTC)
 * Hi . Looks like a sound improvement. I have made a testcase for all new output options here. Please take a look. (I am not familiar with the topic). Some questions, none is fatal:


 * 1) Should we change the label from Type into Vaccin type for clarity? The word 'type' is used in more meanings, wrt drugs. Now looks like having an implicit or jargon meaning.
 * 2) No wikilink available for "Live bacteria" then?
 * 3) Current usage of vaccin_type is here. (Look for "vaccin_type" in the lefthand column). You think coverage is OK? For example, I see mRNA for 3 Covid vaccins; make into an entry?
 * -DePiep (talk) 20:20, 13 March 2021 (UTC)


 * It makes sense to me.
 * With the exception of "live virus" (which is a somewhat obscure type of vaccine where the pathogen is neither inactivated nor attenuated, it is fully infectious), "live" usually means "attenuated", which some sources call "live-attenuated" in contrast to the "inactivated" type. As far as I understand, inactivated and attenuated apply well to any kind of organism, while "killed" and "live" do not apply well to viruses, which are not alive.
 * We can certainly add an entry for mRNA. But I wouldn't try to be exhaustive because Wikipedia does not yet have articles for several common types vaccines, only for the components or technologies used by those types. But I can try to propose some sort of taxonomy. I am not an expert, I started reading about this subject while helping to maintain the article on COVID-19 vaccines. Here is a summary of my findings after going through various sources. In quotes are common ways of referring to each type.


 * Whole-pathogen, natural or modified
 * Inactivated ("killed")
 * Attenuated ("live-attenuated", "live")
 * "Live" virus (fully infectious, not attenuated)
 * Subunit (parts of the pathogen injected into the receptor)
 * Protein subunit ("protein", "protein-based subunit")
 * Recombinant protein subunit ("recombinant", "recombinant protein")
 * Peptide subunit ("peptide", "peptide-based subunit")
 * Recombinant peptide subunit ("recombinant peptide")
 * Polysaccharide
 * Toxoid
 * Conjugate
 * VLP (virus-like particles)
 * Nucleic acid (parts of the pathogen produced within the receptor)
 * Viral vector
 * Recombinant viral vector ("recombinant vector")
 * DNA (plasmid)
 * RNA
 * mRNA (modRNA)
 * saRNA
 * Heterologous (combination of vaccines)
 * "Recombinant" means that some organism involved has chimeric DNA (a combination of the DNA of other organisms):
 * For viral vector vaccines, the viral vector is chimeric
 * For subunit vaccines, the organism producing the subunits in the lab is chimeric
 * So, a protein subunit can be made from the pathogen itself or from another unmodified organism, but a recombinant protein subunit can only be made by an organism modified with another organism's DNA. And a viral vector may or may not carry DNA from another organism, it can carry purely new, synthetic DNA. Since some types are much more common than others, some people use some of those expressions interchangeably.
 * Many only use "subunit" to avoid getting into excessive detail. Some use it in constrast to the "whole-pathogen" category on the assumption that subunits may lose effectiveness against new variants because they present fewer antigens, and more antigens are likely to induce some immunity against non-mutated targets in the pathogen, although this assumption is often described as purely theoretical.--
 * So, a protein subunit can be made from the pathogen itself or from another unmodified organism, but a recombinant protein subunit can only be made by an organism modified with another organism's DNA. And a viral vector may or may not carry DNA from another organism, it can carry purely new, synthetic DNA. Since some types are much more common than others, some people use some of those expressions interchangeably.
 * Many only use "subunit" to avoid getting into excessive detail. Some use it in constrast to the "whole-pathogen" category on the assumption that subunits may lose effectiveness against new variants because they present fewer antigens, and more antigens are likely to induce some immunity against non-mutated targets in the pathogen, although this assumption is often described as purely theoretical.--
 * Many only use "subunit" to avoid getting into excessive detail. Some use it in constrast to the "whole-pathogen" category on the assumption that subunits may lose effectiveness against new variants because they present fewer antigens, and more antigens are likely to induce some immunity against non-mutated targets in the pathogen, although this assumption is often described as purely theoretical.--

Fernando Trebien (talk) 00:04, 14 March 2021 (UTC)
 * OK User:Ftrebien. (I have collapsed you content-list).
 * re #1: I have changed label6 into "Vaccin/e type", as part of this change.
 * re #2, #3: no comment, all fine.
 * Note: do we spell "vaccin" or "vaccine" in mainspace? ;-) The article is Vaccin. Is why I 'paused' this ER. When clarified, we can reactivate the ER. -DePiep (talk) 00:37, 14 March 2021 (UTC)
 * I think it is vaccine. Vaccin is only a redirect to Vaccine. --Fernando Trebien (talk) 00:56, 14 March 2021 (UTC)
 * OK. Edit Request reopened. -DePiep (talk) 01:15, 14 March 2021 (UTC)
 * Yes check.svg Done &mdash; Martin (MSGJ · talk) 08:38, 15 March 2021 (UTC)

Template-protected edit request on 16 March 2021
Please replace all code Infobox drug with sandbox code Fernando Trebien (talk) 16:26, 16 March 2021 (UTC)
 * Adds  to preformat-options vaccine_type. -DePiep (talk) 16:42, 16 March 2021 (UTC)
 * Also adds,   and  . While mRNA is an emerging type during the pandemic, the other 3 types are other common types of vaccines for other diseases. Some editors prefer to specify the more general type (always a superset), and some prefer to specify the more specific type. Based on current usage and other findings. --Fernando Trebien (talk) 18:54, 18 March 2021 (UTC)
 * (Sorry, I missed those in my visual check.) -DePiep (talk) 19:17, 18 March 2021 (UTC)
 * ✅, and thank you both very much!  P.I. Ellsworth   ed.  put'r there 21:31, 26 March 2021 (UTC)

Adding a short description
Could someone add additional code, please, to create an automatic short description, such as "Drug"? That would be a great help in reducing the number of articles that are missing such a description. Pinging RexxS: would you be able to help? MichaelMaggs (talk) 10:30, 23 March 2021 (UTC)
 * "Drug" would be too unspecific (into uselessness). Maybe use INN? -DePiep (talk) 12:48, 23 March 2021 (UTC)
 * "Drug" is perfect, and nothing more complicated is needed. The description needs to be kept short and non-technical to comply with WP:HOWTOSD: "avoid jargon, and use simple, readily comprehensible terms that do not require pre-existing detailed knowledge of the subject". Short descriptions are intended not to define the subject matter but are primarily to allow mobile users who are looking at a long list of titles after carrying out a search to decide whether a particular article is in the right field. It helps them decide whether some term they've never seen before is, for example, a drug, a disease, or the name of a computer game. MichaelMaggs (talk) 16:43, 23 March 2021 (UTC)
 * OK, perhaps there are too many exceptions, where the infobox is used for things that most people wouldn't normally describe as a "drug". Not easy to separate those out. MichaelMaggs (talk) 08:50, 9 April 2021 (UTC)
 * All fine, but let me note that "Short description" is not a short description. -DePiep (talk) 19:05, 9 April 2021 (UTC)

Template-protected edit request on 3 April 2021
Please replace all code with /sandbox code:.

Change: Use the new open CAS API URL (as fleshed out for similar Chembox situation at Chembox talk). More background at: WD talk. . DePiep (talk) 10:16, 3 April 2021 (UTC)
 * ✅, and thanks again!  P.I. Ellsworth   ed.  put'r there 11:27, 3 April 2021 (UTC)

Should toxicological information be included?
Something like say LD50? --Palosirkka (talk) 07:56, 9 April 2021 (UTC)


 * Seems reasonable. But there are multiple types of LD50 - see https://go.drugbank.com/drugs/DB00073  e.g. Oral, Inhalation, Skin. --50.201.195.170 (talk) 00:21, 30 June 2021 (UTC)

PDB monoclonal antibodies
Does it make sense to add support for monoclonal antibodies in PDB?

For example, 5L6Y for Tralokinumab

https://www.ebi.ac.uk/pdbe/entry/pdb/5l6y

https://www.rcsb.org/structure/5L6Y

--Whywhenwhohow (talk) 23:20, 9 July 2021 (UTC)

Template-protected edit request on 13 July 2021
All references to "EU" should be changed to "EU/EEA", since, under the European Economic Area Agreement, the European Commission, on the recommendation of the European Medicines Agency, authorises medicinal products for use throughout the European Economic Area (which is the EU countries plus Iceland, Liechtenstein and Norway). Kennethmac2000 (talk) 19:43, 13 July 2021 (UTC)
 * Not needed, not helpful. EMA is an EU institution. Agreements by outer countries to follow EMAs rulings is a spin-off, not a change of ruling. (EEA-effects coulds be added(!) to the EMA article though). -DePiep (talk) 06:06, 14 July 2021 (UTC)

EMA licence search template appears to be broken
The template's search function for licence data on the EMA website (licence_EU) appears to be broken. It retreives "page not found" for all articles I tested it with. I assume the EMA updated its website and thus the search mask will no longer work as before. Could someone have a look at this and possibly fix it? Thank you! --Shinryuu (talk) 10:47, 14 July 2021 (UTC)


 * Yes, because EMA recently rebuilt its website and changed the URL addressing scheme, in the process moving from INN to tradenames in titles and URLs. The template now needs complex engineering and given the shift to tradenames, it may be not even be possible to restore the function. — kashmīrī  TALK  12:18, 14 July 2021 (UTC)
 * As kashmīrī describes. -DePiep (talk) 13:02, 14 July 2021 (UTC)

deprecate current EMA link

 * I suggest we deprecate/remove/disable it like we did for licence_CA and pregnancy_US. We should probably do the same for licence_US. https://en.wikipedia.org/wiki/Template_talk:Infobox_drug/Archive_16#licence_US_parameter_no_longer_works --Whywhenwhohow (talk) 18:44, 15 July 2021 (UTC)
 * Agree. No disfunctional link.
 * Proposal: do not show (the currently disfunctional) EMA link and -data row.
 * Demo by Infobox drug/sandbox. See /testcases2#Licence. More tests welcome. Test in articles: use (edit into) &.
 * Change, intended: "Lincence data" data row will not show EMA data nor link(s).
 * Discussion please (after which the change could go ahead). -DePiep (talk) 23:26, 15 July 2021 (UTC)

redesign EMA link

 * Or could we instead adjust the EMA link in the template to direct to the tradename instead? I know this is not ideal, but the documents from regulatory agencies such as EMA and FDA are probably the best source of information on medicines, so we should provide a link to them in all articles on medicines. In cases where there is more than one drug with the same active component, there is usually a reference product, so I suppose we could link to that one.


 * Examples:
 * The drug Tafamidis is only available as Vyndaqel in the EU, so the EMA link in the article could go to https://www.ema.europa.eu/en/medicines/human/EPAR/vyndaqel
 * The drug Follitropin alfa is available as several biosimilars: Gonal-f, Cinnal-f, Fertilex, Ovaleap and Bemfola. The originator (reference product) is Gonal-f, so the EMA link could go to https://www.ema.europa.eu/en/medicines/human/EPAR/Gonal-f


 * In any case, I think we should try to fix the template so it is possible to link to the EMA website again. --Shinryuu (talk) 18:50, 15 July 2021 (UTC)
 * Given the multitude of tradenames, I think it will be easier to simply ask EMA that its website routinely redirects from INNs to correct pages. I can do it when I'm more free in September — kashmīrī  TALK  22:47, 15 July 2021 (UTC)
 * IIRC: EMA publishes (monthly?) a downloadable spreadsheet. It connects "some drug ID" to "EMA-publication ID". Very n-to-n relations. Could use that for Infobox, but requires data analysis. (sorry, no time to research this issue now. But it looks programmable. do not say easy nor cheap in hrs.) Have a Nice Edit, DePiep (talk) 23:37, 15 July 2021 (UTC)
 * If you know someone at EMA and if they actually consider such requests, this would be the ideal solution. I also fiddled around with the search function a bit, and I think we may be able to fix this by using a search link filtering for EPAR (the relevant registration document) and INN. This is actually possible with the current EMA search function. For the two examples of tafamidis and follitropin alfa I used above, this retrieves the following results:
 * Tafamidis: https://www.ema.europa.eu/en/medicines/ema_group_types/ema_medicine/search_api_aggregation_ema_active_substance_and_inn_common_name/tafamidis One hit, Vyndaqel (the only available drug in the EU)
 * Follitropin alfa: https://www.ema.europa.eu/en/medicines/ema_group_types/ema_medicine/search_api_aggregation_ema_active_substance_and_inn_common_name/follitropin%20alfa Four hits for the four biosimilars with this active component registered in the EU
 * --Shinryuu (talk) 08:24, 16 July 2021 (UTC)

deprecate current FDA (US licence) link

 * The licence_US link is broken and always goes to the Drugs home page. Let's hide it also if you are going to make the change to hide the one for the EMA. --Whywhenwhohow (talk) 01:07, 16 July 2021 (UTC)
 * That's FDA only then (DailyMed seems to work?). eg Amlodipine. Will prepare this in sandbox.
 * It is the searchpage though, so one can enter a search name. But not automated (POST ort GET difference). -DePiep (talk) 07:37, 16 July 2021 (UTC)

redesign FDA (US licence) link

 * todo. -DePiep (talk) 07:24, 16 July 2021 (UTC)

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)
 * Red information icon with gradient background.svg Not done for now: please establish a consensus for this alteration before using the 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)

Biosimilars (and biologics)
This template is being used for articles on medicines with biosimilars, such as Rituxan and the drugs that are biosimilars for it. Template:Infobox_drug 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)
 * That is biosimilar. -DePiep (talk) 05:50, 30 June 2021 (UTC)
 * What? That article is about biosimilars, but so what? --50.201.195.170 (talk) 07:14, 30 June 2021 (UTC)
 * 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)
 * 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)
 * I'd like to read more specialists (I am not, in med).
 * For now, one could use this route: . -DePiep (talk) 13:47, 7 July 2021 (UTC)

Proposal

 * 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)
 * Between synonyms and Drugs.com, see demo &rarr; -DePiep (talk) 12:45, 11 July 2021 (UTC)


 * support seems like a good idea--Ozzie10aaaa (talk) 12:03, 11 July 2021 (UTC)

Template-protected edit request on 11 July 2021
Please replace all code from Infobox drug/sandbox into Infobox drug.


 * Change
 * Add parameter biosimilars by request . Testcase. DePiep (talk) 13:09, 11 July 2021 (UTC)
 * ✅, and thank you very much!  P.I. Ellsworth   ed.  put'r there 16:01, 11 July 2021 (UTC)
 * Applied in Rituxan. -DePiep (talk) 16:08, 11 July 2021 (UTC)

doc
Is the biosimilars parameter officially supported? I don't see it in the documentation. Thanks. --Whywhenwhohow (talk) 04:51, 30 December 2021 (UTC)
 * It is, as used in article and as advocated above. So one can adjust the doc. -DePiep (talk) 06:09, 30 December 2021 (UTC)

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

with

Artoria2e5 🌉 03:45, 5 January 2022 (UTC)
 * ✅ 1063941924 —Uzume (talk) 18:40, 5 January 2022 (UTC)

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)


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

todo: GHS?
Maybe GHS phrases could be added. (hazard & precaution label texts, warning symbols). -DePiep (talk) 18:41, 6 January 2022 (UTC)
 * 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)

Template-protected edit request on 9 January 2022
Please copy all code from Infobox drug/sandbox into Infobox drug

Change: Default behaviour: when the article has a corresponding data page (name pattern: ), the IB adds a direct link to that page. For example, see Cocaine <=> Cocaine (data page). All fine. The change is:
 * 1. When none suppress the link (do not show).
 * 2. When the target page is a redirect, do not show the link.
 * 3. Bugfix: When Nonstandard data page name &rarr; link to that page.
 * Also works when the page is entered with brackets pagename.
 * 4. Bugfix: &lt;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)
 * ✅ * Pppery * it has begun... 03:45, 10 January 2022 (UTC)

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 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)

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 (talk • contribs) 02:22, 16 February 2022 (UTC)
 * To be changed in Infobox drug/formatUNII. Done in /sandbox.
 * Wikidata check: &rarr; . 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)

Thanks For changing the link — Preceding unsigned comment added by Lncallahan (talk • contribs) 04:55, 17 February 2022 (UTC)

Template-protected edit request on 17 February 2022
Please replace all code in Infobox drug/formatUNII with all code from Infobox drug/formatUNII/sandbox.

Change: update external URL per request above.

Tested: /sandbox live previews; for Aspirin, /sbox: ; conform independent WD change. DePiep (talk) 09:14, 17 February 2022 (UTC)
 * ✅ * Pppery * it has begun... 20:12, 17 February 2022 (UTC)

Emitting citation template errors
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)
 * I have added an extremely abbreviated 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  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 rendering:
 * :  requires   (help)
 * Food and Drug Administration (ed.), ridaforolimus, UNII 48Z35KB15K, Wikidata Q6593799   :  requires   (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.
 * is transcluded by the infobox, so perhaps this citation is that case but whatever is calling is not returning the rendered citation.  I suspect  because that template always includes the wikidata qid and  is a wrapper template around.
 * —Trappist the monk (talk) 16:39, 11 February 2022 (UTC)
 * Suspected edit re CAS_number(May 2021): 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 same edit  had to be revered. Even worse, after that similar edit, Leyo inserted a sandbox  (?!), 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)
 * Same and worse: In sister IB Chembox, same day same editor same edit  had to be revered. Even worse, after that similar edit, Leyo inserted a sandbox  (?!), 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)

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) )
 * Change: bugfix. See report at : engaging wikidata this way introduced citation errors.


 * Background: See bug research above. Change was not discussed or tested. Similar issue happened at (talk,  &tc.). I note that no such change or edit can be made without propor discussion, sandboxing and testing beforehand.


 * thanks for the reports. DePiep (talk) 09:02, 14 February 2022 (UTC)

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)
 * , about the bug: you have not disproven the bug; just an assumption. It's just that the report by  appeared recently.  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 ?!). In this debugging process, you were pinged, already weeks ago . Conclusion: it is a bug, to be fixed, and you have not convinced otherwise.
 * , 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)
 * 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)
 * I now actually reactivated the edit request (as I intended) . Why on earth was the Edit Request template commented out at all, Leyo? DePiep -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)
 * 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)
 * No, 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)
 * 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)
 * "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)

✅ Per 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)
 * I am not sure what you are talking about. My last edit to this template was in May 2021. --Leyo 10:44, 18 February 2022 (UTC)
 * That's effectively a long-winded (and, on reflection, more direct than necessary) way of saying that I reverted your edit (despite your objections) on the principle that BRD should still apply even if the reverter doesn't have the technical rights to revert the edit. I'm not saying you did anything wrong in May 2021. * Pppery * it has begun... 17:56, 20 February 2022 (UTC)
 * to be clear: "I don't understand" is no excuse for the behaviour that is referred to in this thread. It even looks worrysome that a WP:TPE editor does not grasp the problematic issues described. -DePiep (talk) 14:51, 22 February 2022 (UTC)

Question on Solubility Section
Hello, I'm wondering what the 'intended' use of the solubility section is for. Is it meant only for solubilities of the type "10mg/L at STP" or can it also be used for solvation free energies ΔGsolvH2O of the form "-5 kcal/mol"? RFZYN SPY talk 05:33, 21 March 2022 (UTC)

INN link for EMA does not work
It appears that the INN links that follow the EMA field in License Data section does not work. Any ideas? --kupirijo (talk) 10:28, 12 June 2022 (UTC)

For example in Aspirin the automated search link is: http://www.ema.europa.eu/ema/index.jsp?curl=%2Fpages%2Fmedicines%2Flanding%2Fepar_search.jsp&mid=&searchTab=searchByKey&alreadyLoaded=true&isNewQuery=true&status=Authorised&status=Withdrawn&status=Suspended&status=Refused&keywordSearch=Submit&searchType=inn&taxonomyPath=&treeNumber=&searchGenericType=generics&keyword=Aspirin --kupirijo (talk) 10:43, 12 June 2022 (UTC)
 * EPA has changed their website search access, few years. INN is not the (automated) serach term any more. eg to find epar for Chloramphenicol, lists 34 (apparently by registered name). Separation human/vet. Translation table possibly via Download table of referrals for human and veterinary medicines (Referrals download). -DePiep (talk) 11:50, 12 June 2022 (UTC)

Thank you for your reply. So you are saying that it is not an easy fix, right? What about if in the Template one is able to copy/paste the url directly, instead of invoking a search script? --kupirijo (talk) 14:31, 12 June 2022 (UTC)

I also found this thread in the archive: Template_talk:Infobox_drug/Archive_19. --kupirijo (talk) 14:37, 12 June 2022 (UTC)
 * First option could be to enter the search word by parameter, then have the tempalte create the link. Also to look for: which page is expected & useful? EPAR by commercial name is not helpful. The data analysis is a puzzle. -DePiep (talk) 19:11, 12 June 2022 (UTC)

Thank you. There is an option to search EPARs and by INN here: https://www.ema.europa.eu/en/medicines/field_ema_web_categories%253Aname_field/Human/ema_group_types/ema_medicine Additionally, if one wants to search for "acetylsalicylic acid" for example it generates the following URL: https://www.ema.europa.eu/en/medicines/field_ema_web_categories%253Aname_field/Human/ema_group_types/ema_medicine/search_api_aggregation_ema_active_substance_and_inn_common_name/acetylsalicylic%20acid --kupirijo (talk) 16:47, 13 June 2022 (UTC)
 * I'd ask you to download and look into the Referral spreadsheet Download table of referrals for human and veterinary medicines (already linked to above). The table lists all links between INN, "referral" id, true full webpage links, and other names or IDs. Questions I think that need an answer: from the spreadsheet, is the Referral link the target we want for a medicine? If so, which ID can we use (INN, EMA-defined Referral word, ...)? Please check this out (glancing or diving into it). Maybe you find an other useful route to the EMA-page in there. -DePiep (talk) 21:06, 13 June 2022 (UTC)

route of administration in bioavailability
Shouldn't route of administration be mentioned in bioavailability field? M-G (talk) 15:44, 5 October 2022 (UTC)

Proposal: add SDBS spectral information (external link)
DePiep (talk) 10:04, 20 January 2023 (UTC)
 * SDBS. See

Template-protected edit request on 7 March 2023
Greetings and felicitations. I'm afraid I only know what I want done, not how to do it. There is a space between the legal status fields' contents and the legal status note fields' contents—this violates MOS:CITEPUNCT. Two examples are found in Daridorexant. Is there are way to eliminate that space? —DocWatson42 (talk) 07:32, 7 March 2023 (UTC)
 * See my similar request at Template talk:Infobox drug/Archive 18 for information. I hope something has changed since then. —DocWatson42 (talk) 07:37, 7 March 2023 (UTC)
 * You're right. Working on this. DePiep (talk) 08:34, 7 March 2023 (UTC)
 * Pertains to all legal_XX_comment (9). DePiep (talk) 08:39, 7 March 2023 (UTC)
 * Thank you. ^_^ DocWatson42 (talk) 08:58, 7 March 2023 (UTC)
 * Sorry kept you waiting. Was interrupted by mailman at the door. -DePiep (talk) 10:59, 7 March 2023 (UTC)
 * Prepared, but not fit for mainspace yet.
 * I have added a check, that only adds the space when legal_AU_comment does not start with a .
 * No articles to be edited.
 * See and.
 * Also, article Daridorexant with  will show: fixed.
 * Note to template editor : not fit for mainspace yet. In 24h I will take another look & give a go. -DePiep (talk) 10:59, 7 March 2023 (UTC)


 * Please execute.
 * To edit: update from sandbox, please replace all code in Infobox drug/legal status with Infobox drug/legal status/sandbox.
 * Note: Only this one template to update. No other edits.
 * Change: new helper Infobox drug/non-ref-space checks whether the input starts with a ref or with text. Accordingly, a space is prefixed or not.
 * Talk: bugfix, see OP. Tests: and.
 * -DePiep (talk) 07:15, 8 March 2023 (UTC)
 * ✅.  P.I. Ellsworth &thinsp;, ed.  put'er there 07:32, 8 March 2023 (UTC)
 * Yup—that worked. Thank you. ^_^ — DocWatson42 (talk) 07:56, 8 March 2023 (UTC)
 * my pleasure!  Paine  07:58, 8 March 2023 (UTC)

secondary bug
A few articles are in Category:Pages with script errors due to recent changes here, for example, Pecazine. The following is enough to trigger the problem: Removing strip markers is presumably removing the final parenthesis and that gives "Lua error: Unmatched open-paren at pattern character 2." Presumably the arbitrary text in the legal_US_comment parameter is being interpreted as a pattern and that is very hard to control. Johnuniq (talk) 09:21, 9 March 2023 (UTC)
 * Working on this. Also in Piracetam with bracketed cite web. testcases. -DePiep (talk) 09:49, 9 March 2023 (UTC)
 * As Johnuniq writes: pattern mixup when opening (-bracket. However, strip essence requires Lua pattern. Search contiunues. No visible error in article (not broken). When urgent, we can add true in module calls. -DePiep (talk) 12:02, 9 March 2023 (UTC)


 * . Indeed, new Infobox drug/non-ref-space ("check for initial text-or-ref whether to prefix space") failed when opening text character requires (REGEX) pattern escaping, like %(, and a ref was present elsewhere. This caused visible wrong spacing, and Category:Pages with script errors (Pecazine, Piracetam).
 * Fix: Added [module:String|escapePattern] on search pattern . Errors gone.
 * thanks for the helpful report. -DePiep (talk) 08:44, 10 March 2023 (UTC)

FDA search fails, but does not return an error
The URL generated for the  parameter does not appear to work anymore. Repeating the approach under, I'll use the URL generated for Aspirin as an example: https://www.accessdata.fda.gov/scripts/cder/drugsatfda/index.cfm?fuseaction=Search.SearchAction&SearchTerm=Aspirin&SearchType=BasicSearch.

This redirects to the search interface, https://www.accessdata.fda.gov/scripts/cder/daf/. I figured maybe query string parameters had just changed, so I checked how requests are encoded.

When I searched for "Aspirin" today, the request URL was.

The request payload:

I naively tried, to no avail. Perhaps if I were at all familiar with CFML I'd have a better strategy, but I figured it was worth a shot.

-- Spida-tarbell (talk) 03:27, 23 March 2023 (UTC)


 * Prior discussions here, here, and here --Whywhenwhohow (talk) 06:20, 23 March 2023 (UTC)
 * I see now, thanks. I apologize for not having searched through archives first! For an ongoing problem, would it still make sense to make a new topic, but additionally link to relevant archives for reference? I'm fairly new to editing, and I appreciate the time you spent here. Spida-tarbell (talk) 17:21, 23 March 2023 (UTC)
 * Whyw is not reproaching you for not searching ;-) they are correctly noting earlier, fruitless talks. Meanwhile, I hope we can make it work this time, see below. Still, their site is hard to analyse. Which data do we expect? DePiep (talk) 17:53, 23 March 2023 (UTC)
 * Thank you! So, what's tricky is that the original encoding linked to a search for the drug on the FDA website. Now, it seems that the only URL we can rely on is one that encodes the New Drug Application (NDA) ID in the URL, but this only applies to a particular instance (e.g. GlaxoSmithKline's Excedrin Migraine, NDA 020802.
 * Maybe someone else would fare better figuring out a working search URL for the new implementation, or I could contact the agency to ask whether such a possibility exists. – Spida-tarbell (talk) 18:54, 1 April 2023 (UTC)
 * Below are the 22 pages FDA provides (blue bar, collapsed). None has this solution.
 * Point is: how to learn the NDA key (020802 in your example), automated? Is it published? (Usually, the site itself published how to retrieve such info). We cannot rely on the reader having top type the right drug name manually. DePiep (talk) 19:21, 1 April 2023 (UTC)
 * Given the ability to download e.g. a CSV of the data, it seems mappings exist in the database. But the NDA key is probably of limited utility, because it'll rarely be appropriate for an article unless that article is about a specific company's formulation. And because this is using a trade name, it doesn't conform to the ontology for Wikipedia pages, which redirects all tracked trade names to an article about the generic drug. – Spida-tarbell (talk) 20:17, 1 April 2023 (UTC)
 * 1. In the result page for trade name, I see a link that says "similar active ingredients". (ie, manual action by reader required. ouch).
 * 2. 137 CSVs found. No NDAs though.
 * 3. So far: if we can't find a right "FDA licence sourcepage" (INN/activesubstance is best), we must remove the datarow altogether. DePiep (talk) 20:56, 1 April 2023 (UTC)

Infobox drug FDA link

 * So, we need the url for the FDA drug licence source/page, as to be used in Infobox drug.

proposals & discuss
In general, Wikidata has good url formatter for such a database. -DePiep (talk) 07:07, 23 March 2023 (UTC)


 * Which FDA data should we linkto in the infobox? Which is preferable in the article? -DePiep (talk) 07:44, 23 March 2023 (UTC)


 * One test we must make is which key(s) FDA uses.
 * INN
 * USAN United States Adopted Name (acetaminophen)
 * USP United States Pharmacopeia (acetaminophen)
 * private key (=FDA-maintained; published we hope)
 * marketet name
 * -DePiep (talk) 15:28, 23 March 2023 (UTC)


 * It could be helpful to make a quickl & crude improvement first. (workin url to an FDA overview). -DePiep (talk) 15:28, 23 March 2023 (UTC)


 * Approved drug FDA-page is needed (for 'FDA-licence').
 * Special licences lists:
 * Orange book (en: [Orange book] ) = "Orange Book: Approved Drug Products with Therapeutic Equivalence Evaluations"
 * Purple book = "Database of Licensed Biological Products"

Bispecific monoclonal antibody
Please add BsAb as a mab type for a bispecific monoclonal antibody. --Whywhenwhohow (talk) 04:20, 25 April 2023 (UTC)


 * OK, working on this. Please see testcases4#BsAb (new). Some questions:
 * Per the article, I understand BsMAb is a synonym. Accept as option? (is already in /sandbox).
 * Does BsAb have new source options to add?
 * What would be a target example?, and drug demo article? DePiep (talk) 08:18, 25 April 2023 (UTC)
 * Also, when mab, are these two parameters required? Or can one be empty?
 * mab_type, source
 * (see their options at mab type /doc tables). -DePiep (talk) 15:00, 25 April 2023 (UTC)


 * In my experience, BsAb appears to be more common than BsMAb. Examples of BsAbs include amivantamab, emicizumab, and glofitamab.
 * Some BsAbs use the BiTE plaform and are Bi-specific T-cell engagers (e.g. blinatumomab, mosunetuzumab, teclistamab). The BiTE mab_type is supported in the template.
 * There is also a trAb (trifunctional antibody) type (e.g. catumaxomab, ertumaxomab) that appears to be supported in the template as mab_type 3funct.
 * Thanks and hope this is helpful. --Whywhenwhohow (talk) 05:30, 26 April 2023 (UTC)
 * Thanks, towards implementation.
 * Btw, tracking in will be expanded to: "mab OK but mab_type or source not recognised/blank". DePiep (talk) 06:10, 26 April 2023 (UTC)

Edit request 5 August 2023
Description of suggested change: Template:Infobox_drug/formatIUPHARBPS should use  instead of.


 * .  P.I. Ellsworth &thinsp;, ed.  put'er there 20:15, 5 August 2023 (UTC)

Adding new countries to Legal Status
The main ones I would like to be added are: India, China and Russia. But clicking in the Category:Drugs with non-standard legal status and checking some, we may have to add South Korea (Olmutinib), Singapore(5-Benzyloxytryptamine), Sweden (Flualprazolam) and Japan (Delgocitinib, Tirabrutinib) at some point. Mexico would be another good one to add. Or we could just add the whole ISO 639-1 list of country codes. 😅


 * Category:Drug policy by country


 * Drug policy of India -> But the categories listed at Regulation of therapeutic goods (Schedule X, H, L, C, C1, N, M) - I found the Indian government document explaining each one the other day, I believe there is more categories than this, I will find it again and make a summary.
 * Drug policy of South Korea - Not much explanation, but we could initially just add the general OTC, Rx, vet.
 * Drug policy of Sweden - Schedule I to V
 * Misuse of Drugs Act (Singapore) - Schedule I to III and subcategories

The easiest information available about Chinese drug regulation is the "OTC class A" (drugstores only) and "OTC class B" (also available in general stores).

It's too much to add information about the classification about each countries at once. I'm initially informing the intent, but I will dig and summarize about each one in more details later.

-- Arthurfragoso (talk) 21:17, 14 August 2023 (UTC)


 * All the schedules in India are at: Drugs and Cosmetics Rules, 1945
 * -- Arthurfragoso (talk) 05:59, 15 August 2023 (UTC)

Legal status in Brazil - Add subclasses F1, F2 and F3
Keep the "Class F (Prohibited substances)" for backward compatibility, but add:
 * Class F1 (Prohibited narcotics)
 * Class F2 (Prohibited psychotropics)
 * Class F3 (Prohibited precursors)
 * Class F4 (Other prohibited substances)

There is also a specific list for antibiotics, but I'm thinking to just use the general "Rx-only" tag for that. I need to dig, search for more information and think how that could be classified here. But for now, just adding the F subclasses would be great. Thanks :) Arthurfragoso (talk) 20:12, 3 August 2023 (UTC)


 * I would like the changes shown in this diff. — Arthurfragoso (talk) 17:41, 27 August 2023 (UTC)


 * .  P.I. Ellsworth &thinsp;, ed.  put'er there 23:52, 27 August 2023 (UTC)

Template-protected edit request on 3 September 2023
The link to EMA pages is dead, and should most likely be replaced as follows;

From
EU EMA -->it has begun... 21:42, 4 September 2023 (UTC)

Global Substance Registration System - GSRS
Please consider adding GSRS to the infobox.

"The Global Ingredient Archival System provides a common identifier for all of the substances used in medicinal products, utilizing a consistent definition of substances globally, including active substances under clinical investigation, consistent with the ISO 11238 standard."

--Whywhenwhohow (talk) 18:00, 24 September 2023 (UTC)

Legal status in New Zealand
Hello, could you please add the following legal status for New Zealand please.


 * Prescription
 * Restricted
 * Pharmacy only
 * A - Class A
 * B1 - Class B1
 * B2 - Class B2
 * B3 - Class B3
 * C1 - Class C1
 * C2 - Class C2
 * C3 - Class C3
 * C4 - Class C4
 * C5 - Class C5
 * C6 - Class C6
 * C7 - Class C7

Please keep the following


 * NZ : OTC
 * NZ : Temporary Class
 * NZ : Fourth Schedule

The Class A/B/C already in there can be replaced with my proposal

https://www.medsafe.govt.nz/profs/class/classintro.asp#top

Thank you! Kiwiz1338 (talk) 15:21, 3 October 2023 (UTC)

Unreferenced data is being pulled from Wikidata
As far as I can tell, and possibly related to the above edit request, this infobox template appears to be pulling unsourced data from Wikidata, which is not allowed per the long-standing RFC. For example, Borax pulls the "E number" property, which is unsourced in Wikidata. Can someone please modify this template to use Module:WikidataIB to pull the information instead of ?

The code in the above edit request should also use Module:WikidataIB. Thanks. – Jonesey95 (talk) 02:40, 15 November 2023 (UTC)
 * This has been the case forever, and is not related to the above edit request. However it does mean that the code in the sandbox is not suitable to go live right now, so I'm declining the request. * Pppery * it has begun... 02:30, 19 November 2023 (UTC)
 * 1. If I add the same URL to thousands of wikidata entries (which I think is a bad idea) then you'll do the migration?
 * 2. Did neither of you notice that the code contains a full citation for the data? 3. It does, do doesn't WP:NOTBEUC apply?
 * 4. Why should it use Module:WikidataIB? 5. Is that your opinion or a policy or guideline, Jonesey95?  6. Why did you start a new thread AND not notify me??? RudolfoMD (talk) 01:18, 20 November 2023 (UTC)
 * Module:WikidataIB is the easiest way to ensure that the data is retrieved only when it has a source. It is custom-designed for use in infoboxes (hence the name). As for starting a new thread and not pinging you, I did not research who added the code in question. Can I interest you in the little star icon at the top right corner of this window? – Jonesey95 (talk) 20:37, 20 November 2023 (UTC)
 * 1,2,3,5 remain unanswered. And 6 too, actually. --RudolfoMD (talk) 10:01, 24 November 2023 (UTC)
 * Adding references to Wikidata would be step one. Why would anyone want unsourced information in Wikidata? As for questions 2 and 3, the RFC does not prevent us from improving either Wikidata or Wikipedia, so it is reasonable to follow it. Question 4 is answered above. Question 5 is answered by an RFC, which is based on Consensus, which is a policy. Question 6 is answered above. Rather than bickering here, energy might be better spent recognizing that the RFC outcome is beneficial and helping to implement it. – Jonesey95 (talk) 14:58, 25 November 2023 (UTC)
 * It seems you're misrepresenting the RFC, per the first comment at https://en.wikipedia.org/wiki/Wikipedia:Wikidata/2018_Infobox_RfC#Post_RFC_discussion.
 * It says almost directly that a citation, as in $\begin{array}{|} \hline W\!ARNING \\ \hline \end{array}$ should be fine.
 * 1,2,3,6 remain essentially unanswered. I can't find where an RFC answers 5.
 * Why are you even arguing with me? I just noticed - you couldn't even fulfill my edit request if you wanted to.  So the answer to 1 is no.
 * TBH, I'm sick and tired of being unpleasantly surprised by one hurdle after another being thrown up as I try to accomplish this task. It's a bit absurd.
 * * Pppery *, can you please answer 1,2, and 3? RudolfoMD (talk) 11:19, 26 November 2023 (UTC)
 * Know it's not easy, RudolfoMD, and yet please be patient with us, because we're all just trying to be careful with the project and be sure only improvement takes place. Sometimes that translates into apparent absurdity, especially when some things are still so new. Frustration and incivility only lengthens the process, so please try to see that if you impatiently throw your hands up, others will too. Wish I could help more, myself, but my skills just aren't there yet.  P.I. Ellsworth &thinsp;, ed.  put'er there 16:04, 26 November 2023 (UTC)
 * Thanks. I'm trying to keep my feeling (and comments!) measured and impersonal.  I'm careful to always PRESUME everyone I interact with is just trying to be careful with the project and be sure only improvement takes place.   But your claim that "we're all" well-intentioned is unsupportable.  How many users have been banned?  How many thousands for undisclosed paid advocacy alone? So it's not appropriate to wear or ask others to wear blinders, or pretend not to be frustrated.  When there's ample evidence of bad faith, we're encouraged to call it what it is; we've even got templates to help each other with this, from uw-paid1 to 4:
 * "Stop hand nuvola.svg You may be blocked from editing without further warning if you make any further edits without responding to the inquiry you received regarding undisclosed paid editing. " to uw-vandal4 -
 * Stop hand nuvola.svg You may be blocked from editing without further warning the next time you vandalize Wikipedia..
 * The conclusion of the rfc is
 * My response to false claims that my proposed edit, which is entirely consistent with and goes well beyond the RFC's requirement, would violate it was "It seems you're misrepresenting the RFC..." Civil as can be.  If you agree, I welcome help finding someone to push the edit live and/or with more ... diplomatically ... explaining why it warrants being pushed live.  If you disagree, I welcome that and an explanation for it.
 * Can you respond to questions 1, 2, and 3, as * Pppery * is ignoring them. Can you help with that? RudolfoMD (talk) 03:53, 27 November 2023 (UTC)
 * One positive step forward would be to modify the "E number from Wikidata" section of the sandbox so that it is either commented out or uses Module:WikidataIB to retrieve only sourced data from Wikidata. – Jonesey95 (talk) 05:25, 27 November 2023 (UTC)
 * Why don't you make these edits if you want them made?
 * I notice you're aggressively ignoring the three questions, still.
 * I get the sense you are going to continue to falsely portray my proposed edit as adding unreferenced info to wikipedia and not following the RFC.
 * Please stop being disruptive. RudolfoMD (talk) 05:58, 27 November 2023 (UTC)
 * I understand that you are frustrated with my answers. Please desist from personal attacks. As for editing the code myself, I wanted to give editors who are familiar with the template, and with Wikidata, a chance to remedy the problem in a constructive way before I simply commented out or removed the non-compliant portions of code, which I see as the least good remedy. – Jonesey95 (talk) 06:14, 27 November 2023 (UTC)
 * About the E numbers: The source appears to be exactly the same for all of them, so https://www.food.gov.uk/business-guidance/approved-additives-and-e-numbers could be hard-coded into the template itself. WhatamIdoing (talk) 16:45, 28 November 2023 (UTC)