XWikiSyntaxParameters

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.

Advanced

Parameters

1.0 Parameters

In XWiki Syntax 1.0 there is no syntax for passing parameters and the only way to do it was to write XHTML directly in the content as shown in the table below.

XWiki Syntax 1.0Generated XHTML
<h1 class="myClass" style="myStyle" id="myId">heading</h1>
<h1 class="myClass" style="myStyle" id="myId">heading</h1>

2.0 Parameters

With XWiki Syntax Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [cqm8:XWiki.XWikiSyntaxParameters]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.
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 Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [cqm8:XWiki.XWikiSyntaxParameters]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.
Generated XHTML
(% class="myClass" style="myStyle" id="myId" %)
= heading =
<h1 class="myClass" style="myStyle" id="myId">heading</h1>