Template:Molecular formula index/doc

Template documentation
will add this template to the article, in Category:Molecular formula set index pages

Adding an unnamed parameter, as in  will also affect the displayed title of the article, so the title can be displayed with the subscript numerals of a typical chemical formula, e.g.
 * C2H6O

where C2H6O is the actual page name.

Adding a prefix switch will place the page in a sub-category of the Category:Molecular formula set index pages instead of "directly" to the category. (At present, the only sub-category is Category:Inorganic molecular formula set index pages, assigned via Inorganic, but creation, assignment to the parent category, and updating this documentation are the only pre-requisites for using additional ones.)

This template adds the page that uses it to Category:Molecular formula set index pages, or to one of its subcategories. (The page was previously added to Category:Molecular formulas as well, but doing so added the page to both a category and an ancestor of that category, a practice deprecated as functionally redundant, and contributing to cluttering of the ancestor's member list.)

The organization of pages within Category:Molecular formula set index pages is currently in flux, while uses of the (enhanced) template are being edited to use the new heading switch. The organization of page names on the cat page is effected via that switch, but relies on users' codings of the heading switches. The coding currently in progress is as follows: the Cat member pages for specific-count, organic formulas are forced into 13 groups according to their switch values, with the Wiki engine sorting alphanumerically within those groups. The first 9 groups are numbered 1 to 9, with the number corresponding to the carbon-atom count. The low and high portions (boundary = 15.5) of the 10-19 carbon formulas are under A and B respectively. (C is reserved.) The 20-29-carbon ones form group D, and the rest (currently 30-45, and 56) form group E.