Setting user rights in MediaWiki: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
This is partial translation of Meta:[http://meta.wikimedia.org/wiki/Setting_user_rights_in_MediaWiki Setting user rights in MediaWiki]. You may click the link for the latest information. Please notice that the '''translated/derivated content is available under [http://www.gnu.org/copyleft/fdl.html GNU Free Documentation License]''' which the same with the original work. | This is partial translation of Meta:[http://meta.wikimedia.org/wiki/Setting_user_rights_in_MediaWiki Setting user rights in MediaWiki]. You may click the link for the latest information. Please notice that the '''translated/derivated content is available under [http://www.gnu.org/copyleft/fdl.html GNU Free Documentation License]''' which the same with the original work. | ||
= MediaWiki 1.5+ = | |||
== 準備 == | |||
* 支援Unicode的編輯器 for Windows:個人建議使用[http://notepad-plus.sourceforge.net/uk/site.htm Notepad Plus編輯器](under the GPL Licence) (其他選擇:[http://www.esperanto.mv.ru/UniRed/ENG/ UniRed - Unicode editor for Windows 95/98/NT/2000]) | |||
* 請記得文件格式編譯成'''UTF-8(無BOM)'''。 | |||
== 修改 LocalSetting.php == | |||
將以下設定插入 LocalSetting.php | |||
$wgGroupPermissions['*']['edit'] = false; | |||
代表有登錄的使用者才能編輯頁面 | |||
* 參考[http://meta.wikimedia.org/wiki/User_rights Help:User rights] | |||
= MediaWiki 1.4+ = | |||
適用版本: MediaWIki 版本: 1.4 or older | |||
== 準備 == | == 準備 == | ||
* 支援Unicode的編輯器 | * 支援Unicode的編輯器 | ||
* 請記得文件格式編譯成'''UTF-8(無BOM)'''。 | * 請記得文件格式編譯成'''UTF-8(無BOM)'''。 | ||
Revision as of 00:28, 22 January 2006
This is partial translation of Meta:Setting user rights in MediaWiki. You may click the link for the latest information. Please notice that the translated/derivated content is available under GNU Free Documentation License which the same with the original work.
MediaWiki 1.5+
準備
- 支援Unicode的編輯器 for Windows:個人建議使用Notepad Plus編輯器(under the GPL Licence) (其他選擇:UniRed - Unicode editor for Windows 95/98/NT/2000)
- 請記得文件格式編譯成UTF-8(無BOM)。
修改 LocalSetting.php
將以下設定插入 LocalSetting.php
$wgGroupPermissions['*']['edit'] = false;
代表有登錄的使用者才能編輯頁面
MediaWiki 1.4+
適用版本: MediaWIki 版本: 1.4 or older
準備
- 支援Unicode的編輯器
- 請記得文件格式編譯成UTF-8(無BOM)。
修改 LocalSetting.php
將以下設定插入 LocalSetting.php
# 選擇誰可以編輯頁面: true 代表有登錄的使用者才能編輯頁面 $wgWhitelistEdit = true; # 匿名的(也就是沒有登錄的)使用者可以看見的頁面 $wgWhitelistRead = array ("首頁", "特殊:Userlogin", "維基百科:幫助"); # 指定誰可以設立新的使用者帳號: 0 代表不可, 1 代表可以 $wgWhitelistAccount = array ( 'user' => 0, 'sysop' => 1, 'developer' => 1 );
$wgWhitelistRead 說明
英文版的MediaWiki
$wgWhitelistRead = array ("Main Page", "Special:Userlogin", "Wikipedia:Help");
- "Main Page" 出現在左側導覽選單的位置,如果MediaWiki選中文安裝方式,預設中文翻譯是 首頁 ,本站共筆後來更改成"共筆首頁"
- "Special:Userlogin" 出現在上方功能列的位置,預設中文翻譯是 特殊:Userlogin
- "Wikipedia:Help" 出現在左側導覽選單的位置,如果MediaWiki選中文安裝方式,預設中文翻譯是 維基百科:幫助
- 有些MediaWiki是 Help:Contents 或 幫助:Contents
- 由於MediaWiki有次更新(from v1.3.11 to v1.4.8)時,本站該頁面內容消失,所以本站暫時將它redirect至Help頁面
中文預設值
$wgWhitelistRead = array ("首頁", "特殊:Userlogin", "維基百科:幫助");
所以如果要在本站啟用該選項,設定值應為
$wgWhitelistRead = array ("共筆首頁", "特殊:Userlogin", "維基百科:幫助", "Help");
相關頁面
- MediaWiki localization - 修改MediaWiki的介面文字