XWiki - XWiki Syntax Guide 

Page / - 最后修改者 ybq sz 打开 2022-05-25 17:59 

XWiki Syntax Guide 
最后修改者 ybq sz
打开 2022-05-25 17:59

内容列表
XWiki Syntax 2.1: Tables

  
XWiki Syntax 2.1 » Editing » Tables
XWiki Syntax 2.1: Tables
•	General
•	Introduction
•	General Remarks
•	Other Syntaxes
•	Editing
•	Paragraphs
•	Headings
•	Text Formatting
•	Horizontal Line
•	Lists
•	Definition Lists
•	New Line/Line Breaks
•	Links
•	Tables
•	Images
•	Advanced
•	Verbatim
•	Quotations
•	Groups
•	Escapes
•	Parameters
•	Programming
•	Macros
•	HTML
•	Scripts

2.0 Tables
Allows to easily create content in table format. Parameters for table, row or cell are also supported in XWiki Syntax 2.1.
Feature	XWiki Syntax 2.1	Result	
Standard table	|=Title 1|=Title 2
|Word 1|Word 2
or
!=Title 1!=Title 2
!!Word 1!!Word 2	Title 1	Title 2	
Word 1	Word 2	
Parametrized table	(% style="background-color:red;align:center" %)
|=Title 1|=(% style="background-color:yellow" %)Title 2
|Word 1|Word 2	Title 1	Title 2	
Word 1	Word 2	
Filterable Sortable table	{{velocity}}
$xwiki.ssfx.use("js/xwiki/table/table.css")
$xwiki.jsfx.use("js/xwiki/table/tablefilterNsort.js", true)
{{/velocity}}

(% class="grid sortable filterable doOddEven" id="tableid" %)
(% class="sortHeader" %)|=Title 1|=Title 2
|Cell 11|Cell 12
|Cell 21|Cell 22
For improved features see the Livetable Macro.	
Title 1	Title 2	
Cell 11	Cell 12	
Cell 21	Cell 22