Template:Format molecular formula

From blackwiki
Revision as of 02:02, 21 October 2015 by test>Jackmcbarn (Undid revision 686543038 by Luis150902 (talk): As far as I can tell, this just added an unnecessary ifeq and level of nesting. If there were ever any ambiguous cases, please explain them)
Jump to navigation Jump to search

This template requires an unnamed parameter (plain text molecule representation to format as wikitext).

50px Template documentation[view] [edit] [history] [purge]

Usage

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

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

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

Similar templates

{{Format ion formula}}, for ion chemical formulas.