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 |
|
*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