Wiki source code of Writing XWiki Rendering Macros in wiki pages
Last modified by Eleni Cojocariu on 2026/10/12 15:37
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
![]() |
85.2 | 1 | {{box cssClass="floatinginfobox" title="**Contents**"}} |
| 2 | {{toc/}} | ||
| 3 | {{/box}} | ||
![]() |
85.1 | 4 | |
![]() |
143.1 | 5 | This content has moved to [[Wiki Macros>>doc:xwiki:documentation.xs.dev.rendering-macros.wiki-macros.WebHome]] in the XWiki documentation, and to its three child pages: [[Write a Macro in a Wiki Page>>doc:xwiki:documentation.xs.dev.rendering-macros.wiki-macros.write-wiki-macro.WebHome]], [[Wiki Macro Fields>>doc:xwiki:documentation.xs.dev.rendering-macros.wiki-macros.wiki-macro-fields.WebHome]] and [[Translate a Wiki Macro>>doc:xwiki:documentation.xs.dev.rendering-macros.wiki-macros.translate-wiki-macro.WebHome]]. |
| |
4.1 | 6 | |
![]() |
85.2 | 7 | = Hello Macro = |
| |
5.1 | 8 | |
![]() |
143.1 | 9 | Moved to [[Write a Macro in a Wiki Page>>doc:xwiki:documentation.xs.dev.rendering-macros.wiki-macros.write-wiki-macro.WebHome]], which walks through the same example. |
| |
5.1 | 10 | |
![]() |
85.2 | 11 | == Definition == |
| |
5.1 | 12 | |
![]() |
143.1 | 13 | Moved to [[Write a Macro in a Wiki Page>>doc:xwiki:documentation.xs.dev.rendering-macros.wiki-macros.write-wiki-macro.WebHome]] for the steps, and to [[Wiki Macro Fields>>doc:xwiki:documentation.xs.dev.rendering-macros.wiki-macros.wiki-macro-fields.WebHome]], section "Macro fields", for the reference of every ##XWiki.WikiMacroClass## field. |
| |
5.1 | 14 | |
![]() |
85.2 | 15 | == Invocation == |
| |
10.1 | 16 | |
![]() |
143.1 | 17 | Moved to [[Write a Macro in a Wiki Page>>doc:xwiki:documentation.xs.dev.rendering-macros.wiki-macros.write-wiki-macro.WebHome]]. |
| |
10.1 | 18 | |
| |
86.1 | 19 | == Content == |
| 20 | |||
![]() |
143.1 | 21 | Moved to [[Write a Macro in a Wiki Page>>doc:xwiki:documentation.xs.dev.rendering-macros.wiki-macros.write-wiki-macro.WebHome]] for the ##~{~{wikimacrocontent/~}~}## step, and to [[Wiki Macros>>doc:xwiki:documentation.xs.dev.rendering-macros.wiki-macros.WebHome]] for what it means when the macro is edited in the WYSIWYG editor. |
![]() |
102.1 | 22 | |
![]() |
85.2 | 23 | == Parameters == |
| |
38.1 | 24 | |
![]() |
143.1 | 25 | Moved to [[Wiki Macro Fields>>doc:xwiki:documentation.xs.dev.rendering-macros.wiki-macros.wiki-macro-fields.WebHome]], section "Parameter fields", for the reference of every ##XWiki.WikiMacroParameterClass## field, and to [[Write a Macro in a Wiki Page>>doc:xwiki:documentation.xs.dev.rendering-macros.wiki-macros.write-wiki-macro.WebHome]] for the worked example that adds one. |
| |
42.1 | 26 | |
![]() |
142.1 | 27 | === Groups and features === |
| 28 | |||
![]() |
143.1 | 29 | Moved to [[Wiki Macro Fields>>doc:xwiki:documentation.xs.dev.rendering-macros.wiki-macros.wiki-macro-fields.WebHome]], section "Features and groups". |
![]() |
142.1 | 30 | |
![]() |
91.2 | 31 | == Translations == |
![]() |
91.1 | 32 | |
![]() |
143.1 | 33 | Moved to [[Translate a Wiki Macro>>doc:xwiki:documentation.xs.dev.rendering-macros.wiki-macros.translate-wiki-macro.WebHome]]. |
![]() |
91.1 | 34 | |
![]() |
117.5 | 35 | = Macro Visibility and Rights = |
| 36 | |||
![]() |
143.1 | 37 | Moved to [[Wiki Macros>>doc:xwiki:documentation.xs.dev.rendering-macros.wiki-macros.WebHome]], section "Visibility and rights". |
![]() |
117.5 | 38 | |
| 39 | == Using protected API in wiki macros == | ||
| 40 | |||
![]() |
143.1 | 41 | Moved to [[Wiki Macros>>doc:xwiki:documentation.xs.dev.rendering-macros.wiki-macros.WebHome]], section "Visibility and rights". |
![]() |
117.5 | 42 | |
| 43 | = Bindings = | ||
| 44 | |||
![]() |
143.1 | 45 | Moved to [[Wiki Macros>>doc:xwiki:documentation.xs.dev.rendering-macros.wiki-macros.WebHome]], section "Bindings". |
![]() |
117.5 | 46 | |
![]() |
85.2 | 47 | = WYSIWYG Access = |
| 48 | |||
![]() |
143.1 | 49 | Moved to [[Wiki Macros>>doc:xwiki:documentation.xs.dev.rendering-macros.wiki-macros.WebHome]], section "In the WYSIWYG editor". |
![]() |
85.2 | 50 | |
| 51 | == Special code for WYSIWYG edit mode == | ||
| |
16.1 | 52 | |
![]() |
143.1 | 53 | Moved to [[Wiki Macros>>doc:xwiki:documentation.xs.dev.rendering-macros.wiki-macros.WebHome]], section "In the WYSIWYG editor". |
| |
69.1 | 54 | |
![]() |
116.1 | 55 | == WYSIWYG editing of macro content or parameter == |
| 56 | |||
![]() |
143.1 | 57 | Moved to [[Wiki Macros>>doc:xwiki:documentation.xs.dev.rendering-macros.wiki-macros.WebHome]], section "In the WYSIWYG editor". |
![]() |
116.1 | 58 | |
![]() |
85.2 | 59 | = Scripting Tips = |
| |
31.1 | 60 | |
![]() |
143.1 | 61 | Moved to [[Wiki Macros>>doc:xwiki:documentation.xs.dev.rendering-macros.wiki-macros.WebHome]], section "Returning blocks directly". |
| |
33.1 | 62 |





