Writing XWiki Rendering Macros in wiki pages

Version 146.1 by Eleni Cojocariu on 2026/10/12 13:24

This content has moved to Wiki Macros in the XWiki documentation, and to its three child pages: Write a Macro in a Wiki Page, Wiki Macro Fields and Translate a Wiki Macro.

Hello Macro

Moved to Write a Macro in a Wiki Page, which walks through the same example.

Definition

Moved to Write a Macro in a Wiki Page for the steps, and to Wiki Macro Fields, section "Macro fields", for the reference of every XWiki.WikiMacroClass field.

Invocation

Moved to Write a Macro in a Wiki Page.

Content

Moved to Write a Macro in a Wiki Page for the {{wikimacrocontent/}} step, and to Wiki Macros for what it means when the macro is edited in the WYSIWYG editor.

Parameters

Moved to Wiki Macro Fields, section "Parameter fields", for the reference of every XWiki.WikiMacroParameterClass field, and to Write a Macro in a Wiki Page for the worked example that adds one.

Groups and features

Moved to Wiki Macro Fields, section "Features and groups".

Translations

Moved to Translate a Wiki Macro.

Macro Visibility and Rights

Moved to Wiki Macros, section "Visibility and rights".

Using protected API in wiki macros

Moved to Wiki Macros, section "Visibility and rights".

Bindings

Moved to Wiki Macros, section "Bindings".

WYSIWYG Access

Moved to Wiki Macros, section "In the WYSIWYG editor".

Special code for WYSIWYG edit mode

Moved to Wiki Macros, section "In the WYSIWYG editor".

WYSIWYG editing of macro content or parameter

Moved to Wiki Macros, section "In the WYSIWYG editor".

Scripting Tips

Moved to Wiki Macros, section "Returning blocks directly".

Get Connected