XWikiSyntaxMacros

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.

Programming

Macros

1.0 Macros

There are two kinds of macros in XWiki Syntax 1.0:

  • Velocity macros (called using the #macroname(param1 ... paramN) syntax)
  • Radeox macros (called using the {macroname:param1=value1|...|paramN=valueN} syntax)
Information

For the full list of available macros check the Extensions wiki.

FeatureXWiki Syntax 1.0
Velocity Macro
#info("Some text")
Radeox Macro
{code:java}
java content
{code}

2.0 Macros

There is only one kind of macro in XWiki Syntax Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [cqm8:XWiki.XWikiSyntaxMacros]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.
, which is called by the syntax: {{macroname param1="value1" ... paramN="valueN"}}...{{/macroname}}. For macros without content there's a short notation: {{macroname param1="value1" ... paramN="valueN"/}}

FeatureXWiki Syntax Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [cqm8:XWiki.XWikiSyntaxMacros]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.
Result
Rendering Macro with a content
{{code language="java"}}
System.out.println("Hello World!");
{{/code}}
System.out.println("Hello World!");
Rendering Macro without content

{{include reference="Space.Page"/}}

The referenced page is included in the current page
Information

For the full list of available macros check the Extensions wiki.

Macros in this wiki

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