Template talk:Elementdata/New
Jump to navigation
Jump to search
Idea[edit source]
The colour of the infobox could change its colour depending on what group it's in (alkali metals are red, alkaline earth metals are orange, etc), sort of like the Wikipedia Element infobox. Brown9622, the 9622nd version of brown · 18:03, 29 November 2023 (UTC)
- This "small" feature is supported by several KBs of code... The WP template uses
headerstyle=background:{{Infobox element/symbol-to-block|symbol={{{symbol|}}}|format=bgcolor}}
, Module:String with some regex, and a huge {{#switch:}} to automatically set the color. (And we can't just copy the WP stuff due to dependency problems.) The lazier way would be to add abg={{{background}}}
param and manually set it for each element (118 edits). But IMO, either way, it would be too much work for too small a feature EmulsifiedExcuse (talk) 15:52, 5 December 2023 (UTC)