Extension:Chemistry

Chemistry contains a couple of extensions written by Dirk Beetstra (EN Wikipedia site). The extensions give some functionality for mediawiki's containing pages about chemistry.


 * Chemistry/SpecialChemicalsources.php is a page which works like the Special:Booksources-page, but with a whole set of chemical identifiers.
 * Chemistry/ChemFunctions.php contains a set of tags for use on chemical pages
 * converts the text between the two tags into a chemical formula, while linking to the Special:Chemicalsources page provided by the extension Chemistry/SpecialChemicalsources.php.

All extensions REQUIRE the same i18n internationalisation file Chemistry/ChemFunctions.i18n.php

The two extensions work independently from each other, but the tag defined in ChemFunctions does call the Special:Chemicalsources (hence, will result in a non-working link when the other extension is not activated).

Installation

 * 1) Download the files from SVN (here)
 * 2) Copy the i18n file, and the extension of your choice to your \extensions directory
 * 3) Add the following line(s) to your LocalSettings.php:
 * require_once( "$IP/extensions/ChemFunctions.php" );
 * (for the ChemFunctions tags)
 * require_once( "$IP/extensions/SpecialChemicalsources.php" );
 * (for the Special:Chemicalsources page)