XWiki Syntax Guide
Administrator
2014/06/29 19:30

Table of Contents
XWiki Syntax 2.1: Macros 	 # 

XWiki Syntax 2.1 » Programming » Macros

XWiki Syntax 2.1: Macros
GeneralIntroduction
Introduction
General Remarks
General Remarks
Other Syntaxes
Other Syntaxes
EditingParagraphs
Paragraphs
Headings
Headings
Text Formatting
Text Formatting
Horizontal Line
Horizontal Line
Lists
Lists
Definition Lists
Definition Lists
New Line/Line Breaks
New Line/Line Breaks
Links
Links
Tables
Tables
Images
Images
AdvancedVerbatim
Verbatim
Quotations
Quotations
Groups
Groups
Escapes
Escapes
Parameters
Parameters
ProgrammingMacros
Macros
HTML
HTML
Scripts
Scripts

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”/} } 
Feature	XWiki Syntax 2.1	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	
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.