Mediawiki problems

From LemonWiki共筆
Revision as of 11:49, 21 June 2009 by WikiSysop (talk | contribs) (1個修訂)
Jump to navigation Jump to search

<< MediaWikiInstallRecord

問題解決協助


已解決的問題

備份

預設版面的字太小

    • 暴力更改預設的字級(字體大小):{MediaWiki}/stylesheets/monobook/main.css 將body的font由x-small改成small或9pt [1][2][3]

輔助說明連結失連

  • 安裝後有些輔助說明連結,連到英文的Wikipedia,卻出現Error
Wiki安裝後的導覽選單(導航條)的"幫助",會轉址到英文的Wikipedia的頁面,而發生錯誤,合適的中文說明連結是http://zh.wikipedia.org/wiki/Wikipedia:%E5%B8%AE%E5%8A%A9 或 http://zh.wikipedia.org/wiki/Help:%E5%B8%AE%E5%8A%A9 ,使用資料庫管理程式phpMyAdmin,然後到資料庫MediaWiki中的資料表interwiki[4]
欄位 iw_prefix = WikiPedia
欄位 iw_url = http://www.wikipedia.org/wiki/$1
修改為
欄位 iw_url = http://zh.wikipedia.org/wiki/Wikipedia:$1

附註:還是有些問題,例如頁面下方的「關於Wikipedia」,雖然可以正確轉到繁體,但是簡體的Wikipedia才有Wikipedia的說明文字,所以也許使用英文的使用者介面也不錯(UI)。 (相關說明: 如何修改MediaWiki的提示資訊 ex:下方頁尾 或 側邊的導航選單)

同一表格不同欄的間距太小

{MediaWiki}/stylesheets/monobook/main.css 在table那一項目,加上 border-spacing: 15px;
或者加上表格的邊界

想移掉側邊欄的贊助網站連結

  • 調整瀏覽選單(configure sidebar)

升級到mediawiki 1.5+,瀏覽選單多出Donations。以管理者權限修改MediaWiki:Sidebar

  • navigation
    • mainpage|mainpage
    • portal-url|portal /**link to LemonWiki:Community_Portal
    • currentevents-url|currentevents
    • recentchanges-url|recentchanges /**link to Special:Recentchanges
    • randompage-url|randompage /**link to Special:Random
    • helppage|help
    • sitesupport-url|sitesupport /**link to LemonWiki:Site_support

移除 sitesupport-url|sitesupport 那一行

禁止未註冊帳號者,不能編修頁面

方法詳見Setting user rights in MediaWiki

搜索時,輸入Dict Online找不到OnlineDict頁面

  • 搜索時,輸入Dict Online找不到OnlineDict頁面,即MediaWiki會將OnlineDict看作一個字的頁面題目
替代方式:(1)設定Online_Dict自動轉頁,然後轉向到OnlineDict。或者(2)搜尋關鍵字輸入Online* 或dict* (3)使用搜尋引擎Site Search

美化網址

詳見Beautifying URLs of MediaWiki


註腳沒掛起來

  • 安裝註腳擴充套件 (2007-07-09 solved)

在安裝設定時的SiteName(網站名稱) 無法使用中文

  • 直接修改資料庫的方法,請看維基百科:幫助,或者
  • 修改 LocalSettings.php 中的$wgSitename變數,然後將檔案儲存為UTF-8無BOM的格式


網頁標題想改成 SiteTitle: 頁面名稱

修改MediaWiki:pagetitle (瀏覽器上方的)網頁標題

可從預設值: $1 - {{SITENAME}}  
改成 {{SITENAME}} : $1
相關頁面: 本地化設置


406 Not Acceptable

  • Error message: When I tried to preview or save a wikipage, a error message: "406 Not Acceptable: An appropriate representation of the requested resource /index.php could not be found on this server." occurred.
  • Solution: reduce the complex of page content (ex: remove the long codes)
  • case:

I checked the content of this webpage:

 ... ...
 * Author: [URL Description]

I insert a space after Author. Author: [URL Description] became Author : [URL Description] The problem was solved.

 ... ...
 * Author : [URL Description]

Environment: MediaWiki: 1.5.4; PHP: 4.4.1 (apache); MySQL: 4.0.25-standard

MySQL error: Table ... is marked as crashed and should be repaired (MediaWiki 1.6.10)

    (SQL query hidden)

來自於函數 "MediaWikiBagOStuff::_doquery"。 MySQL返回錯誤 "1194: Table 'objectcache' is marked as crashed and should be repaired (localhost)"。

Solution: Using the phpMyAdmin to do the following steps

  1. (optional) TRUNCATE `objectcache` (清空objectcache資料表)
  2. repair the objectcache table

further reading


not safe to rely on the system's timezone settings. Please use the date.timezone setting (MediaWiki 1.11.0)

check Err: not safe to rely on the system's timezone settings. Please use the date.timezone setting


頁面有超鏈連結(網頁、圖片…),點選後希望是另開視窗,而不是在當前視窗打開

Open a link in mediawiki to a new window

Raw pages must be accessed through the primary script entry point (MediaWiki v1.12)

click the Raw pages must be accessed through the primary script entry point (MediaWiki v1.12)

待解決問題

  1. table oddmuse's text formatting 與 MediaWiki 可以相容
  2. 英語介面的WikiFarm, see also Multilingualism
  3. 自訂Namespace
  4. 查封IP/User網址後的訊息畫面連到[5],但是正確的應該是[6]
  5. 如何點選圖形時,直接進入特定網站連結,而非描述圖形(metadata)的頁面。 (效果: Template:Sprotected2 參考樣版:Template:Sprotected2Template:Click)。

To-do

是問題,但還不想解決

## aaa
## bbb
    1. aaa
    2. bbb

處理方式

# aa
## aaa
## bbb
  1. aa
    1. aaa
    2. bbb