User:Zackmann08/Chembox

Before merge can happen

 * Deal with Chembox Footer/tracking
 * Figure out what the story with Chembox parametercheck is...

After merger starts

 * Convert Infobox chemical/subtemplates to a navigation template to be used in the documentation of all the different sub-templates that links to all the related sub-templates.
 * Make sure all tracking categories (for example Category:Chembox having GHS data) are renamed and redirected.
 * Move Chembox CalcTemperatures to Infobox chemical/calc temps
 * Move Chembox Elements/molecular formula to Infobox chemical/molecular formula
 * update Infobox drug/chemical formula to redirect properly.
 * Finish adding Template Data

Done

 * Update Wikidata - Template:Chembox
 * Check for categories being applied in all sub templates
 * Check on the use of wikidata in some places -> Chembox Identifiers appears to use it for a few values.
 * Rationalize Infobox chemical/supplement --- it currently makes no sense: it has wlinks, some on the left, some of the right.
 * Fix Infobox chemical/hazards to include the outdated fields. See: Boron nitride

Future enhancements

 * This is for things to consider down the road as possible improvements.
 * I don't want to change the look and feel of the template too much during this transition.


 * Infobox chemical/calc temps should be able to use convinfobox
 * Consider WP:TEMPLATECAT. Should we really be applying categories with the template?
 * DetonationV in Infobox chemical/explosive should be converted
 * Remove bordered class from Infobox
 * Copy all parameters into main infobox? (so that people don't need to know which subtemplates to use)
 * Regroup solubility parameters so they lie under a single subheader? (reducing the overuse of the word "solubility")

Questions & General Notes

 * Is there a case where there would be a left image and no corresponding right image?
 * Watchedfields is not a supported param anymore. This is intentional. If you trace the param it goes Chembox&rarr;Chembox Footer&rarr;Chembox verification where it is never actually used. Therefore it can simply be removed. See this diff.

Improvements
The end goal here is that the new template should look nearly identical when rendered on a page. Additionally, the process for implementing the template on a page is almost identical. Below are some of the many improvements that were implemented during the conversion.
 * Uses Infobox as a base. The use of the Infobox template and module as a base is in line with over 99% of the Infobox templates on the English Wiki. This thoroughly documented and tested template keeps infoboxes consistent across the site and is responsible for many of the features described below. Downstream users of Wikipedia use the common structure of Infobox to scrape data from them or hide them (as necessary).
 * In line with WP:ACCESSIBILITY. Perhaps the biggest difference between how the two templates render is size. You will notice in the side by side comparison that some things things are showing up bigger than before, but this follows the requirements of WP:ACCESSIBILITY.
 * Fewer templates to maintain. Chembox has separate templates for nearly every single row in the table, adding up to well over 200 separate templates, more than is necessary. This implementation shrinks that down to under 20 making things much easier to maintain, update and build on in the future. It does this while still maintaining the same functionality.
 * Builds on the style, look and feel of Infobox drug. The Infobox drug template, formally known as Drugbox was also converted to use Infobox. This implementation of Infobox chemical uses many of the same styles and subtemplates as that reducing overhead and duplication of code.
 * Implements much better Check for unknown params. The use of Module:TemplatePar is fine, but it has a much more narrow scope and is not nearly as well documented or maintained as Module:Check for unknown parameters. This module is used on over 8,000,000 pages.
 * Reduces WP:OVERLINK & MOS:DUPLINK. Nearly every label in Chembox is linked including things like Eye Hazard which have no reason to be linked and violate the aforementioned policies.
 * From the editors point of view, works the same. These templates will work exactly the same as the Chembox series of templates. NO parameters have changed. So apart from having to call instead of, there is no change to how editors will use the templates. No new parameters & no new syntax. As per the other points made here, there are certainly some minor stylistic changes to how the template renders, but I want to be clear that for the editor, nothing new except for calling a different template.
 * Retains the subtemplate structure of Chembox. There has often been discussion about the multi template structure of the Chembox. (Chembox Hazards, Chembox Identifiers, etc.). The use of these templates also has NOT been changed. You can still put the hazard section or the identifiers section, etc. in any order you want. I intentionally kept that the same. The subtemplates have also been converted as part of this process. So Chembox Hazards &rarr; Infobox chemical/hazards.

I invite you all to take a look at this new possible implementation. Be sure to check out the testcases that provide a side by side comparison of the Chembox implementation versus the new Infobox based one:
 * {| class="wikitable sortable" style="text-align: center;"

! Old chembox version !! Infobox chemical equivalent !! Testcases
 * Chembox Identifiers || Infobox chemical/identifiers ||testcases
 * Chembox Properties||Infobox chemical/properties||testcases
 * Chembox Structure||Infobox chemical/structure||testcases
 * Chembox Thermochemistry||Infobox chemical/thermochemistry||testcases
 * Chembox Explosive||Infobox chemical/explosive||testcases
 * Chembox Pharmacology||Infobox chemical/pharmacology||testcases
 * Chembox Hazards||Infobox chemical/hazards||testcases
 * Chembox Related||Infobox chemical/related||testcases
 * Chembox Supplement||Infobox chemical/supplement||testcases
 * }
 * Chembox Pharmacology||Infobox chemical/pharmacology||testcases
 * Chembox Hazards||Infobox chemical/hazards||testcases
 * Chembox Related||Infobox chemical/related||testcases
 * Chembox Supplement||Infobox chemical/supplement||testcases
 * }
 * Chembox Related||Infobox chemical/related||testcases
 * Chembox Supplement||Infobox chemical/supplement||testcases
 * }
 * }

Discussion posts

 * 1) on Chembox
 * 2) WikiProject Chemicals
 * 3) WikiProject Chemistry
 * 4) WikiProject Templates

Users

 * Qui1che
 * Smokefoot
 * Rover McClenon
 * Nick
 * AfroThundr3007730
 * Biochemistry&Love
 * Isnotafox
 * ChemMater
 * Hike395

Links
,, , , , , , , , , , ,