UESPWiki:DailyEdits
The UESPWiki – Your source for The Elder Scrolls since 1995
< UESPWiki
Special:DailyEdits is a custom extension written to simply display the number of edits per day meant to be used as a rough indicator of the wiki's activity.
Features[edit]
-
- Output count of wiki edits by day in table form.
- Sort by date or by daily edit count.
- Optional graph output to image.
- Optional output in CSV format.
- Tested on MediaWiki 1.19.3. In theory it should work fine down to 1.14. Before that it may require modification to work.
Installation[edit]
-
- Download/copy the 5 files below into your MediaWiki's /extensions/DailyEdits/ directory.
- Add a line require_once("$IP/extensions/DailyEdits/DailyEdits.php"); into your LocalSettings.php file.
- Access the page via your wiki's Special:DailyEdits link.
- If you wish to setup the generation of graph image files see the #Graph Setup Notes below.
Files[edit]
-
- DailyEdits.i18n.php
- DailyEdits.php
- SpecialDailyEdits.php
- dailyedits-plot.cfg -- GNUPlot file for generating the optional graph.
- uesp-create-dailyedits-plot -- Shell script to output the daily edit counts to a file for use by GNUPlot.
Graph Setup Notes[edit]
Some additional setup is needed to get the daily edit's graph to work:
-
- Install GNUPlot (tested on v4.0.0).
- Edit the uesp-create-dailyedits-plot file to work with your wiki:
-
- Update the database name in the SQL query.
- Supply the necessary permissions for the SQL query to work.
- Change the location of the dailyedits.dat file if desired.
- Edit the dailyedits-plot.cfg as needed:
-
- Set the output location of the dailyedits.png image file. This should be somewhere that can be accessed publicly with your web server.
- Update the location of the dailyedits.dat file if changed.
- Change the image size and graph options as desired.
- Manually run the uesp-create-dailyedits-plot script to ensure it correctly outputs the edit counts to the file and the graph image.
- In your wiki's LocalSettings.php file update the value of $wgDailyEditsGraphFile to point to the graph image. This should be done after you include DailyEdits.php.
- View your Special:DailyEdits page to ensure the graph image is displayed.
- (Optional) Setup uesp-create-dailyedits-plot to be run daily to automatically update the daily edit graph image (i.e., copy into /etc/cron.daily/).