XWikiSyntaxTables

Version 1.1 by superadmin on 2025/05/22 17:44
Warning
For security reasons, the document is displayed in restricted mode as it is not the current version. There may be differences and errors due to this.

Editing

Tables

1.0 Tables

Allows to easily create content in table format.

FeatureXWiki Syntax 1.0Result
Standard table
{table}
Title 1 | Title 2
Word 1 | Word 2
{table}
Title 1Title 2
Word 1Word 2
Parametrized table

<table style="background-color:red;text-align:center">
  <tbody>
    <tr>
      <td>Title 1</td>
      <td style="background-color:yellow">Title 2</td>
    </tr>
    <tr>
      <td>Word 1</td>
      <td>Word 2</td>
    </tr>
  </tbody>
</table>

Title 1Title 2
Word 1Word 2
Filterable Sortable table
$xwiki.ssfx.use("js/xwiki/table/table.css")
$xwiki.jsfx.use("js/xwiki/table/tablefilterNsort.js", true)
<table id="table1id" class="grid sortable filterable doOddEven">
  <tr class="sortHeader">
    <th>Title 1</th>
    <th>Title 2</th>
  </tr>
  <tr>
   <td>Cell 11</td>
   <td>Cell 12</td>
  </tr>
  <tr>
   <td>Cell 21</td>
   <td>Cell 22</td>
  </tr>
</table>
Information

For improved features see the Livetable Macro.

Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [cqm8:XWiki.XWikiSyntaxTables]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.

Title 1Title 2
Cell 11Cell 12
Cell 21Cell 22

2.0 Tables

Allows to easily create content in table format. Parameters for table, row or cell are also supported in XWiki Syntax Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [cqm8:XWiki.XWikiSyntaxTables]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.
.

FeatureXWiki Syntax Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [cqm8:XWiki.XWikiSyntaxTables]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.
Result
Standard table
|=Title 1|=Title 2
|Word 1|Word 2
or
!=Title 1!=Title 2
!!Word 1!!Word 2
Title 1Title 2
Word 1Word 2
Parametrized table
(% style="background-color:red;text-align:center" %)
|=Title 1|=(% style="background-color:yellow" %)Title 2
|Word 1|Word 2
Title 1Title 2
Word 1Word 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
Information

For improved features see the Livetable Macro.

Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [cqm8:XWiki.XWikiSyntaxTables]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.

Title 1Title 2
Cell 11Cell 12
Cell 21Cell 22