Extension:Chemistry
From MediaWiki.org
|
Chemistry Release status: unknown |
|||
|---|---|---|---|
| Description | |||
| Author(s) | Dirk Beetstra | ||
| License | No license specified | ||
| Download | Download snapshot Subversion [Help] |
||
|
|||
|
Check usage (experimental) |
|||
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
- <chemform> 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 <chemform> defined in ChemFunctions does call the Special:Chemicalsources (hence, will result in a non-working link when the other extension is not activated).
[edit] Installation
- Download the files from SVN (here)
- Copy the i18n file, and the extension of your choice to your \extensions directory
- 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)
