XWiki Syntax Guide

Última modificação por superadmin em 03/12/2018, 18:47

XWiki Syntax 2.1 » Programming

XWiki Syntax 2.1: Programming

Macros

2.0 Macros

There is only one kind of macro in XWiki Syntax 2.1, 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 2.1Result
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
Radeox macros cannot be used in XWiki Syntax 2.1. Thus they have been rewritten as Rendering macros.
For the full list of available macros check the Extensions wiki.

HTML

2.0 HTML

In XWiki Syntax 2.1 HTML or XHTML must be entered by using the HTML macro.
XWiki Syntax 2.1Result
{{html}}<b>bold</b>{{/html}} bold
In XWiki Syntax 2.1, by default the HTML macro does not understands XWiki Syntax (other macros included since it's XWiki Syntax too). To enable it, use {{html wiki="true"}} .

Scripts

Failed to execute the [include] macro. Cause: [Cannot find section [H2.0Scripts] in document [administracaodedados:XWiki.XWikiSyntaxScripts]]. Click on this message for details.
Marcadores:
Criado por superadmin em 14/11/2013, 14:41