Template:Format molecular formula/doc
Jump to navigation
Jump to search
| This is a documentation subpage for Template:Format molecular formula. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
[edit source]| File:Lua-Logo.svg | This template uses Lua: |
| File:Ambox warning yellow.svg | This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, your own user sandbox, or the general template sandbox, before changing anything. |
{{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 source]{{Format ion formula}}, for ion chemical formulas.