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

From blackwiki
Jump to navigation Jump to search
test>Jackmcbarn
(uses Module:String now)
test>Renamed user awfwvowjvwrvnwio
Line 5: Line 5:
 
<code><nowiki>{{Format molecular formula|H2O}}</nowiki></code> gives the [[molecular formula]] for [[water]] ({{Format molecular_formula|H2O}}).
 
<code><nowiki>{{Format molecular formula|H2O}}</nowiki></code> gives the [[molecular formula]] for [[water]] ({{Format molecular_formula|H2O}}).
  
Example arguments: H2O (above), [[carbon dioxide|CO2]], H4C2O, [[sulfuric acid|H2SO4]].
+
Example arguments: H2O (above), [[carbon dioxide|CO2]] ({{Format molecular formula|CO2}}), 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:01, 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.