Template:Format molecular formula/doc

From blackwiki
< Template:Format molecular formula
Revision as of 22:36, 24 September 2015 by test>Jackmcbarn (uses Module:String now)
Jump to navigation Jump to search

Usage

{{Format molecular formula|H2O}} gives the molecular formula for water (H2O).

Example arguments: H2O (above), CO2, H4C2O, H2SO4.

The Lua module just puts "<sub></sub>" tags in the wanted spots.