XWiki - XWiki Syntax Guide 
Page of - last modified by superadmin on 2017/11/28 14:52 
XWiki Syntax Guide 

superadmin

2017/11/28 14:52
Table of Contents
XWiki Syntax 2.1: All

  
XWiki Syntax 2.1
XWiki Syntax 2.1: All
�	General
�	Introduction
�	General Remarks
�	Other Syntaxes
�	Editing
�	Paragraphs
�	Headings
�	Text Formatting
�	Horizontal Line
�	Lists
�	Definition Lists
�	New Line/Line Breaks
�	Links
�	Tables
�	Images
�	Advanced
�	Verbatim
�	Quotations
�	Groups
�	Escapes
�	Parameters
�	Programming
�	Macros
�	HTML
�	Scripts

General
Introduction
2.1 Introduction
The XWiki Syntax 2.0 has proven to be quite useful and robust in general; however since its introduction a few shortcomings have been found. The corresponding improvements have been consolidated in XWiki Syntax 2.1. Some new features of this syntax are:
�	Homogenize the link and image syntax for better clarity, consistency and extensibility.
�	Added ability to display icons, to embed images via the Data URI scheme, to link to files using the UNC notation and to link to relative URLs.
Since XWiki Syntax 2.1 is based on XWiki Syntax 2.0 all syntax from XWiki Syntax 2.0 is valid unless the 2.1 specifications suggest differently.
In addition to these XWiki-specific syntaxes we've also changed our underlying rendering engine in XWiki Enterprise version 1.7 (was Radeox previously) in favor of our own engine which is superset wrapper around Wikimodel and Doxia (and possibly others in the future).   This has allowed us to provide other syntaxes in the wiki: MediaWiki, Confluence, JSPWiki, Creole, TWiki and more.
General Remarks
2.0 General Remarks
XWiki Syntax 2.1 corrects some errors or ambiguous syntax entered by the user as shown in the examples in the table below.
Description	Example of invalid or ambiguous syntax	Fixed XWiki Syntax 2.1	
Unclosed text styles	**bold	**bold**	
Two standalone elements not separated by 2 new lines	| table cell
* list item	| table cell

* list item	
Two standalone elements not separated by 2 new lines	paragraph
----
paragraph	paragraph

----

paragraph	
Ignored new line at beginning of document	<new line at beginning of document>
paragraph	paragraph	
Not closed heading syntax	=== heading	=== heading ===	
Other Syntaxes
1.0 Other Syntaxes
Other syntaxes are also available (bundled or through extensions):
�	JSPWiki (Bundled)
�	MediaWiki (Extension)
�	Confluence (Bundled)
�	TWiki (Bundled)
�	Creole 1.0 (Bundled)
�	XHTML 1.0 (Bundled)
�	Markdown (Extension)
�	DokuWiki (Extension)
Editing
Paragraphs
2.0 Paragraphs
Paragraphs are text elements separated by 2 or more new lines.
In XWiki Syntax 2.1 new lines are honored which is not the case in XWiki Syntax 1.0 and in Creole Syntax.
Feature	XWiki Syntax 2.1	Result	
Simple paragraph	This is a paragraph	This is a paragraph	
Paragraph on multiple lines	Paragraph on
multiple lines	Paragraph on
multiple lines	
Two paragraphs	Paragraph one

Paragraph two	Paragraph one

Paragraph two	
Parametrized paragraph	(% style="text-align:center;color:blue" %)
Centered and blue paragraph	
Centered and blue paragraph	
Different style on some portion of the paragraph content	paragraph with (% style="color:red" %)red(%%) different style inside	paragraph with red texte inside	
Headings
2.0 Headings
Feature	XWiki Syntax 2.1	Result	
Standard headings	= level 1 = 
== level 2 ==
=== level 3 ===
==== level 4 ====
===== level 5 =====
====== level 6 ======	level 1
  
level 2
level 3
level 4
level 5
level 6	
Parameterized headings	(% style="color:blue" %)
= heading =	heading	
Headings with XWiki Syntax	=== Heading with **bold** ===	Heading with 	
Text Formatting
2.0 Text Formatting
New in XWiki Syntax 2.1 over XWiki Syntax 1.0:
�	Spaces are allowed just after the syntax symbols (for example in XWiki Syntax 1.0, this was not possible: * bold *).
�	Use double symbols when there was only a single symbol in XWiki Syntax 1.0 so that it's less likely that the user will mistakenly use them in text.
�	Ability to span several lines (wasn't possible in XWiki Syntax 1.0).
Feature	XWiki Syntax 2.1	Result	
Bold	**bold**		
Underline	__underline__	underline	
Italics	//italic//		
Striked out	--strike--	strike	
Monospace	##monospace##	monospace	
Superscript	some ^^superscript^^	some superscript	
Subscript	some ,,subscript,,	some subscript	
Horizontal Line
2.0 Horizontal Line
There must be 4 or more dashes.
Note that this is different from Creole where exactly 4 dashes are required.
Feature	XWiki Syntax 2.1	Result	
Simple horizontal line	----		
Parametrized horizontal line	(% style="color:blue" %)
----		
Lists
2.0 Lists
Some of the mentioned styles do not work on all browsers. For a comprehensive list follow this link.
Feature	XWiki Syntax 2.1	Result	
Bulleted list	* item 1
** item 2
*** item 3
* item 4	�	item 1
�	item 2
�	item 3
�	item 4	
Numbered list	1. item 1
11. item 2
111. item 3
1. item 4	 1.	item 1
 1.	item 2
 1.	item 3
 2.	item 4	
Mixed list	1. item 1
1*. item 2
1*. item 3
1. item 4	 1.	item 1
�	item 2
�	item 3
 2.	item 4	
Square list	(% style="list-style-type: square" %)
* item 1
* item 2	�	item 1
�	item 2	
Disc list	(% style="list-style-type: disc" %)
* item 1
* item 2	�	item 1
�	item 2	
Lowercase Alphabetical list	(% style="list-style-type: lower-alpha" %)
* item 1
* item 2	�	item 1
�	item 2	
Uppercase Alphabetical list	(% style="list-style-type: upper-alpha" %)
* item 1
* item 2	�	item 1
�	item 2	
Lowercase Roman list	(% style="list-style-type: lower-roman" %)
* item 1
* item 2	�	item 1
�	item 2	
Uppercase Roman list	(% style="list-style-type: upper-roman" %)
* item 1
* item 2	�	item 1
�	item 2	
Lowercase Greek list	(% style="list-style-type: lower-greek" %)
* item 1
* item 2	�	item 1
�	item 2	
Uppercase Greek list	(% style="list-style-type: upper-greek" %)
* item 1
* item 2	�	item 1
�	item 2	
Hiragana list	(% style="list-style-type: hiragana" %)
* item 1
* item 2	�	item 1
�	item 2	
Hiragana Iroah list	(% style="list-style-type: hiragana-iroha" %)
* item 1
* item 2	�	item 1
�	item 2	
Katakana list	(% style="list-style-type: katakana" %)
* item 1
* item 2	�	item 1
�	item 2	
Katakana Iroha list	(% style="list-style-type: katakana-iroha" %)
* item 1
* item 2	�	item 1
�	item 2	
Armenian list	(% style="list-style-type: armenian" %)
* item 1
* item 2	�	item 1
�	item 2	
Hebrew list	(% style="list-style-type: hebrew" %)
* item 1
* item 2	�	item 1
�	item 2	
Georgian list	(% style="list-style-type: georgian" %)
* item 1
* item 2	�	item 1
�	item 2	
CJK ideographic list	(% style="list-style-type: cjk-ideographic" %)
* item 1
* item 2	�	item 1
�	item 2	
Definition Lists
2.0 Definition Lists
Feature	XWiki Syntax 2.1	Result	
Standard definition	; term
: definition	term
definition	
Nested definitions	; term 1
: definition 1
:; term 2
:: definition 2	term 1
definition 1
term 2
definition 2	
Parametrized definition	(% style="color:blue" %)
; term
: definition	term
definition	
New Line/Line Breaks
2.0 New Line Line Breaks
A new line is a carriage return. A line break is a forced new line that can appear anywhere in the text.
In XWiki Syntax 2.1 new lines are honored which is not the case in XWiki Syntax 1.0 and in Creole Syntax.
Feature	XWiki Syntax 2.1	Result	
Line break	Line\\New line	Line
New line	
New line	Line
New line	Line
New line	
Links
2.1 Links
Feature	XWiki Syntax 2.1	Result	
Absolute link to page PageB located in PageA	[[PageA.PageB]]	PageB	
Relative link to page PageA from the current page	[[PageA]] or [[.PageA]]	PageA	
Relative link to page PageB in PageA from the current page	[[.PageA.PageB]]	PageB	
Link with a label	[[label>>PageA]]
XWiki Syntax is supported inside link labels.	label	
Link with wiki syntax in the label	[[**bold label**>>PageA]]	bold label	
Link on an image	[[image:PageA@img.png>>PageA]]		
Absolute link to page PageB located in PageA in wiki WikiA	[[WikiA:PageA.PageB]]	PageB	
Link that opens in a new window	[[PageA||target="_blank"]]	PageA	
Implicit link to a URL	This is a URL: http://xwiki.org	This is a URL: http://xwiki.org	
Explicit link to a URL	[[http://xwiki.org]]	http://xwiki.org	
Explicit link to a URL with a label	[[XWiki>>http://xwiki.org]]	XWiki	
Link to an email address	[[john@smith.net>>mailto:john@smith.net]]	john@smith.net	
Link to an attachment on the current page	[[attach:img.png]]	img.png	
Link to an attachment in a different page	[[attach:PageA.PageB@img.png]]	img.png	
Link to an Anchor in a page	[[PageA.PageB||anchor="anchor"]]	PageB	
Link to a Heading in a page	[[PageA.PageB||anchor="HMyheading"]]
When you add a Heading, an anchor named "H" followed by the heading title with only alpha characters is created. For example, for a Heading named "My heading", the generated anchor will be "HMyheading".	PageB	
Link to an anchor in the current page	[[label>>||anchor="anchor"]]	label	
Link to a page with a query string	[[PageA.PageB||queryString="param1=value1&param2=value2"]]	PageB	
Link to the current page with a query string	[[label>>||queryString="param1=value1&param2=value2"]]	label	
XWiki Syntax 2.1 Link Specification
The part in ( ) is required, while the parts in [ ] are optional.
The full format of a link is 
�	: An optional string which will be displayed to the user as the link name when rendered. The label may contain XWiki Syntax. If no label is specified a default label will be generated. The generation pattern can be changed, see the Admin Guide. Example: My Page
�	: A required string with the link reference in one of the following forms
�	: Any URL in the form of . Examples: http://xwiki.org, url:https://svn.xwiki.org/
�	 An optional string identifying the resource as an URL.
�	 reference in the form . Examples: doc:Welcome, doc:Main.Welcome, doc:mywiki:Main.Welcome
�	 A required string identifying the resource as an XWiki terminal page. A non-terminal page can also be referenced this way, but it must append its .WebHome part (e.g. doc:Sandbox.WebHome).
�	: An optional string containing the name of a virtual wiki. The link will point to a page inside that virtual wiki. If no wiki is specified, the current wiki is used. Example: mywiki.
�	: An optional dot-separated list of wiki Space names. If no space is specified the current space is used. Examples: Main, A.B, A.B.C
�	: A required string containing the name of the linked wiki page. Example: Welcome
�	 Since 7.4.1 reference in the form . Examples: space:Main, space:mywiki:Main, space:A.B.C
�	 A required string identifying the resource as an XWiki non-terminal page (i.e. a space).
�	: An optional string containing the name of a virtual wiki. The link will point to a page inside that virtual wiki. If no wiki is specified, the current wiki is used. Example: mywiki
�	: A required list of dot-separated wiki Space names pointing to the final linked wiki Space (or non-terminal page). Examples: Main, A.B, A.B.C
�	 reference in the form . Example: interwiki:wikipedia:XWiki
�	 A required string identifying the resource as an InterWiki link.
�	: An optional Inter Wiki alias as defined in the InterWiki Map (see the Admin Guide). Example: wikipedia
�	: A required string containing the name of the linked page. Example: XWiki
�	 reference in the form . Examples: attach:img.png, attach:mywiki:Main.WebHome@img.png, attach:mywiki:Main@img.png
�	 A required string identifying the resource as attachment.
�	: An optional string referencing the (terminal or non-terminal) page that holds the attachment. This is resolved identically to "Untyped", below.
�	: Name of the attachment as it is stored in the wiki. Example: photo.png
�	 in the form  (#anchor is not valid). Example: mailto:john@smith.com
�	 A required string identifying the resource as email.
�	: Targeted email address. Example: john@smith.com
�	 reference on the server in the form . Example: path:$doc.getURL('reset') produces target address http://server.domain.com/xwiki/bin/reset/Space/Page where /xwiki/bin/reset/Space/Page is produced by $doc.getURL('reset').
�	 A required string identifying the resource as a relative path.
�	: A required string containing the relative path of the resource on the server that shall be linked.
�	 reference in the form . The link is rendered as a file:// link. Examples: unc:C:\Windows\, unc:\\myserver\path\img.png, unc:home/user/somefile
�	 A required string identifying the resource as a UNC (Windows Explorer) path.
�	: A required string containing the local path of resource accessible by the user. Examples: C:\Windows\, \\myserver\path\img.png, home/user/somefile
�	: If none of the above mentioned resource types are specified (i.e. no type: resource prefix was specified in the link), then the link will be treated as a link to an XWiki terminal or non-terminal page using the following algorithm:
�	 in the current space,  if it exists. Example: [[A]] is resolved to the equivalent of [[doc:currentSpace.A]]
�	 Since 7.4.1 in the current space. Example: [[A]] is resolved to the equivalent of [[space:currentSpace.A]], which is the equivalent of [[doc:currentSpace.A.WebHome]]
�	If the current page is non-terminal and the previous 2 checks above did not find an existing page, 2 additional checks are made:
�	 Since 7.4.1 as sibling in the parent space,  if it exists. Example: The [[B]] link inside the non-terminal page A.C is resolved to the equivalent of [[doc:A.B]]
�	 Since 7.4.1 as sibling in the parent space, regardless if it exists or not. Example: The [[B]] link inside the non-terminal page A.C is resolved to the equivalent of [[space:A.B]], which is the equivalent of [[doc:A.B.WebHome]]
�	: Since 7.4.1 If the untyped link has 2 or more dot-separated components specified (i.e. that look like a space name and a page name), the above algorithm will resolve the page relative to the current wiki, and not the current space. Example: [[A.B]] can be resolved to either [[doc:currentWiki:A.B]] (if it exists) or to [[space:currentWiki:A.B]] (equivalent of [[doc:currentWiki:A.B.WebHome]]) and not to [[doc:currentWiki:currentSpace.A.B]] or [[doc:currentWiki:currentSpace.A.B.WebHome]].
�	: Since 7.4.1 If the untyped link ends in .WebHome, it will  be handled as a terminal page. Example: [[A.WebHome]] will always be resolved to the equivalent of [[doc:A.WebHome]] and not to [[doc:A.WebHome.WebHome]].
�	: An optional list of space-separated parameters passed to the link. Example: queryString="mydata1=5&mydata2=Hello" anchor="HTableOfContents" target="_blank"
�	: An optional query string for specifying parameters that will be appended to the link target address and used in the rendered URL. Example: url:http://domain.com/path||queryString="mydata1=5&mydata2=Hello" produces target address http://domain.com/path?mydata1=5&mydata2=Hello
�	: An optional anchor name pointing to an anchor defined in the referenced link. Note that in XWiki anchors are automatically created for headings. Example: url:http://domain.com/path||anchor="HTableOfContents" produces target address http://domain.com/path#HTableOfContents
�	: An optional parameter that allows to open link target in new window. Example: target="_blank"
Tables
2.0 Tables
Allows to easily create content in table format. Parameters for table, row or cell are also supported in XWiki Syntax 2.1.
Feature	XWiki Syntax 2.1	Result	
Standard table	|=Title 1|=Title 2
|Word 1|Word 2
or
!=Title 1!=Title 2
!!Word 1!!Word 2	Title 1	Title 2	
Word 1	Word 2	
Parametrized table	
	(% style="background-color:red;align=center" %)
|=Title 1|=(% style="background-color:yellow" %)Title 2
|Word 1|Word 2	Title 1	Title 2	
Word 1	Word 2	
Filterable Sortable table	
	{{velocity}}
$xwiki.ssfx.use("js/xwiki/table/table.css")
$xwiki.jsfx.use("js/xwiki/table/tablefilterNsort.js", true)
{{/velocity}}

(% class="grid sortable filterable doOddEven" id="tableid" %)
(% class="sortHeader" %)|=Title 1|=Title 2
|Cell 11|Cell 12
|Cell 21|Cell 22
For improved features see the Livetable Macro.	
Title 1	Title 2	
Cell 11	Cell 12	
Cell 21	Cell 22	
Images	
2.1 Images
Feature	XWiki Syntax 2.1	Result	
Image from attachment on current page	image:img.png		
Image from attachment on another page	image:PageA.PageB@img.png		
Image with parameters	[[image:img.png||width="25" height="25"]]		
Images located at URL	image:http://some/url/img.png		
Prepackaged Icons	image:icon:accept		
XWiki Syntax 2.1 Image Specification
The part in ( ) is required, while the parts in { } are optional.
The full format of an image is either  or 
�	 A required string identifying the resource as image.
�	: The reference to the image that shall be displayed in one of the following forms:
�	: Any URL to an image in the form of . Example: http://domain.org/path/img.png
�	 reference in the form 
�	: An optional string containing the name of a virtual wiki. The image reference will point to an image attached to a page inside that virtual wiki. If no wiki is specified, the current wiki is used. Example: mywiki.
�	: An optional dot-separated list of wiki Space names. If no space is specified the current space is used. Examples: Main, A.B, A.B.C
�	: An optional string containing the name of the wiki page to which the referenced image is attached. Example: Welcome
�	: A required string containing the name of the image attached to a page as it is stored in the wiki. Example: myImage.png
�	 reference in the form . Example: 
�	 A required string identifying the image reference as an icon from the XWiki Icon Set.
�	: A required string identifying the icon referenced. Example: accept
�	 in the form . Example: 
�	 A required string identifying the image as being specified inline using the Data URI scheme.
�	: The encoded image. Example: image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==
�	: An optional list of space-separated parameters passed to the image. Example: width="800" height="600" alt="img.png" title="My nice image"
�	: All attributes defined by the HTML standard will be added to the rendered HTML <img> tag.
�	: CSS style information that should be applied to the image. Examples: style="float:right;height:50" (image on right side, height 50 px), style="display:block;margin-left:auto;margin-right:auto;width:80%" (image centered, width 80% of block width), style="vertical-align:bottom" (text starts at bottom of picture)
�	: A parameter that defines the height of the displayed image. The value should be presented either in pixel (example: height="80") or in pixel related to the height of the block containing the image (example: height="40%").
�	: A parameter that defines the width of the displayed image. The value should be presented either in pixel (example: width="80") or in pixel related to the width of the block containing the image (example: width="40%").
�	: A parameter that defines the title the displayed image which will be visible when hovering the mouse trigger over the image, for instance. Example: title="My nice image"
�	: A parameter that defines which text should be displayed if the browser is not able to display the image. Since this is a required HTML attribute XWiki will use the file name instead if the alt parameter is not defined. Example: alt="img.png"
�	: A more in depth explanation on the HTML <img> tag including more attributes can be reviewed on w3.org.
�	: Allows queries to be passed to the server when creating the download link for the referenced image. Example: queryString="width=100&height=800&keepAspectRatio=true" ()
Advanced
Verbatim
2.0 Verbatim
Allow to enter content that will not be formatted (in other words the XWiki Syntax will not be taken into account).
Feature	XWiki Syntax 2.1	Result	
Verbatim inline	Some verbatim {{{**[[not rendered]]**}}} content	Some verbatim **[[not rendered]]** content	
Verbatim block	{{{
multi line
**verbatim**
content
}}}	multi line
**verbatim**
content	
Quotations
2.0 Quotations
Allows to quote some text.
Feature	XWiki Syntax 2.1	Result	
Simple quote	> john said this
I said ok	  john said this
I said ok	
Nested quotes	> john said this
>> marie answered that
I said ok	  john said this
  marie answered that
I said ok	
Groups
2.0 Groups
Groups can be used to insert another document inline directly into the current document. This allows for example to insert complex elements or style inside a list item, inside a table cell or a paragraph. Groups are delimited by the following syntactic elements: (((...))). One Group can contain another Group and there is no limit of imbrication.
XWiki Syntax 2.1	Result	
|=Header 1|=Header 2|=Header 3
|Cell One|(((
= Embedded document =

Some embedded paragraph.

* list item one
* list item two
  ** sub-item 1
  ** sub-item 2
))) | Cell Three

Next paragraph in the top-level document	Header 1	Header 2	Header 3	
Cell One	Embedded document
Some embedded paragraph.
�	list item one
�	list item two
�	sub-item 1
�	sub-item 2	  Cell Three	
Next paragraph in the top-level document	
(% class="myClass" style="color:blue" %)(((blue paragraphs

inside myClass)))	blue paragraphs
inside my group	
Escapes
2.0 Escapes
Allows to escape XWiki Syntax.
Feature	XWiki Syntax 2.1	Result	
Escape a character	This is not a ~[~[link~]~]
To enter a ~ character use a double escape: ~~	This is not a [[link]]	
Escape longer text
(also see "Verbatim")	{{{ some **longer** text //without// formatting}}}	some **longer** text //without// formatting	
Parameters
2.0 Parameters
With XWiki Syntax 2.1 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 2.1	Generated XHTML	
(% class="myClass" style="myStyle" id="myId" %)
= heading =	<h1 class="myClass" style="myStyle" id="myId">heading</h1>	
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"/}}
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.
Macros in this wiki
Id	Name	Category	Description	Visibility	
rss	RSS	Content	Output latest feed entries from a RSS feed.	Global	
groovy	Groovy	Development	Execute a groovy script.	Global	
script	Script	Development	Execute script in provided script language.	Global	
footnote	Footnote	Content	Generates a footnote to display at the end of the page.	Global	
html	HTML	Development	Inserts HTML or XHTML code into the page.	Global	
id	Id	Navigation	Allows putting a reference/location in a page. In HTML for example this is called an Anchor. It allows pointing to that location, for example in links.	Global	
useravatar	User Avatar	Content	Allows displaying the avatar for a specific user.	Global	
template	Template	Internal	Insert a template.	Global	
attachmentSelector	Attachment Selector	Development	A control to be used for object properties of the current document that are supposed to contain the name of an attachment from the current (or target) document. Allows uploading new attachments, and deleting attachments from the target document.   If no target document is specified, the current document will be used. Object properties are only saved to the current document.	Current Wiki	
tabs	Tabbed view renderer	Content	Creates tabbed view for content areas wrapped into <div /> with unique id (see macro home for details)	Current Wiki	
warning	Warning Message	Formatting	Displays a warning message note.	Global	
velocity	Velocity	Development	Executes a Velocity script.	Global	
info	Info Message	Formatting	Displays an info message note.	Global	
python	Python	Development	Executes a python script.	Global	
spaceindex	Space Index	Deprecated	Lists documents in a space.	Current Wiki	
plantuml	PlantUML	content	Generate Diagrams using PlantUML.	Current Wiki	
iconPicker	Icon Picker	Development	Select an icon within the XWiki icon set.	Current Wiki	
spaces	Spaces	Deprecated	Displays all the spaces in this wiki.	Current Wiki	
activity	Activity	Content	The Activity Macro provides information about recent activities done by the users inside the XWiki instance. It lists the create, edit and delete events for pages, as well as comments, attachments and annotations.	Current Wiki	
messageSender	Message Sender	Social	A control that allows users to enter messages that are handled by the MessageStream module.	Current Wiki	
xslt	xslt		XSLT Macro help to transform XML document with XSLT style-sheet.
Macro is able to retrieve XML document or style sheet from attachment or URL
XML document or else style sheet could be the content of the macro.
Parameters could be pass to the XSLT style-sheet.	Global	
sequence	Sequence Diagram	content	Draws a sequence diagram using http://www.websequencediagrams.com/	Global	
office	Office Document Viewer	Content	View office attachments (doc, ppt, xls, odt, odp, ods etc.) inside wiki pages without downloading or importing them.	Global	
display	Display	Content	Display other pages into the current page.	Global	
numberedheadings	numberedheadings	Navigation	Automatically add numbers to headings	Global	
tagcloud	Tag Cloud	Content	Displays the cloud of tags in this wiki or in the specified space, if any.	Current Wiki	
content	Content	Content	Allows writing content in any wiki markup	Global	
translation	Translation	Content	Display a translation message.	Global	
watchlist	Watchlist	Content	Show the content of your current watchlist.	Current Wiki	
children	Children	Navigation	Displays a tree of children pages of the current page	Current Wiki	
toc	Table Of Contents	Navigation	Generates a Table Of Contents.	Global	
container	Container	Layout	A macro to enclose multiple groups and add decoration, such as layout.	Global	
success	Success Message	Formatting	Displays a success message note.	Global	
context	Context	Development	Executes content in the context of the passed document	Global	
ServiceArea	Service Area	PayEx	Create a list item for a service area. Intended for the front page.	Current Wiki	
code	Code	Formatting	Highlights code snippets of various programming languages	Global	
comment	Comment	Development	Allows putting comments in the source content. This macro doesn't output anything.	Global	
dashboard	Dashboard	Layout	A macro to define a dashboard.	Global	
putFootnotes	Put Footnote	Content	Displays the footnotes defined so far. If missing, all footnotes are displayed by default at the end of the page.	Global	
ServiceBox	Service Box	PayEx	Service box intended for service and products	Global	
documents	Documents	Content	Displays a list of documents in a Livetable	Current Wiki	
menu	Menu	Navigation	Displays a menu created using simple wiki syntax (nested lists and links).	Global	
error	Error Message	Formatting	Displays an error message note.	Global	
documentTree	Document Tree	Navigation	Displays the tree of XWiki documents.	Current Wiki	
formula	Formula	Content	Displays a mathematical formula.	Global	
showhide	showhide	content	Show Hide Macro	Current Wiki	
cache	Cache	Development	Caches content.	Global	
tree	Tree	Navigation	Displays a tree hierarchy defined by the macro content or the source parameter.	Current Wiki	
box	Box	Formatting	Draw a box around provided content.	Global	
gallery	Gallery	Layout	Displays the images found in the provided content using a slide-show view.	Global	
include	Include	Content	Include other pages into the current page.	Global	
chart	Chart	Content	Displays a graphical chart generated from miscellaneous data sources	Global	
HTML
2.0 HTML
In XWiki Syntax 2.1 HTML or XHTML must be entered by using the HTML macro.
XWiki Syntax 2.1	Result	
{{html}}<b>bold</b>{{/html}} 		
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
2.0 Scripts
In XWiki Syntax 1.0 it was possible to enter Velocity scripts anywhere directly in the page. This lead to issues for example when the user was involuntarily entering Velocity content. It was also performance hungry for pages not requiring Velocity content. There were several other technical limitations. Thus in XWiki Syntax 2.1 Velocity scripts must be entered using the velocity macro. Same goes for entering Groovy scripts.
Feature	XWiki Syntax 2.1	
Velocity script	{{velocity}}
#set ($var = "whatever")
{{/velocity}}	
Groovy script	{{groovy}}
def var = "whatever"
{{/groovy}}