Jump to content

Template talk:Chembox

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

Relaunch "found in taxon"[edit]

After some time passed, I am trying again to advocate for the addition of a "found in taxon" line based on Wikidata as already mentioned here: https://en.wikipedia.org/wiki/Template_talk:Chembox/Archive_13#Add_%22Found_in_taxon%22-list_(proposal)

My lua skills for implementation did not improve since then but woth asking again if of any interest? AdrianoRutz (talk) 19:19, 18 March 2024 (UTC)[reply]

Clean up Template:Chembox Identifiers[edit]

On the page of {{Chembox Identifiers}}, prior to the template documentation there is a broken string: "! colspan=2 style="background: #f8eaba; text-align: center;" |Identifiers

|- "

Might want to remove that as it appears like broken infobox text. Thanks, -- Classicwiki (talk) If you reply here, please ping me. 06:31, 23 April 2024 (UTC)[reply]

Image class argument[edit]

Implement changes in sandboxes, which allow classes to be applied to images. Snowmanonahoe (talk · contribs · typos) 21:41, 16 May 2024 (UTC)[reply]

 Done Snowmanonahoe (talk · contribs · typos) 17:17, 17 May 2024 (UTC)[reply]
Thanks! Snowmanonahoe (talk · contribs · typos) 17:17, 17 May 2024 (UTC)[reply]

Dark mode optimization[edit]

On Inverted sugar syrup, ImageFileL1 and ImageFileR1 images probably will need mw-invert like this, however if the files aren't always black and white, probably some other approach is needed (cc: User:Jdlrobson) −ebrahimtalk 19:09, 4 June 2024 (UTC)[reply]

I fixed this some time ago. Use ImageClassL1 and ImageClassR1. Snowmanonahoe (talk · contribs · typos) 19:32, 4 June 2024 (UTC)[reply]
I've been considering trying to apply it to chemistry articles wholesale somehow. I wonder how one would go about analyzing an SVG to determine whether or not the only existing colors are black and/or transparent. Snowmanonahoe (talk · contribs · typos) 19:35, 4 June 2024 (UTC)[reply]
Maybe adding a parameter to the infobox would be a good first step? 🐸 Jdlrobson (talk) 22:40, 4 June 2024 (UTC)[reply]
Yes, I did that as I said in the previous comment. ImageClassL1 and ImageClassR1. Snowmanonahoe (talk · contribs · typos) 23:13, 4 June 2024 (UTC)[reply]
I thought maybe like that change for signature of Infobox person all images can have mw-invert. Another template just spotted today Template:Infobox Chinese on Art name, maybe we need a special temporarily wikiproject or a noticeboard for enlisting and fixing dark mode related issues (cc: User:Snowmanonahoe and User:Jdlrobson) −ebrahimtalk 12:24, 7 June 2024 (UTC)[reply]
We have mw:Talk:Reading/Web/Accessibility for reading but it's not advertised that much. Snowmanonahoe (talk · contribs · typos) 13:43, 7 June 2024 (UTC)[reply]
What about adding a new category e.g. Category:Templates with dark mode issues ? We could subscribe to that and use it to flag dark mode issues? 🐸 Jdlrobson (talk) 15:43, 8 June 2024 (UTC)[reply]
Essentially all chemical-structure diagrams are line-art and most use transparent background. It's nowhere near contained to chembox/drugbox. See for example [1]. DMacks (talk) 16:48, 8 June 2024 (UTC)[reply]

Certain features not working[edit]

Not sure if this is correct forum to post this. When I try to use some features, such as quadruple bond ($) and square planar (@SP) when editing the SMILES model in chembox of a compound on Wikipedia, it ends up either crashing or not rendering correctly. Anyone knows why this may be the case? AnDeargMor (talk) 12:00, 12 June 2024 (UTC)[reply]

Hi AnDeargMor,
Could you explain what you mean by "crashing", and what kind of "rendering" you mean? Some specific examples would be best. DMacks (talk) 15:03, 12 June 2024 (UTC)[reply]
For instance, when I was trying to indicate square planar structure for Cisplatin by using [NH3][Pt@SP1](Cl)(Cl)[NH3] with notation from the Daylight Chemical Information Systems’ theory manual on SMILES, it instead showed the platinum as a pink atom and the structure stayed tetrahedral. Also, when I was trying to indicate the presence of the quadruple bond in Chromium(II) Acetate using [Cr+2]1234([OH2])$[Cr+2]([OH2])(O[C-](C)O1)(O[C-](C)O2)(O(C)[C-]O3)O(C)[C-]O4, it simply says it can’t load the file when I click on the link to the model AnDeargMor (talk) 16:13, 12 June 2024 (UTC)[reply]
The JSmol tool in the Chembox and Drugbox is hosted by a third party, and is unfortunately limited in its ability to handle metal-complex and several other classes of structures that have special or complicated geometry based on our SMILES strings. And it relies on a fourth party (NCI CACTUS server) for some structures, adding yet another layer of possibly fragile interaction or incomplete support. Wish we had a better way:( DMacks (talk) 17:11, 12 June 2024 (UTC)[reply]
Sounds complex as hell. I’ve also noticed that any SMILES model with Uranium in it will fail to load, is the convoluted hosting also a cause for this? AnDeargMor (talk) 11:33, 13 June 2024 (UTC)[reply]