Jump to content

Extension:TalkHere: Difference between revisions

From mediawiki.org
Content deleted Content added
SVN
m This extension appears to be in SVN, not Git.
Line 8: Line 8:
|author = [[User:Duesentrieb|Duesentrieb]]
|author = [[User:Duesentrieb|Duesentrieb]]
|mediawiki = 1.10alpha after [[rev:20952]]
|mediawiki = 1.10alpha after [[rev:20952]]
|download = {{WikimediaDownload}}[http://tools.wikimedia.de/~daniel/repository/extensions/ bundle]
|download = {{WikimediaDownload}}[http://tools.wikimedia.de/~daniel/repository/extensions/ bundle]
|readme = <!-- Seems to be 404: [http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/TalkHere/README README] -->
|readme = <!-- Seems to be 404: [http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/TalkHere/README README] -->
|changelog = [http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/TalkHere/?view=log log]
|changelog = [http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/TalkHere/?view=log log]

Revision as of 22:54, 13 August 2012

MediaWiki extensions manual
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
License No license specified
Download Template:WikimediaDownload/svnbundle
log
$wgTalkHereNamespaces
Translate the TalkHere extension if it is available at translatewiki.net

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).

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" );

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 );

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

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.