Extension:TalkHere

From MediaWiki.org

Jump to: navigation, search
Manual on MediaWiki Extensions
List of MediaWiki Extensions
TalkHere

Release status: experimental

Implementation Page action
Description shows talk page at the bottom of article page, provides on-page edit box
Author(s) Duesentrieb
MediaWiki 1.10alpha after rev:20952
Download svn (browse), bundle
log
Parameters $wgTalkHereNamespaces
Hooks used

ArticleFromTitle
CustomEditor
EditPage::showEditForm:fields

The TalkHere extension shows the talk page of each article at the bottom of the article page; this provides a way for users to post comments to articles prominently, even if they are not allowed to edit the article page itself. The TalkHere extension also provides an on-page editor to add comments (requires AJAX support).

Contents

[edit] Installing

Copy the TalkHere directory into the extensions folder of your MediaWiki installation. Then add the following line to your LocalSettings.php file (near the end):

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

[edit] Configuration

The TalkHere extension provides the following options:

$wgTalkHereNamespaces
This defines which namespaces TalkHere should be applied to. The default is NULL, meaning all (non-talk) namespaces. To enable TalkHere for the main namespace only, set $wgTalkHereNamespaces = array( NS_MAIN );

[edit] Optional Configuration

The TalkHere extension uses the $wgUseAjax global MediaWiki configuration option to determine whether to dynamically insert the edit form. It works fine without this, but you don't get the edit form on the same page. To enable this, add this to your LocalSettings.php file:

$wgUseAjax = true; // Enable AJAX interface in TalkHere

[edit] Enabling Edit Section Links

In order to unhide the edit section links, add the following code to [[MediaWiki:Common.css]]:

.talkhere-comments .editsection {
        display: inline;
}

Please note that this might lead to confusion though, as instead of returning to the article after editing, the talk page will be displayed instead.

Personal tools