Jump to content

Template talk:Chembox

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

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)[reply]

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)[reply]

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)[reply]

[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)[reply]