頁腳文字設置
在Mediawiki的的模板中,例如/skins/MonoBook.php,頁腳是通過下面的代碼設置的:
$footerlinks = array( 'lastmod', 'viewcount', 'numberofwatchingusers', 'credits', 'copyright', 'privacy', 'about', 'disclaimer', 'tagline', );
根據需要可以添加和刪除上面的每一項内容。下面具體說明每一項的含義以及設置方法:
lastmod - 最後修訂,通過編輯 MediaWiki:Lastmodifiedat (版本 1.8 或更新) 或者 MediaWiki:Lastmodified (版本 1.7 and 更老)來修改顯示的内容. 如果$wgMaxCredits 啓用(設置要顯示幾位最後的編輯者), 那麽通過編輯 MediaWiki:Lastmodifiedatby (verison 1.8 and after) 或者 MediaWiki:Lastmodifiedby (version 1.7 and before)來修改。$wgMaxCredits 不啓用,僅顯示最後的修正日期,啓用以後會顯示最後的修正日期已經最後幾位編輯者(顯示幾位編輯者通過$wgMaxCredits設置)。
viewcount - 頁面的瀏覽次數,通過編輯 MediaWiki:Viewcount頁面來修改。
numberofwatchingusers - 關注用戶,通過編輯 MediaWiki:Number 來修改顯示方式. 只有在LocalSettings.php中設置 $wgPageShowWatchingUsers = true; 以後才會顯示這項内容。
copyright - 版權edit MediaWiki:Copyright. The parameter $1 on that page is replaced with a link to the details of copyright for your wiki. In LocalSettings.php $wgRightsText for the link text and set either $wgRightsPage or $wgRightsUrl with the location of a wiki page or external URL.
privacy - 隱私政策this is a link only. Edit MediaWiki:Privacy for the link text and MediaWiki:Privacypage for the wiki page to which to link.
about -關於 this is a link only. Edit MediaWiki:Aboutsite for the link text and MediaWiki:Aboutpage for the wiki page to which to link.
disclaimer - 免責聲明this is a link only. Edit MediaWiki:Disclaimers for the link text and MediaWiki:Disclaimerpage for the wiki page to which to link.
tagline - 目前沒有使用
頁腳圖片設置
左側圖片: copyright圖標, 通過$wgCopyrightIcon進行設置,設置方法如下:
在網站根目錄所在的配置文档LocalSettings.php中設置$wgCopyrightIcon,例如:
$wgCopyrightIcon = '<a href="http://www.wkwkk.com"><img src="images/logo.gif" width="117" height="37" alt="我看" /></a>';
設置的時候注意内層和外層不能同時用雙引號,内層用單引號或者是外層用單引號,否則會引起unexpected T_CONSTANT_ENCAPSED_STRING 的錯誤。
右側圖片: poweredby圖標