Template talk:Chembox
Template:Chembox 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 Chembox template. |
|
Archives: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13Auto-archiving period: 2 months |
This page is for discussion about format, layout, content (parameters), and application howto of the Chemical infoboxes. Discussions older than several months, and now outdated, are archived. Planning and progress of implementation of these infoboxes to the numerous articles is discussed and (where possible) organized in the Chemicals WikiProject, part of the Chemistry WikiProject. |
This template was considered for deletion on 2018 November 26. The result of the discussion was "withdrawn". |
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||||||
|
Duplicate parameters
[edit]In Ammonium hexacyanoferrate(II), {{Chembox Properties}} has two values for the "N" parameter, which might be chemically correct, but the template returns an error:
- Warning: Ammonium hexacyanoferrate(II) is calling Template:Chembox Properties with more than one value for the "N" parameter. Only the last value provided will be used.
Has it been applied incorrectly? —GoldRingChip 16:53, 18 September 2024 (UTC)
- Passing more than one N parameter is not correct in this context, per the template's docs and technical meaning of this set of fields. I fixed the parameters (there was also another mistake). DMacks (talk) 16:59, 18 September 2024 (UTC)
- Thank you. —GoldRingChip 17:20, 18 September 2024 (UTC)
Spacing
[edit]This template is generating an extra <p>
element above the lead section at Carbon dioxide containing TemplateStyles. I've no idea how you might fix that. Hairy Dude (talk) 10:32, 24 September 2024 (UTC)
Drug_class field not working
[edit]Hello. The "Drug_class" field in Section6 "Chembox Pharmacology" (see Template:Chembox_Pharmacology/doc for documentation) does not seem to be working. The field does not show in the drugbox when filled and instead this text is deposited on the page: "Template:Chembox DrugClass". Hoping for a fix so that this field can be used. Thank you. – 76.174.0.57 (talk) 10:33, 7 November 2024 (UTC)
Dark mode support for images
[edit]Can we add skin-invert-image to the images in this box or give them a white background?
The chemical formulae are not readable in dark mode e.g. https://en.wikipedia.org/wiki/Borax?vectornightmode=1&useskin=vector-2022 🐸 Jdlrobson (talk) 00:40, 25 November 2024 (UTC)
ChEMBL links no longer work
[edit]The ChEMBL links in the chembox no longer work. Eg from Chebulinic acid it leads to https://www.ebi.ac.uk/chembl/db/index.php/compound/inspect/ChEMBL501154 which returns a 404 page not found. Wikidata though links are working eg https://www.ebi.ac.uk/chembl/explore/compound/CHEMBL501154 . Can this be fixed please? Graeme Bartlett (talk) 04:12, 27 November 2024 (UTC)
- Thanks for catching that and providing the fix! I updated the links in both chembox and drugbox. DMacks (talk) 08:04, 27 November 2024 (UTC)