Editing
Setting user rights in MediaWiki
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== MediaWiki 1.4+ == 適用版本: MediaWIki 版本: 1.4 or older === 準備 === * 支援Unicode的編輯器 * 請記得文件格式編譯成'''UTF-8(無BOM)'''。 === 修改 LocalSetting.php === 將以下設定插入 LocalSetting.php <pre> # 選擇誰可以編輯頁面: true 代表有登錄的使用者才能編輯頁面 $wgWhitelistEdit = true; # 匿名的(也就是沒有登錄的)使用者可以看見的頁面 $wgWhitelistRead = array ("首頁", "特殊:Userlogin", "維基百科:幫助"); # 指定誰可以設立新的使用者帳號: 0 代表不可, 1 代表可以 $wgWhitelistAccount = array ( 'user' => 0, 'sysop' => 1, 'developer' => 1 ); </pre> === $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");
Summary:
Please note that all contributions to LemonWiki共筆 are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
LemonWiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Current events
Recent changes
Random page
Help
Categories
Tools
What links here
Related changes
Special pages
Page information