Difference between revisions of "Template:Format molecular formula/doc"
Jump to navigation
Jump to search
test>Renamed user awfwvowjvwrvnwio |
test>Renamed user awfwvowjvwrvnwio |
||
| Line 2: | Line 2: | ||
{{Lua|Module:String}} | {{Lua|Module:String}} | ||
| + | {{Intricate template}} | ||
<code><nowiki>{{</nowiki>[[Template:Format molecular formula|Format molecular formula]]|H2O<nowiki>}}</nowiki></code> gives the [[molecular formula]] for [[water]] ({{Format molecular_formula|H2O}}). | <code><nowiki>{{</nowiki>[[Template:Format molecular formula|Format molecular formula]]|H2O<nowiki>}}</nowiki></code> gives the [[molecular formula]] for [[water]] ({{Format molecular_formula|H2O}}). | ||
Revision as of 07:24, 18 November 2016
Usage
| This template uses Lua: |
| 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, the general template sandbox, or your user space before changing anything here. |
{{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.