Difference between revisions of "Template:Format molecular formula/doc"

From blackwiki
Jump to navigation Jump to search
test>Renamed user awfwvowjvwrvnwio
test>Renamed user awfwvowjvwrvnwio
Line 5: Line 5:
 
<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}}).
  
Example arguments: H2O (above), [[carbon dioxide|CO2]] ({{Format molecular formula|CO2}}), H4C2O ({{Format molecular formula|H4C2O}}),  [[sulfuric acid|H2SO4]] ({{Format molecular formula|H2SO4}}).
+
Example arguments: H2O (above), [[carbon dioxide|CO2]] ({{Format molecular formula|CO2}}), [[ethyl alcohol|H4C2O]] ({{Format molecular formula|H4C2O}}),  [[sulfuric acid|H2SO4]] ({{Format molecular formula|H2SO4}}).
  
 
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.

Revision as of 07:04, 26 September 2015

Usage

{{Format molecular formula|H2O}} gives the molecular formula for water (H2O).

Example arguments: H2O (above), CO2 (CO2), H4C2O (H4C2O), H2SO4 (H2SO4).

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