Extension:CopyWatchers

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
Copy Watchers
Release status: experimental
Implementation Parser function
Description Allows editors to copy watchers from other pages using the parser function #copywatchers
Author(s) James Montalvo (Jamesmontalvo3talk)
Latest version 0.1.0 (2013-05-16)
MediaWiki 1.17.x
Database changes Yes
License GNU General Public License 3.0 or later
Download
README
Hooks used
ParserFirstCallInit
Translate the CopyWatchers extension if it is available at translatewiki.net
Check usage and version matrix.

The CopyWatchers extension allows editors to copy watchers from other pages using the parser function #copywatchers. The author's intention for this parser function is to use with meeting notes pages in his work environment. Notetakers will be able to list related articles, and copy in the watchers of those articles. The meeting notes will thereby be watched by all parties who care about them.

Download[edit]

For the moment this is available through Github, which I don't think is a suggested location for MediaWiki extensions, but it was the easiest thing for me to do for now. I'll figure out where to put it officially later.

Installation[edit]

Download the files as described above, put them in your MediaWiki extensions folder, then include this line in your LocalSettings.php file:

require_once("$IP/extensions/CopyWatchers/CopyWatchers.php");

Usage[edit]

Include the following in any page to copy watchers from other pages into the page being edited:

{{#copywatchers: My Page, My Other Page, A Third Page }}

Pages should be separated by commas. At this point I have not put in any handling for pages that include commas, so I doubt they will work for now. This parser function has no output by default, but if you would like to see what pages are being referenced and how many watchers they have, do the following:

{{#copywatchers: My Page, My Other Page, A Third Page | true }}