Extension:Financial Mathematics

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.svg
FinancialMathematics

Release status:Extension status beta

ImplementationTemplate:Extension#type Parser extension, Tag
DescriptionTemplate:Extension#description Calculate and explain annuity certain calculations (introductory Financial Mathematics)
Author(s)Template:Extension#username Owen Kellie-Smith (OwenKStalk)
Latest versionTemplate:Extension#version 0.3.11 (24 November 2015)
MediaWikiTemplate:Extension#mediawiki 1.25+
LicenseTemplate:Extension#license MIT License
Download https://github.com/owen-kellie-smith/financial-maths-mediawiki/archive/master.zip
https://github.com/owen-kellie-smith/financial-maths-mediawiki/blob/master/README.md
Hooks usedTemplate:Extension#hook
ParserFirstCallInitManual:Hooks/ParserFirstCallInit

Translate the Financial Mathematics extension if it is available at translatewiki.net

Check usage and version matrix.

The Financial Mathematics extension calculates compound interest functions.

Installation[edit]

  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'Financial Mathematics' );
    
  • YesY Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

To users running MediaWiki 1.24 or earlier:

The instructions above describe the new way of installing this extension using wfLoadExtension() If you need to install this extension on these earlier versions (MediaWiki 1.24 and earlier), instead of wfLoadExtension( 'Financial Mathematics' );, you need to use:

require_once "$IP/extensions/Financial Mathematics/Financial Mathematics.php";

In fact please ignore any message about how to install the extension on MediaWiki 1.24 or earlier. The extension does not work on MediaWiki 1.24 or earlier.

Usage[edit]

Go to Special:FinancialMathematics on your wiki, select and populate a calculator and hit "Calculate". To include the output result on a wiki page, copy all of the XML within <fin-math> tags from the bottom of the Special:FinancialMathematics page into your wiki page.

See http://demowiki-treaties.rhcloud.com/wiki/index.php/Special:FinancialMathematics for an example of the Special:FinancialMathematics page, and http://demowiki-treaties.rhcloud.com/wiki/index.php/Financial_Mathematics_examples for examples of pages where the <fin-math> tag is used.

Bugs, feedback[edit]

Please raise a new issue at github. https://github.com/owen-kellie-smith/financial-maths-mediawiki/issues