幫助:列表(編輯指南)
此頁由 Linux Wiki用戶Chenxing 於 2007年8月3日 (星期五) 10:04 的最後更改。
出自Linux Wiki
列表基礎
使用Wiki創建的列表主要分三種:有序列表,無序列表,定義列表。
- 有序列表
- 就是有編號的列表,在行首加一個#就生成了有序列表。
- 無序列表
- 就是列表左邊都是圓圈、方框等,在行首加一個*就可以得到無序列表。
- 定義列表
- 本段文字就是定義列表,在定義命令行參數時會很有用,格式為: ;名詞:名詞定義
下表是一些例子:
wiki源碼 | 顯示效果 |
---|---|
* Lists are easy to do: ** start every line * with a star ** more stars mean *** deeper levels |
|
*A newline *in a list marks the end of the list. Of course *you can *start again. |
marks the end of the list. Of course
|
# Numbered lists are good ## very organized ## easy to follow |
|
* You can also **break lines **like this |
|
; Definition lists ; item : definition ; semicolon plus term : colon plus definition |
|
* Or create mixed lists *# and nest them *#* like this *#*; definitions *#*: work: *#*; apple *#*; banana *#*: fruits |
|
複雜應用
本部分的應用不十分常見,要使用HTML代碼來實現。
設定序號起始值
<ol start="9"> <li>Amsterdam</li> <li>Rotterdam</li> <li>The Hague</li> </ol>
的結果是:
- Amsterdam
- Rotterdam
- The Hague