Extension:CommentPages

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual
Crystal Clear action run.png
CommentPages

Release status: experimental

Implementation User interface
Description Comment Page related hooks and functions.
Author(s) Zach Hauri (Zacharytalk)
License GNU General Public License
Download
Hooks used
User

Translate the CommentPages extension if it is available at translatewiki.net

Check usage and version matrix; code metrics

This is a quickly written extension to support comment pages in the same fashion as on Wikinews, but using a MediaWiki hook rather than JavaScript. Hopefully this can replace the JavaScript version somewhere down the road (see bug 11586).

Source[edit | edit source]

Source is available here on SVN.....

You can check out with the following command: svn co http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/CommentPages

This is GPL, by the way.

Installation[edit | edit source]

First, download the latest snapshot and extract it to your extensions directory.

Second, you'll need to set up a comments namespace using the instructions here. The relevant code in LocalSettings.php should be similar to the following:

$wgExtraNamespaces[100] = 'Comments';
$wgExtraNamespaces[101] = 'Comments_talk';

The above could look different if you have more namespaces.

Next, you'll need to have it set up the extension. In LocalSettings.php again, add the following lines:

require_once( "$IP/extensions/CommentPages/CommentPages.php" );
$wgCommentPagesNS = 100;

100 should be changed to the key for your "Comments" namespace, whatever that is (something > 100).

This is not yet perfect, and I'm open to suggestions for improvements.