Jump to content

Template talk:Related molecular formulas

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

Layout bugs for heteroatoms

[edit]

Looking at the /doc examples, there is a large amount of whitespace between the top block (saturation and methylene variations)) and the bottom block (heteroatom variations). In the first heteroatom row (oxygen), the –O vs +O are on separate lines. The whitespace situation is when there are any heteroatoms (and even when there are no heteroatoms); the oxygen-row situation only happens when there are both O and N rows. DMacks (talk) 11:34, 25 October 2025 (UTC)[reply]

Fixed. Thanks! DMacks (talk) 12:01, 25 October 2025 (UTC)[reply]

Bug with explicit =0 heteratom count

[edit]

Presumaby that last should be equivalent to omitting the N parameter altogether. DMacks (talk) 11:52, 25 October 2025 (UTC)[reply]

Fixed. Nucleus hydro elemon (talk) 12:24, 25 October 2025 (UTC)[reply]
Thanks. DMacks (talk) 12:26, 25 October 2025 (UTC)[reply]

Refactoring

[edit]

{{Compose molecular formula}} might be a way to clean up this template-family by factoring out every time you need to format a molecular formula and link to its setindex. DMacks (talk) 05:01, 26 October 2025 (UTC)[reply]

Done. Thanks for the template! Nucleus hydro elemon (talk) 15:49, 1 November 2025 (UTC)[reply]
And thank you for catching my typos, and fixing some other corner-cases. DMacks (talk) 15:55, 1 November 2025 (UTC)[reply]