顯示具有 Extensions 標籤的文章。 顯示所有文章
顯示具有 Extensions 標籤的文章。 顯示所有文章

2007年4月25日 星期三

RSS extensions

安裝與用法

1. 下載 rss.php 檔案。
原網址:http://www.mediawiki.org/wiki/GISWiki/RSS

2. 下載magpierss。http://magpierss.sourceforge.net/

3. 修改rss.php 檔案內容

4. 使用參數

* charset= The charset used by the feed. iconv is used to convert this. (設定編碼)
* short Do not show the description text for each news item.(設定簡短描述)
* max=x Shows x most recent headlines. (設定筆數)
* highlight= term1 term2 The terms separated by a space are highlighted.
* filter= term1 term2 Show only rss items containing at least one of the terms. (設定篩選參數)
* reverse display the rss items in reverse order.
* title=x display an alternative title instead of chanel name.
* title = none dont display any title.
# * date display the date and time stamp below the title.

2007年3月27日 星期二

KML Export

安裝
1. Created directory of "KMLExport" in extensions
2. Edit LocalSettings.php , addong
require_once( $IP . '/extensions/KMLExport/KMLExport.php' );

設定
1. create a template named [[Template:GeoDeg]]

Coordinates: [http://maps.google.com/?q={{{10}}},{{{20}}}&t=h&z=14 {{#lat_deg2dms:{{{10}}}}} {{#long_deg2dms:{{{20}}}}}]
{{#kml.placemark:Point({{{10}}},{{{20}}}){{{3}}}}}
[[Category:Pages with geographic coordinates{{PAGENAME}}]]


2. create a template named [[Template:GeoDMS]]
{{GeoDeg{{
#lat_dms2deg:{{{10}}}{{{20}}}{{{30}}}{{{40}}}}}{{
#long_dms2deg:{{{50}}}{{{60}}}{{{70}}}{{{80}}}}}{{{9}}}
}}


3. 使用:
{{GeoDMS22575S431239W}}).

4. 匯出 KML :
[[Special:KMLExport]]


其他參數設定

1. {{#lat_deg2dms: value}} 緯度轉換:十進位轉度分秒

{{#long_deg2dms: value}} 經度轉換:十進位轉度分秒

2. {{#lat_dms2deg: degrees minutes seconds hemisphere }} 緯度轉換:度分秒轉十進位
{{#long_dms2deg: degrees minutes seconds hemisphere }} 經度轉換:度分秒轉十進位




參考:
http://juliano.info/en/Projects/KML_Export/Manual

2007年2月5日 星期一

wiki extension

Wiki 上面的 Extensions,下面是我試過,覺得還不錯用。


  1. Google Serch:google serch (for Metawiki),Google serch(Mediawiki),還沒有試出功能。


  2. google map,新增地圖服務 : GISWiki/GoogleMapExtensionExtension:Google Maps (目前使用這個)


  3. Category,(目前使用這個)


  4. Calendar,(目前使用這個,但詞條若為中文,會出現問題)