Template talk:Infobox drug
| Template:Infobox drug is indefinitely protected from editing as 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 a 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, 19
Auto-archiving period: 3 months |
| 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
|
||
|---|---|---|
|
Parameter change
editEdit request 8 December 2025
editThis edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
Bioavailability needs to be disambiguated to Bioavailability (medicine). An editor moved the article, and now the base title is a disambiguation page. Natg 19 (talk) 20:24, 8 December 2025 (UTC)
-
Done DMacks (talk) 20:34, 8 December 2025 (UTC)
- @DMacks sorry, please revert the change. The article move was reverted per RMT. Natg 19 (talk) 20:56, 8 December 2025 (UTC)
Template-protected edit request on 24 March 2026
editThis edit request to Template:Infobox drug/licence has been answered. Set the |answered= parameter to no to reactivate your request. |
Please avoid an unecessary redirect by replacing [[U.S. Food and Drug Administration|FDA]] by [[Food and Drug Administration|FDA]]. Colonies Chris (talk) 20:57, 24 March 2026 (UTC)
No MeSH identifier in template
editHi, just making a topic/request for MeSH ID/terms to be added? There are MeSH templates already which is the only reason I would see the ID not getting added to the infobox. For example, Loperamide has the MeSH ID: D008139, or LSD has D008238; all of the drugs have MeSH IDs; as the template stands, the MeSH identifier or tree cannot be added to Wikipedia pages in the infobox:drug template. Hopefully this isn't a pointless post. Thanks
Template-protected edit request on 21 May 2026
editThis edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
the property word-break should be updated following MDN's specifications.
the property word-break: break-all; causes issues where words are split in the middle rather than in hyphens, for example. this is especially unwanted with numbers ("10" turning into "1" // "0"). the correct property would be overflow-wrap: break-word;. below is a little demo:
word-break: break-all;
(6aR,10aR)-6,6,9-Trimethyl-3-pentyl-6a,7,8,10a-tetrahydro-6H-benzo[c]chromen-1-ol |
overflow-wrap: break-word;
(6aR,10aR)-6,6,9-Trimethyl-3-pentyl-6a,7,8,10a-tetrahydro-6H-benzo[c]chromen-1-ol |
the property word-break: break-word; is quite odd, since in the template, it is used to break up strings of identifiers. as such, it should be changed to overflow-wrap: anywhere;
sources:
Juwan 🕊️🌈 10:41, 21 May 2026 (UTC)
-
Old but possibly related discussion: Template talk:Infobox drug/Archive 10#SMILES problem. It seems that unless you allow it break mid-word there are some pages where the box is wider than the width of the screen, because there is nowhere to break. Pingyangmycin was given as an example. — Martin (MSGJ · talk) 11:03, 21 May 2026 (UTC)
-
@MSGJ: Not that relevant. The old discussion was about there not being any break for SMILES at all. This one is about two new ways of writing how to break.
word-break: break-all;of old just broke the line whenever the word length reaches the edge of the box.overflow-wrap: anywhere;which, despite allowing line breaks inside of unbreakable words, still prefers to avoid such an occurrence. In addition, ifwidth: min-content(which tells the browser to minimize the width of the containing box) is set, the calculation of the "minimum size that fits" includes the break-opportunities introduced by breaking otherwise unbreakable words.overflow-wrap: break-word;which is like the above, except without the min-content effect.
-
I should also note that the current situation is that IUPAC uses
word-break: break-all;while SMILES usesword-wrap: break-word;, the latter being a non-standard synonym foroverflow-wrap: break-word;. -
I am not quite able to discern what the specific request is in the sense of "replace A with B" or "change position X to Y". But according to the cited logic of web standards, IUPAC should've been using the wrap while SMILE should've been using the break, so perhaps "swap all current occurrences of word-break and word-wrap".--Artoria2e5 🌉 13:24, 9 July 2026 (UTC)
- thank you for explaining it well. that is correct. Juwan 🕊️🌈 14:19, 9 July 2026 (UTC)
- I understood maybe 30% of that explanation, but thanks for trying! I think the bigger question is whether any of this stuff belongs in the infobox or is it just clutter? Wikidata is one click away ... — Martin (MSGJ · talk) 20:48, 9 July 2026 (UTC)
-
@MSGJ: Not that relevant. The old discussion was about there not being any break for SMILES at all. This one is about two new ways of writing how to break.
Hyphenation tangential
editPersonally, although the idea of overflow-wrap: break-word; for word-ish names (IUPAC, synonym) is sound, I think it still generates too much white space. hyphens:auto (auto-hyphenation) could help by providing more break opportunities:
overflow-wrap: break-word; hyphens:auto
(6aR,10aR)-6,6,9-Trimethyl-3-pentyl-6a,7,8,10a-tetrahydro-6H-benzo[c]chromen-1-ol
Still it is a little weak due to the inability to break on parentheses (using the IUPAC name from pingyangmycin):
| no hyphens | hyphens | nh+wbr | h+wbr |
|---|---|---|---|
|
(2R,3S,4S,5R,6R)-2-{[(2R,3S,4S,5S,6S)-2-{[(1R,2S)-2-[({6-Amino-2-[(1S)-3-amino-1-{[(2S)-2,3-diamino-3-oxopropyl]amino}-3-oxopropyl]-5-methyl-4-pyrimidinyl}carbonyl)amino]-3-{[(2R,3S,4S)-5-{[(2S,3R)-1- ({2-[4-({3-[(4-aminobutyl)amino]propyl}carbamoyl)-2,4'-bi-1,3-thiazol-2'-yl]ethyl}amino)-3-hydroxy-1-oxo-2-butanyl]amino}-3-hydroxy-4-methyl-5-oxo-2-pentanyl]amino}-1-(1H-imidazol-5-yl)-3-oxopropyl]oxy}-4,5-dihydroxy-6-(hydroxymethyl)tetrahydro-2H-pyran-3-yl]oxy}-3,5-dihydroxy-6-(hydroxymethyl)tetrahydro-2H-pyran-4-yl carbamate |
(2R,3S,4S,5R,6R)-2-{[(2R,3S,4S,5S,6S)-2-{[(1R,2S)-2-[({6-Amino-2-[(1S)-3-amino-1-{[(2S)-2,3-diamino-3-oxopropyl]amino}-3-oxopropyl]-5-methyl-4-pyrimidinyl}carbonyl)amino]-3-{[(2R,3S,4S)-5-{[(2S,3R)-1- ({2-[4-({3-[(4-aminobutyl)amino]propyl}carbamoyl)-2,4'-bi-1,3-thiazol-2'-yl]ethyl}amino)-3-hydroxy-1-oxo-2-butanyl]amino}-3-hydroxy-4-methyl-5-oxo-2-pentanyl]amino}-1-(1H-imidazol-5-yl)-3-oxopropyl]oxy}-4,5-dihydroxy-6-(hydroxymethyl)tetrahydro-2H-pyran-3-yl]oxy}-3,5-dihydroxy-6-(hydroxymethyl)tetrahydro-2H-pyran-4-yl carbamate |
(2R,3S,4S,5R,6R) |
(2R,3S,4S,5R,6R) |
... which is kinda sad. Module:URL works around a similar issue by inserting <wbr /> after characters that should break like "/" and presumably we'd need something similar. I added two columns where wbr is manually inserted after closing parentheses&brackets&braces for reference.
(You might think that the nh+wbr example is better. It is, for pingyangmycin, due to hyphenation not being necessary to pack lines tighter (the "long unbreakable blocks" in the name cannot be made breakable by dictionary hyphenation rules). But observe:
overflow-wrap: break-word; + wbr
(6aR,10aR)
the big ugly blanks return!) --Artoria2e5 🌉 13:24, 9 July 2026 (UTC)
Update DrugBank field to handle metabolites?
editHello. Can we update the DrugBank ID field to also be able to handle "metabolite" DrugBank entries? Here's an example: DBMET01359. Thank you. – AlyInWikiWonderland (talk, contribs) 02:41, 11 June 2026 (UTC)
index_comment is too weak
editThe current index_comment may be intentionally underpowered to encourage the use of combination entries, but this has lead to a severe misrepresentation of drugs that are either
- undefined mixtures with more than one "main" component, or
- racemic mixtures where the distinction does not matter, or
- has multiple salt forms with several possible separate entries in external DBs
Chembox has a more complicated system where every label can have more than 5 values in addition to the unnumbered "main", and where every value can have its own comment in addition to the |index. While it is pretty flexible, I don't exactly think we need that. Just let me have more than two index_comments. Even three ([NONE],1,2) is better -- would be enough for something like bupropion (base, HCl, HBr). Artoria2e5 🌉 12:51, 9 July 2026 (UTC)