WIKI使用導(dǎo)航
站長百科導(dǎo)航
站長專題
- 網(wǎng)站推廣
- 網(wǎng)站程序
- 網(wǎng)站賺錢
- 虛擬主機(jī)
- cPanel
- 網(wǎng)址導(dǎo)航專題
- 云計(jì)算
- 微博營銷
- 虛擬主機(jī)管理系統(tǒng)
- 開放平臺
- WIKI程序與應(yīng)用
- 美國十大主機(jī)
MediaWiki頁腳
MediaWiki頁腳的設(shè)置需要通過修改MediaWiki模板以及MediaWiki頁面和配置文件LocalSettings.php來完成。
頁腳文字設(shè)置[ ]
在Mediawiki的的模板中,例如/skins/MonoBook.php,頁腳是通過下面的代碼設(shè)置的:
$footerlinks = array( 'lastmod', 'viewcount', 'numberofwatchingusers', 'credits', 'copyright', 'privacy', 'about', 'disclaimer', 'tagline', );
根據(jù)需要可以添加和刪除上面的每一項(xiàng)內(nèi)容。下面具體說明每一項(xiàng)的含義以及設(shè)置方法:
lastmod - 最后修訂,通過編輯 MediaWiki:Lastmodifiedat (版本 1.8 或更新) 或者 MediaWiki:Lastmodified (版本 1.7 and 更老)來修改顯示的內(nèi)容. 如果$wgMaxCredits 啟用(設(shè)置要顯示幾位最后的編輯者), 那么通過編輯 MediaWiki:Lastmodifiedatby (verison 1.8 and after) 或者 MediaWiki:Lastmodifiedby (version 1.7 and before)來修改。$wgMaxCredits 不啟用,僅顯示最后的修正日期,啟用以后會顯示最后的修正日期已經(jīng)最后幾位編輯者(顯示幾位編輯者通過$wgMaxCredits設(shè)置)。
viewcount - 頁面的瀏覽次數(shù),通過編輯 MediaWiki:Viewcount頁面來修改。
numberofwatchingusers - 關(guān)注用戶,通過編輯 MediaWiki:Number 來修改顯示方式. 只有在LocalSettings.php中設(shè)置 $wgPageShowWatchingUsers = true; 以后才會顯示這項(xiàng)內(nèi)容。
copyright - 版權(quán)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 -關(guān)于 this is a link only. Edit MediaWiki:Aboutsite for the link text and MediaWiki:Aboutpage for the wiki page to which to link.
disclaimer - 免責(zé)聲明this is a link only. Edit MediaWiki:Disclaimers for the link text and MediaWiki:Disclaimerpage for the wiki page to which to link.
tagline - 目前沒有使用
頁腳圖片設(shè)置[ ]
左側(cè)圖片: copyright圖標(biāo), 通過 $wgCopyrightIcon進(jìn)行設(shè)置,設(shè)置方法如下:在LocalSettings.php 文件中設(shè)置$wgCopyrightIcon,例如本站的設(shè)置是:
$wgCopyrightIcon = '<a href="http://kktzf.com.cn"> <img src="images/zzbaike.gif" width="117" height="37" alt="站長百科" /></a>';
設(shè)置的時(shí)候注意內(nèi)層和外層不能同時(shí)用雙引號,內(nèi)層用單引號或者是外層用單引號,否則會引起unexpected T_CONSTANT_ENCAPSED_STRING 的錯(cuò)誤。
右側(cè)圖片: poweredby圖標(biāo)