Extension:StockCharts

From MediaWiki.org
Jump to: navigation, search

Note: this extension collects information from your computer - see the Terms of use.

MediaWiki extensions manual - list
Crystal Clear action run.png
StockCharts

Release status: beta

StockCharts extension image.png
Implementation Special page
Description Allows users to include interactive financial charts within an article. Charts cover stocks prices, but also economic data such as the Consumer Price Index and interest rates. Charts are flash-powered and users can pan and zoom without a page refresh. Data is provided by Thomson / Reuters and Xignite, with a 15-20 minute delay.
Author(s) Brendan Meutzner, Anton Zolotkov, Roger Fong
Last version 0.1 (2009-06-04)
MediaWiki 1.9.3+
License No license specified
Download

Check usage (experimental)

The StockCharts extension adds a <stockchart ticker="TIKR"/> tag extension and {{#stockchart: ticker="TIKR"}} parser function that allows users to include interactive financial charts within an article. Charts cover stocks prices, but also economic data such as the Consumer Price Index and interest rates. Charts are flash-powered and users can pan and zoom without a page refresh. Data is provided by Thomson / Reuters and Xignite, with a 15-20 minute delay.

Contents

[edit] License

Copyright 2007-2009 Wikinvest.com

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

[edit] Authors

Brendan Meutzner ( brendan @ wikinvest.com )

Anton Zolotkov ( anton @ wikinvest.com )

Roger Fong ( roger @ wikinvest.com )

[edit] Pre-requisites

This extension was tested with Mediawiki 1.9.3 and 1.15alpha.

[edit] Configuration & Installation

  • Get the source via SVN
  • Add this line to your LocalSettings.php
require_once('extensions/StockCharts/StockCharts.php');

[edit] Use and Options

To embed a stock chart in an article, use the syntax:

<stockchart ticker="TIKR"/>

or

{{#stockchart: ticker="TIKR"}}

The 2nd syntax works within templates.


Options you can specify are:

  • ticker - stock ticker (required)
  • width - width of chart
  • height - height of chart
  • title - custom title for chart
  • range - range / zoom of chart. Possible values: "1 day", "5 days", "1 month", "3 months", "6 months", "1 year", "2 years", "5 years", "10 years", "full"

[edit] Bugs and enhancements

Bugs or feature requests can be sent to the author at charts-help @ wikinvest.com.

Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox