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: | |||||||||||||||||||||
|
Local-image parser bug
[edit]{{Chembox}} categorizes an article in Category:Chemical pages containing a local image if |ImageFile=
(or similar field) is an image that is on the local wiki rather than on commons. However, Curium(III) chloride contains the local File:Curium(III) chloride.jpg but is not in the local-image category. It looks like a general bug when the filename contains a parenthesis: switching in other random enwiki images to that article sets the cat, and other chembox articles containing local images with parens does not set the cat. DMacks (talk) 16:48, 10 February 2025 (UTC)
- Bug is in {{ParmPart}}, where {{#titleparts}} doesn't like some URL-encoded strings. It's a documented WP:NCTECHNICAL#Other problematic characters limitation of that parser function. Given we can't be sure how a filename will be passed, we should probably switch to {{string split}} instead of #titleparts or maybe just {{in string}} instead of ParmPart. DMacks (talk) 16:55, 10 February 2025 (UTC)
The {{Chembox Identifiers}} page has an error
[edit]At the very beginning of the page {{Chembox Identifiers}} writes some code:
! colspan=2 style="background: #f8eaba;color:inherit; text-align: center;" |Identifiers |-
That code should not be visible on the page. It shows there is a code error. Please someone repair the error. Bernardirfan (talk) 18:45, 5 May 2025 (UTC)
ECHA InfoCard link on Chembox Identifiers
[edit]In the last few days I have noticed that the links for ECHA InfoCard no longer work, and give blank results. THis may be an error on ECHA's part. But the link from Wikidata works. EG https://echa.europa.eu/substance-information/-/substanceinfo/100.031.926 give blank info, but Wikidata's link https://www.echa.europa.eu/substance-information/-/substanceinfo/100.031.926 works as expected. So perhaps we need to add in "www." Graeme Bartlett (talk) 08:07, 20 July 2025 (UTC)