Extension:TalkRight/zh
此扩展与MediaWiki 1.36或更高的版本不兼容! 建议您不要在正常运行的网站上使用此扩展。 我们邀请志愿开发者将 {{Incompatible }} 模板替换为{{Incompatible |version=1.36|pledge=~~~~}} 來承諾更新此扩展使其与MediaWiki 1.40兼容。 |
此扩展目前不再活跃维护! 尽管它可能仍然工作,但任何错误报告或功能请求将很可能被忽略。
|
![]() 发行状态: 不再維護 |
|
---|---|
实现 | 用户权限 |
描述 | Makes the editing of talk pages a distinct action from article editing. |
作者 | P Leveque, Marc Noirot, James Montalvo |
最新版本 | 1.5.0 (2013-05-06) |
MediaWiki | 1.19+ |
数据库更改 | 否 |
Composer | mediawiki/talk-right |
许可协议 | GNU通用公眾授權條款2.0或更新版本 |
下載 | |
talk |
|
The Talkright extension makes the editing of talk pages a distinct action from the editing of articles to create finer permissions, by adding the talk
right.
安裝
Composer
From MediaWiki version 1.22 onwards TalkRight should be installed using Composer.
The package name is mediawiki/talk-right
.
For instructions on how to install Composer see MediaWiki's Composer User manual.
Once you have Composer properly installed, all you need to do is go to your MediaWiki installation directory and run:
composer require mediawiki/talk-right ~1.5
for the latest stable version or
composer require mediawiki/talk-right 'dev-master'
for the latest development version
Any future update is then just a call to composer update
or composer update enterprisemediawiki/talk-right
and you can always be sure that all dependencies are met (currently there are no dependencies).
Continue with the Common steps below.
Beware: If you have installed an earlier version of TalkRight you need to remove its code from the MediaWiki extension directory and delete the call to require_once
from the LocalSettings.php
file before starting the re-installation with Composer.
Using packaged downloads
If this is not an option, you may also install it like this:
- Download the latest stable release or latest development release from GitHub.
- Alternatively you can clone TalkRight using git
- Extract the files to the
$IP/extensions
directory
- If necessary rename the newly created directory to TalkRight
- Add to the end of LocalSettings.php :
wfLoadExtension( 'TalkRight' );
- Continue with the Common steps below.
Common steps
- Edit LocalSettings to specify which users have the talk right (see below)
- Go to the Special:Version page of your wiki and verify that an entry for TalkRight exists
用法
On a semi private wiki, a user can be allowed to read but not to edit the content of a page as well as its talk page. This is done by setting:
$wgGroupPermissions['user']['read'] = true;
$wgGroupPermissions['user']['edit'] = false;
Now, if you want to encourage comments to your wiki from a group of persons, by giving them rights to edit the talk pages only, you need to install this TalkRight extension and to add, for example, the following two lines:
$wgGroupPermissions['commentators']['edit'] = false;
$wgGroupPermissions['commentators']['talk'] = true;
历史
日期 | 版本 | 备注 |
---|---|---|
2014-06-06 | Version 1.5.0 | Extension can now be installed via Composer |
2013-05-06 | Version 1.4.1 | updated for MW1.19. added new topic and edit section link. |
2011-11-24 | Version 1.3 | No need to modify 'includes/SkinTemplate.php ' to edit "view source" button.
|
2008-08-05 | Version 1.1 | Added credits for MediaWiki version 1.12, 1.13. |
2006-06-20 | Version 1.0.1 | Added credits and extension version information. |
2006-06-07 | Version 1.0 | First release. |