Content Macro

The Content macro allows you to enter content in any of the supported syntaxes: xwiki/2.0, xwiki/2.1, confluence/1.0, jspwiki/1.0, creole/1.0, mediawiki/1.0, twiki/1.0, xhtml/1.0, html/4.01, plain/1.0, docbook/4.4, markdown/1.0, markdown/1.1, apt/1.0

The list of supported syntaxes can be configured via the "WEB-INF/xwiki.cfg" file by editing the xwiki.rendering.syntaxes parameter. The default value is xwiki/2.0, xwiki/2.1.

Usage

{{content syntax="<syntax>"}}
// Content in the chosen syntax
{{/content}}

Parameters

NameOptionalAllowed valuesDescriptionDefault value
syntaxNoxwiki/2.0, xwiki/2.1, confluence/1.0, jspwiki/1.0, creole/1.0, mediawiki/1.0, twiki/1.0, xhtml/1.0, html/4.01, plain/1.0, docbook/4.4, markdown/1.0, markdown/1.1, apt/1.0The technical id of the syntax in which the content is writtenNone

Examples

xwiki/2.0 syntax

{{content syntax="xwiki/2.0"}}
[[This is an "xwiki/2.0" link>>xwiki:Sandbox.WebHome#HHeadings]]
{{/content}}

will display

xwiki/2.1 syntax

{{content syntax="xwiki/2.1"}}
[[This is an "xwiki/2.1" link>>xwiki:Sandbox.WebHome||anchor="HHeadings]]
{{/content}}

will display 

 

Related Pages

Search this space