Template:Format molecular formula

From blackwiki
Revision as of 11:29, 12 May 2016 by test>Crissov (support x and y indices as in NOx, <sub style="font-variant-position:sub">)
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 (O).

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

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

Similar templates

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