Wiki語法快速參考

2021-08-29 06:22:40 字數 2433 閱讀 6546

----       = 建立水平線.

\\ = 換行, \\\=force line break and clear.

[link] = 建立乙個鏈結,指向內部的wiki頁面'link'.

[this is also a link] = 建立乙個鏈結,指向內部的wiki頁面'thisisalsoalink'.

[click here|link] = 建立乙個鏈結,指向內部的wiki頁面'link', 鏈結文字是'click here'.

[1] = makes a reference to a footnote numbered 1.

[#1] = marks the footnote number 1.

[[link] = 不建立鏈結而是輸出文字'[link]'.

!heading = 小號標題

!!heading = 中號標題

!!!heading = 大號標題

''text'' = 將text斜體.

__text__ = 將text粗體.

} = prints 'text' in monospaced font.

* text = 無符號列表

# text = 有符號列表

;term:ex = 名詞定義,用'ex'定義名字'term'

在寫wiki頁面時可以不懂任何wiki語法,只需要像寫信那樣寫自己的wiki頁面,用空行來分割不同的段落,這樣輸出的頁面跟你輸入時的格式是類似的.

標題'!'

!text    = 用於定義小號標題

!!text = 用於定義中號標題

!!!text = 用於定義大號標題

除了用於定義頁面輸出樣式,標題還有兩個增值用法

書籤:

所有標題都會自動生成乙個頁面書籤, 這樣我們可以在其他頁面定義乙個鏈結到這個頁面某個書籤的鏈結. 舉例, 在本頁有下面這樣的標題,

!!this is my heading
那麼生成的html**將如下,
在其他頁面可以通過如下文字鏈結到這個書籤, 

[textformattingrules#thisismyheading]

or [bookmark text|textformattingrules#thisismyheading]

生成索引和目錄:

table of contents plugin將會把標題生成對應的索引和目錄

無符號列表'*' '*'生成無符號列表,多個'*'生成多級無符號列表. 舉例:

* one

* two

* three

** three.one

生成列表如下

有符號列表'#' 類似無符號列表, 只是使用'#'. 舉例如下:

# one

# two

# three

## three.one

生成列表如下

one

two

three

three.one

名詞定義與注釋';:'

';term:ex'用於名詞定義,名詞construct的定義舉例如下:

;__construct__:''something you use to do something with''
將生成如下格式,

constructsomething you use to do something with

term為空時用於生成注釋,舉例如下:

;:''comment here.''
將生成如下格式,

comment here.

文字效果(粗體和斜體)

__text__      生成粗體文字

''text'' 生成斜體文字

預格式化文字(preformatted text)

三個']除了在頁面裡顯示乙個已有變數, 還可以在頁面裡使用set定義頁面變數, 基本格式為:

jspwiki variables介紹了關於變數的詳細資訊, jspwiki metadata介紹了set的詳細用法.

注意:變數名是不區分大小寫的, "pagename" 與 "pagename" 表示相同的變數.

使用plugin的基本格式如下:

jspwiki plugins詳細介紹了plugin的用法.

[#1] here's the footnote i mentioned.

[the other footnote] the other footnote. note how it's name is different?

wiki常用語法

公司啟用了streber執行部分專案管理工作。streber基於wiki系統建立。在streber中,我們可以建立專案 project 可以為專案建立milestone task等等。與其他專案管理系統一樣,可以為每乙個task分配資源,指定執行時間。由於streber基於wiki組建,具備了wik...

wiki常用語法

公司啟用了streber執行部分專案管理工作。streber基於wiki系統建立。在streber中,我們可以建立專案 project 可以為專案建立milestone task等等。與其他專案管理系統一樣,可以為每乙個task分配資源,指定執行時間。由於streber基於wiki組建,具備了wik...

ACCESS SQL語法參考

access sql語法參考 一.基礎概念 可以使用的資料型別如下 1.text 文字型 指定長度時 備註型 不指定長度時 2.char,nchar,varchar,nvarchar 文字型,可以指定長度,否則預設值為255!3.byte,tinyint 數字 位元組,不要指定長度和精度,否則會報錯...