Extension:ContributionReporting
|
ContributionReporting Release status: beta |
|||
|---|---|---|---|
| Implementation | Special page | ||
| Description | Displays statistics for contributions made to the Wikimedia Foundation. | ||
| Author(s) | Trevor Parscaltalk | ||
| Last version | SVN (2009-11-14) | ||
| MediaWiki | 1.14alpha and higher | ||
| License | GPL v2 | ||
| Download | |||
|
|||
| Check usage and version matrix | |||
| Bugs: list open list all report | |||
Contents |
ContributionHistory [edit]
Special page providing complete contribution history.
ContributionTotal [edit]
Transcludable special page that provides a total amount contributed for a given fiscal year.
FundraiserStatistics [edit]
Special page that shows a bar chart, comparing daily takes of multiple fundraisers.
ContributionStatistics [edit]
Special page which builds reports for contributions to the WikiMedia Foundation. Data is relative to either a specific range of dates or the current fiscal year. This extension also depends on (and is part of) ContributionReporting. If ContributionStatistics is included manually, instead of automatically by ContributionReporting, the MediaWiki database will be used - which functionality is for testing only.
Usage [edit]
By appending /range/start_date:end_date to the end of the page url, such as Special:ContributionStatistics/range/2008-11-03:2009-07-01 you can generate statistics for a given range of dates. The end date is optional, and if not set the effective end date will become the end of the current fiscal year.
ContributionReporting defines a parser function, #contributiontotal. It accepts two parameters: fundraiser, which is the ID of a fundraiser; and fudgefactor, which is how much to adjust the total by. Here is an example:
{{#contributiontotal:fundraiser=2009|fudgefactor=1}}
Installation [edit]
This extension depends on access to a CiviCRM database, namely the public_reporting table. Without access to that table, this extension will not work.
- Copy the ContributionReporting folder into your extensions directory.
- Add the following line to the bottom of LocalSettings.php
require_once ( "$IP/extensions/ContributionReporting/ContributionReporting.php" );
Configuration [edit]
The following parameters can be set by defining values for the following variables in your LocalSettings.php file.
| Parameter | Description | Default Value |
| $egContributionStatisticsFiscalYearCutOff | The first day of the fiscal year. | July 1 |
| $egContributionStatisticsViewDays | Maximum number of days to show in the daily totals table. | 7 |
| This extension is being used on one or more Wikimedia projects. This probably means that the extension is stable and works well enough to be used by such high-traffic websites. Look for this extension's name in Wikimedia's CommonSettings.php and InitialiseSettings.php configuration files to see where it's installed. A full list of the extensions installed on a particular wiki can be seen on the wiki's Special:Version page. |