Template:Format molecular formula/sandbox
Appearance
This template requires an unnamed parameter (plain tet molecule representation to format as wikitet).
| This is the template sandbox page for Template:Format molecular formula (diff). See also the companion subpage for test cases. |
Usage
[edit]| This template uses Lua: |
{{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
[edit]{{Format ion formula}}, for ion chemical formulas.