XWiki Syntax 2.1: 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.
Etiquetas:
Creado por Marcel Heckel el 2013/11/14 17:41

Visitado(s) recientemente

Nube de etiquetas

Todavía no se ha etiquetado ningún documento. Los documentos pueden etiquetarse desde la sección de información (pie de página) o desde el panel de información disponible en modo de edición. Para obtener más información consulte la Guía de Usuario.