英文版语法说明参见:Syntax。
申明
语法说明
1. 标题
分别定义1~6级别的标题:
代码:
# 一级标题 ## 二级标题 ### 三级标题 #### 四级标题 ##### 五级标题 ###### 六级标题
2. 文字格式
支持字体加粗,斜体,下划线,行内代码
,格式组合
代码:
支持字体**加粗**,*斜体*,__下划线__,`行内代码`,**__*`格式组合`*__**
3. 脚标
下标1 和上标 2
代码:
下标<sub>1</sub> 和上标 <sup>2</sup>
4. 文字删除
被删除的文字
代码:
<del>被删除的文字</del>
5. 文字强制换行
这是第一行
这是第二行
代码:
这是第一行 \\ 这是第二行
6. 链接
6.1 外部链接
支持外部链接的方式:自动识别http://ncbi.nlm.nih.gov, 添加链接说明文字链接至NCBI, email 地址master@basepedia.com
代码:
支持外部链接的方式:自动识别http://ncbi.nlm.nih.gov, 添加链接说明文字[[http://ncbi.nlm.nih.gov|链接至NCBI]], Email 地址<master@basepedia.com>
6.2 内部链接
6.3 页面内链接
6.4 链接颜色
6.5 图片链接
7.脚注
这是一个脚注的例子:拟南芥基因组大小 1)
代码:
这是一个脚注的例子:拟南芥基因组大小((拟南芥基因组大小为~116.85Mb,https://www.ncbi.nlm.nih.gov/genome/4?genome_assembly_id=22492))
8. 图片及其他文件
注:图片可通过媒体管理器上传(支持文件大小 <2M)
图片插入与大小调整.
Real size:
Resize to given width:
Resize to given width and height:
Resized external image:
Real size: {{wiki:dokuwiki-128.png}} Resize to given width: {{wiki:dokuwiki-128.png?50}} Resize to given width and height: {{wiki:dokuwiki-128.png?200x50}} Resized external image: {{http://www.php.net/images/php.gif?200x50}}
9. 列表
无序列表
- This is a list
- The second item
- You may have different levels
- Another item
有序列表
- The same list but ordered
- Another item
- Just use indention for deeper levels
- That's it
无序列表 * This is a list * The second item * You may have different levels * Another item 有序列表 - The same list but ordered - Another item - Just use indention for deeper levels - That's it
10. 文本转换html
书写下面的符号
→ ← ↔ ⇒ ⇐ ⇔ – — 640×480 © ™ ®
-> <- <-> => <= <=> - --- 640x480 (c) (tm) (r)
11. 表格
11.1 基本表格
表头1 | 表头2 | 表头3 |
---|---|---|
Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 |
Row 2 Col 1 | some colspan (note the double pipe) | |
Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 |
代码:
^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | | Row 2 Col 1 | some colspan (note the double pipe) || | Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 |
11.2 二维表格
Heading 1 | Heading 2 | |
---|---|---|
Heading 3 | Row 1 Col 2 | Row 1 Col 3 |
Heading 4 | no colspan this time | |
Heading 5 | Row 2 Col 2 | Row 2 Col 3 |
代码:
| ^ Heading 1 ^ Heading 2 ^ ^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 | ^ Heading 4 | no colspan this time | | ^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 |
11.3 再复杂一点
Heading 1 | Heading 2 | Heading 3 |
---|---|---|
Row 1 Col 1 | this cell spans vertically | Row 1 Col 3 |
Row 2 Col 1 | Row 2 Col 3 | |
Row 3 Col 1 | Row 2 Col 3 |
代码:
^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | Row 1 Col 1 | this cell spans vertically | Row 1 Col 3 | | Row 2 Col 1 | ::: | Row 2 Col 3 | | Row 3 Col 1 | ::: | Row 2 Col 3 |
11.4 对齐方式
Table with alignment | ||
---|---|---|
right | center | left |
left | right | center |
xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx |
代码:
^ Table with alignment ^^^ | right| center |left | |left | right| center | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx |
12. 去除格式
通过添加标签来去除格式,这是一个基因*TP53*,无标签时,显示TP53
代码:
通过添加标签来去除格式,<nowiki>这是一个基因*TP53*</nowiki>,无标签时,显示*TP53*
13. 代码语法高亮
13.1 **C语言代码语法高亮:**
13.2 **python语言代码语法高亮:**
13.3 **文本段落加框:**
这段可以为文本内容加框
代码:
``` 这段可以为文本内容加框 ```
14. 数学公式语法
采用MathJAX语法,类似LaTex书写规则。
14.1 行内数学公式
质能守恒方程: $E=mc^2$
代码:
质能守恒方程: $E=mc^2$
14.2 行间数学公式
$$\sum_{i=1}^n a_i=0$$
$$f(x_1,x_2,\ldots,x_n) = x_1^2 + x_2^2 + \cdots + x_n^2 $$
$$\sum^{j-1}_{k=0}{\widehat{\gamma}_{kj} z_k}$$
代码:
$$\sum_{i=1}^n a_i=0$$ $$f(x_1,x_2,\ldots,x_n) = x_1^2 + x_2^2 + \cdots + x_n^2 $$ $$\sum^{j-1}_{k=0}{\widehat{\gamma}_{kj} z_k}$$
- 注意:由于“
$
”符号会被解析成为数学公式文本的开始和结束,所以如果要写“$
”符号本身,可以用语言标记。
15.添加参考文献
代码:
添加两篇参考文献[(Huang, W; Li, L; Myers, J. R.; Marth, G. T. (2012). "ART: A next-generation sequencing read simulator". Bioinformatics. 28 (4): 593–4. doi:10.1093/bioinformatics/btr708. PMC 3278762. PMID 22199392.)]<sup>,</sup>[(Pratas, D; Pinho, A. J.; Rodrigues, J. M. (2014). "XS: A FASTQ read simulator". BMC Research Notes. 7: 40. doi:10.1186/1756-0500-7-40. PMC 3927261. PMID 24433564.)], 添加一篇文献[(Escalona, Merly; Rocha, Sara; Posada, David (2016). "A comparison of tools for the simulation of genomic next-generation sequencing data". Nature Reviews Genetics. 17 (8): 459–69. doi:10.1038/nrg.2016.57. PMC 5224698. PMID 27320129.)]。