Difference between revisions of "Template:Format molecular formula/doc"
Jump to navigation
Jump to search
test>Renamed user awfwvowjvwrvnwio |
test>Renamed user awfwvowjvwrvnwio |
||
| Line 8: | Line 8: | ||
The Lua module just puts "<nowiki><sub></sub></nowiki>" tags in the wanted spots. | The Lua module just puts "<nowiki><sub></sub></nowiki>" tags in the wanted spots. | ||
| + | |||
| + | == Similar templates == | ||
| + | |||
| + | {{tl|Format ion formula}}, for ion chemical formulas. | ||
Revision as of 14:42, 29 September 2015
Usage
| 30px | 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
{{Format ion formula}}, for ion chemical formulas.