使用語法
- 順序編號項 [<ol><li>] <!-- 和標準的 list 相同 -->
* 無編號項目 [<ul><li>] <!-- 和標準的 list 相同 -->
? 定義問題項 [<dl><dt>]
: 描述定義問題 [<dl><dd>]
-- 含有段落的順序編號項
** 含有段落的無編號項目
:: 含有段落的描述定義問題
.. 在 --, **, 或 :: 底下的段落
參考範例
順序編號項目 1
順序編號項目 2
順序編號項目 3…(含有段落)
… 項目 3 的段落內容 …
順序編號項目 4
無編號項目
無編號項目…(含有段落)
… 無編號項目的段落內容 …
順序編號項目, 第一層
第二層
第三層
第四層
返回第二層 (含有段落)
Second?! What happened to third?
Beats me…
返回第一層
還在第一層
定義問題項
描述定義問題的內容 … Definition lists vary only slightly from other types of lists in that list items consist of two parts: a term and a description. The term is given by the DT element and is restricted to inline content. The description is given with a DD element that contains block-level content. [Source: W3C ]
定義問題項
可以這樣表示多行
就可成為定義問題項的段落表示方式
含有段落的描述定義問題 … The style sheet provided with this plugin will render the above terms on three lines…
描述定義問題的段落內容 … and set them to the left of these left of these paragraphs.
第二層定義問題項
也可以一樣表示多行
來變成定義問題項的段落
描述第二層定義問題-1 Another way to separate blocks of text in a definition…
描述第二層定義問題-2 … is to simply have multiple definitions for a term (or group of terms).
描述第一層定義問題-1 This definition list has DD tags without any preceding DT tags.
描述第一層定義問題-2 Hey, it's legal XHTML .
定義問題項 Just like DT tags without following DD tags.
? 測試兩個 ? 來當成要含有段落的定義問題項.. But DT tags can't contain paragraphs. That would not be legal XHTML .
.. 含有段落的描述定義問題 If you try, the result will be rendered oddly.
<box 80% round orange|a title> the box contents</box>
<box 50% left blue>the box contents</box|a caption>
<box 60% round #f99 #fc9 #fcc #f60|title>the box contents></box|caption>
the box contents
a caption
title
the box contents>
caption
點這看使用語法
使用語法:
有以下四個語法:
參數屬性定義:
left - 文字靠左;
right - 文字靠右;
center - 文字對中;
justify - 文字左右調整;
float-left - 區塊浮貼靠左;
float-right - 區塊浮貼靠右;
box - 顯示區塊外框;
background - 區塊內填滿底色.
基本語法
<note>一般語法</note>
<note tip>小技巧語法</note>
<note important>重要語法</note>
<note warning>警告語法</note>
基本語法
{{page>[id]#[section]&[flags]}}
{{section>[id]#[section]&[flags]}}
使用說明
預設每個欄位間的區隔關鍵字 NEWCOL
區隔關鍵字可以透過「管理選單」的參數設定來更改
簡單語法
<columns>
第一欄區域
NEWCOL
第二欄區域
</columns>
可定義欄寬語法
<columns 100% 50% - ->
第一欄區域 (佔有50%)
NEWCOL
第二欄區域
NEWCOL
第三欄區域
</columns>
使用說明 :
在 pageheader.html 加入以下的 Code
透過管理選單或直接編輯 conf/local.php 設定預期支援的語言代碼
1)
設定說明
Exp. 若想要支援三種語言: 繁體中文, 英文, 越南文, 因預設語言為 zh-tw(繁體中文), 所以只需加入 en(英文) vi(越南文) 就可以.
以下就是 local.php 內增加的設定項目
:
$conf['plugin']['translation']['translations'] = 'en vi';
:
在 template 內將要顯示的位置加上以下的 php 語法
<?php
$translation = & plugin_load( 'syntax' , 'translation' ) ;
echo $translation -> _showTranslations( ) ;
?>
點這裡看基本語法
<code 語言 起始行號|[f:底端/h:頂端] 標題|[s:顯示/h:隱藏]>
內容說明
:
:
:
</code>
點這裡可看 code2 的 Sample
1: <?php
2: # 13:09 2007/10/29
3: # Update by Jonathan Tsai
4: #
5:
6: require_once ( "twitter.conf.php" ) ;
7:
8: # 設定傳入參數改以 p_ 開頭變數表示
9: import_request_variables ( 'gp' , 'p_' ) ;
10:
11: $username = ( $p_username != "" ) ?$p_username : $username ;
12: $password = ( $p_password != "" ) ?$p_password : $password ;
13: :
14: :
15: ?>
使用語法
{{rss>http://slashdot.org/index.rss}}
參數說明
參數 說明
任何數字 限制清單項目顯示的數目. 當清單項目超出這個數字, 將只列出所指定的項目數, 預設是限制 8 個項目
reverse 反向顯示. 將 RSS 內的最後一項顯示在清單最前面
author 顯示項目的作者名稱
date 顯示項目的日期
description 顯示項目的說明描述. 如果設定不允許顯示 HTML 所有的 HTML 語法將不會被顯示出來
n [dhm] 指定自動更新的時間, d=天, h=小時, m=分鐘. (例如 12h = 12 小時).
自動更新的時間預設是 4 小時. 如果指定的時間值小於 10 分鐘還是會被視為 10 分鐘. DokuWiki 一般都會提供一個快取的頁面, 在這理有動態的外部內容顯然是不太合適. 這個參數是當頁面從上次產生後已經超過 自動更新的時間 就通知 DokuWiki 重新產生頁面.
如下是指定顯示 5 個項目以及要出現作者與時間, 每小時自動更新一次 的範例語法:
{{rss>http://slashdot.org/index.rss 5 author date 1h }}
點這裡看範例
{{indexmenu>tech#3|js navbar nocookie}}
點這看使用說明
安裝後在管理者參數設定內可以自訂 tag 要連結頁面的 namespace, 預設是 wiki 我是改成 tag
所以只要在 wiki 頁面輸入以下的語法, 就可以建立 tag 出來(每個 tag 間以空白隔開)
語法 Sample:
{{tag>tag1 tag2 tag3}}
{{search>"關鍵字" @namespace}}
~~REDIRECT>namespace:page~~
測試發現 any content 的部份不可以出現 code3 plugin 語法, 格式會錯亂 —
蔡宗融 2007/11/01 12:09
基本語法 :
Inline:
++title| formatted text ++
Block :
++++title| any content ++++
點這看使用說明(也用 block 方式展示)
這是測試範例, 可以 點這裡看詳細狀況 這裡是針對 inline 所列出的詳細內容
可以包含表格 wiki 格式 樣式都可以透過 block 方式呈現 很像不錯的樣子
還可以加入 note 的 TAG 內容
|
技術分享資訊 |
推薦免費軟體 |
Jonathan's Blog |
Google |
Google Office |
<select 我的最愛>
tech:menu|技術分享資訊
start:software:list|推薦免費軟體
http://blog.ichiayi.com|Jonathan's Blog
http://www.google.com|Google
http://docs.google.com | Google Office
</select>
使用說明:
安裝後預設是每頁底下都會出現這個加入書籤的工具列
透過管理選單的系統設定將 「Display social bookmarks」打勾拿掉
在需要顯示的頁面加入這語法
~~BOOKMARKME:on~~
增加推推王 與黑米 書籤網站說明
編輯 lib/plugins/bookmarkme/bookmark.ini|
funp http://funp.com/push/submit/add.php
hemidemi http://www.hemidemi.com/user_bookmark/new?title=%title%&url=%permalink%
將 funp
與 hemedemi
的代表小圖檔放入 lib/plugins/bookmarkme/img/ 內命名為 funp.gif 與 hemidemi.gif
2)
在 管理選單的系統設定 內「Enable bookmarking for」底下加上 funp,hemidemi 這個兩個定義名稱, 中間用”,”隔開
使用說明:
Ctrl +
Alt +
Del 重新開機
語法 <key>C-A-del</key>
Ctrl +
Enter 語法
<key>C-enter</key>
Ctrl +
Shift +
→ 語法
<key>C-S-Right</key>
Ctrl +
Shift +
← 語法
<key>C-S-Left</key>
Ctrl +
Page↑ 語法
<key>C-PageUp</key>
Ctrl +
− 語法
<key>C-Minus</key>
Any key 語法
<key>any key</key>
<ditaa name=test>
+--------+ /--------\
| Test +---->| Test 2 |
+--------+ \--------/
</ditaa>
安裝後要修改實際 java 與 jar 路徑
lib/plugins/ditaa/syntax.php
:
var $pathToJava = "/usr/java/jre1.5.0_14/bin/java";
:
var $pathToDitaa = "/www/html/wiki/lib/plugins/ditaa/ditaa.jar";
:
使用說明
使用 Plugin Management
URL 輸入下載網址下載安裝
只要在 wiki 頁面輸入
{{contact>to=tryweb|subj=[TryWeb]連絡表}}
就可以出現連絡表單
點這裡看使用語法
<poll [id]>
[question]
* [option]
* [option]
* ...
</poll>
<barchart>1000|A:500,B:50,C:250,D:1000</barchart>
<doodle [disable] [single] [login]| [id]>
^ [choice] ^ [choice] ^ ... ^
</doodle>
顯示心智圖 freemind 的功能
下載網址 :
安裝說明
修改 conf/mime.conf 在最後加上一行
mm text/xml
使用語法
freemind?width=450&height=350&javalink=false(namespace:mindmap.mm)#
參數說明與呈現範例
type flash / java 指定呈現格式是採 flash 或 java (預設 java)
width (Number) 心智圖顯示寬度
height (Number) 心智圖顯示高度
downloadlink false / true 是否顯示心智圖檔案下載連結? (預設 true 顯示)
freemindlink false / true 是否顯示 freemind 網站連結? (預設 true 顯示)
javalink false / true 是否顯示 Java 網站連結? (預設 true 顯示)
使用 Google Map
API 語法顯示地圖功能
安裝之後必須先到 管理選單設定這個 plugin 參數 - Google Map
API Key
語法與範例如下:
<googlemap width="300px" height="300px" lat="25.027459" lon="121.475862" type="map" zoom="16">
25.027459,121.475862,宜家男的髮藝造型
</googlemap>
點這裡看語法與範例
{{youtube>link:MJj5XWQHUFE}} -> 產生一個連結到 YouTube 網站
{{youtube>small:MJj5XWQHUFE}} -> 產生一個小型的影片播放物件
{{youtube>large:MJj5XWQHUFE}} -> 產生一個大型的影片播放物件
點這裡看設定、語法與範例
如果希望用其他網站上的 FlowPlayer.swf
3) ,可以透過 管理選單的參數設定 定義 $conf['plugin']['flowplay']['player_base_url']
基本語法如下:
{{flowplay>path_to_mediafile.flv[width,height]}}
語法與範例:
<aviewer (max-width) (max-height) (left/right/noalign)>
…list of image files or namespaces seperated by line-feed…
</aviewer>
<aviewer 320 240 right>
{{scucs83:gallery:20080630:dsc00002.jpg|校門}}
{{scucs83:gallery:20080630:dsc00003.jpg|說明}}
{{scucs83:gallery:20080630:dsc00005.jpg|註解}}
</aviewer>
顯示 MSN/
ICQ /
AIM .. IM 的上線狀態圖樣
語法與範例:
service : [
AIM |
IRC |MSN|Yahoo]
id : IM 的帳號
sowid : 顯示 id (option)
{{imstatus>service id showid}}
Exp :
| {{imstatus>MSN jonathan@ichiayi.com}} |
| {{imstatus>MSN jonathan@ichiayi.com showid}} |
jonathan@ichiayi.com
點這看使用說明
使用 Manage Plugins 下載安裝之後, 在 [管理選單] 就會增加一個新的選項 [Google Analytics]
Google Analytics Code : 輸入在 Google Analytics 申請時所提供的編號