Help:列表(编辑指南)

此页由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
个人工具
简体繁体转换