Template:Chemical formula

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Template documentation[view] [edit] [history] [purge]

Usage[edit]

Use the odd parameters for atoms (automatically linked) or miscellaneous text, and the even parameters for number of atoms. For example:

  • {{Chemical formula|H|2|O}} produces: H2O
  • {{Chemical formula|H2O}} produces: H2O
  • {{Chemical formula|H|2|S||O|4}} produces: H2SO4
  • {{Chemical formula|Ca||SO4}} produces: CaSO4

See also[edit]

  • Template:Chem, which allows providing charge, atomic number and mass number, but doesn't automatically link the elements or common formulas
  • Template:Chem2, which has same functionality e.g. {{chem2|auto=yes|H2SO4}} gives H
    2
    SO
    4