幫助:列表(編輯指南)

此頁由 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
  • 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.
  • A newline
  • in a list

marks the end of the list. Of course

  • you can
  • start again.
# Numbered lists are good
## very organized
## easy to follow
  1. Numbered lists are good
    1. very organized
    2. easy to follow
* You can also
**break lines
**like this
  • You can also
    • break lines
    • like this
; Definition lists
; item : definition
; semicolon plus term
: colon plus definition
Definition lists
item 
definition
semicolon plus term
colon plus definition
* Or create mixed lists
*# and nest them
*#* like this
*#*; definitions
*#*: work:
*#*; apple
*#*; banana
*#*: fruits
  • Or create mixed lists
    1. and nest them
      • like this
        definitions
        work:
        apple
        banana
        fruits
Hint.gif
提示:
在有序列表(即以數字編號的列表)中添加單獨的段落比較麻煩,需要用HTML代碼。如無特殊需要,可以改用無序列表。如果執意要用,這裡提供例子,以供參考: <p>...</p>

複雜應用

本部分的應用不十分常見,要使用HTML代碼來實現。

設定序號起始值

<ol start="9">
<li>Amsterdam</li>
<li>Rotterdam</li>
<li>The Hague</li>
</ol>

的結果是:

  1. Amsterdam
  2. Rotterdam
  3. The Hague
简体繁体转换