Template talk:Infobox drug
Template:Infobox drug is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
This is the talk page for discussing improvements to the Infobox drug template. |
|
Archives: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19Auto-archiving period: 90 days |
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||||||||||||||||
|
Infobox drug: Changes log
| ||
---|---|---|
|
What about the name of company that manufactured that drug?
[edit]What about the name of company that manufactured that drug? Abhiramakella (talk) 16:05, 8 February 2024 (UTC)
Black Box Warning
[edit]I had a question regarding how the Black Box warning code is implemented and if the following is possible.
Many drugs have Black Box warnings only for certain preparations of the drug. Is there a preferred way to mention this? I thought about putting the sentence "The US FDA Black Box warning only applies to certain preparations of the drug, including ___, where the warning says: ___" or something along those lines, but it's clunky.
For example with baclofen, neither the preparations Lyvispah oral granules, nor Ozobax oral solution have black box warnings, but Lioresal intrathecal does. In the case of this particular article, the contents of the black box warning are mentioned in the Adverse Effects section, but there is no explicit clarity if someone sees the Black Box Warning symbol in the infobox and goes to the article body to try to see the details of that.
I was going to ask on RudolfoMD's page but it seems they are indefinitely blocked.
Kimen8 (talk) 16:06, 1 March 2024 (UTC)
Units for molar mass
[edit]Please see discussion at Template talk:Chem molar mass#Non-standard molar mass notation that is about the display of part of the Drugbox. DMacks (talk) 04:07, 3 July 2024 (UTC)
Add a Tmax field
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Diff:
− | + | Tmax |
Hplotter (talk) 13:52, 24 July 2024 (UTC)
Not done: it's not clear what changes you want to be made. Please mention the specific changes in a "change X to Y" format and provide a reliable source if appropriate. – Jonesey95 (talk) 23:25, 24 July 2024 (UTC)
- It is very clear if you know what Tmax stands for Hplotter (talk) 13:14, 25 July 2024 (UTC)
- @Hplotter: I agree with Jonesey95—you need to be more explicit (please). —DocWatson42 (talk) 13:03, 27 July 2024 (UTC)
- I want to add a field for Tmax values. Hplotter (talk) 13:24, 27 July 2024 (UTC)
- @Hplotter: I agree with Jonesey95—you need to be more explicit (please). —DocWatson42 (talk) 13:03, 27 July 2024 (UTC)
- It is very clear if you know what Tmax stands for Hplotter (talk) 13:14, 25 July 2024 (UTC)
- Can something be done about it, please? Hplotter (talk) 13:40, 13 August 2024 (UTC)
Error in US "Rx-only"
[edit]Greetings and felicitations. In the article "Chlorpromazine"'s "Legal status" section, the warning and its reference, and the "Rx-only" run together like so: "US: WARNING[2]℞-only". I don't know enough template markup to specify what the fix it, but there should be space after the superscripted reference. —DocWatson42 (talk) 13:13, 27 July 2024 (UTC)
- Hi. That's PX, not RX. P stands for prescription. Aminabzz (talk) 19:03, 13 August 2024 (UTC)
Change image and image2 default background to white.
[edit]Dark layout makes the SVG-images look ugly and non-readable. -- 0dorkmann (talk) 10:40, 29 July 2024 (UTC)
Template-protected edit request on 12 August 2024
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Hello, I have moved two pages about the German "Betäubungsmittelgesetz" to use the law's English title "Narcotic Drugs Act" (per WP:UE). Template:Infobox drug/legal status points to Drugs controlled by the German Betäubungsmittelgesetz which is now a redirect to Drugs controlled by the German Narcotic Drugs Act. Can you please update the link to skip the redirect? Thank you! Ich (talk) 12:12, 12 August 2024 (UTC)
Chemical structure images are poorly visible in dark mode
[edit]Hello,
As Aminabzz pointed out at the Teahouse and 0dorkmann mentioned above, pages that use this infobox to show a chemical structure do not work well in dark mode. The SVG files used to represent the structures use dark lines, which become almost invisible on the black background of dark mode. Using ranitidine as an example, this is what its infobox looks like in dark mode.
As it turns out, there are MediaWiki recommendations for handling this issue: specifically, to apply the skin-invert
or skin-invert-image
classes to elements wrapping the image. This applies a CSS invert filter to the image, making it readable in dark mode.
Using my browser's dev tools, I tested applying the skin-invert-image
class to a span
element wrapping the image for ranitidine. The result looks like this, which I think is pretty good - the lines turn white and the structure is readable.
However, I don't think the solution is as easy as indiscriminately adding a skin-invert-image
wrapper to all the image fields in this infobox. For example, this is what happens if I do the same thing for the image of the 3D structure of ranitidine; much of the color contrast in the picture is lost.
So, I figured I'd post this here to see what thoughts people have. I suppose indiscriminately forcing a white background for any images within this infobox would technically solve the problem, but may not be the most aesthetically pleasing approach. Another option might be to add a parameter to the template specifying that the image should be wrapped in an element with the skin-invert-image
class, but that would require modifying all the pages displaying chemical structures with this infobox to use that parameter. nmaeltalk 18:49, 13 August 2024 (UTC)