Changes for page Writing XWiki Rendering Macros in wiki pages
Last modified by Simon Urli on 2023/10/10
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,3 +1,8 @@ 1 +#startfloatingbox() 2 +*Contents* 3 +#toc ("2" "3" "") 4 +#endfloatingbox() 5 + 1 1 1 Wiki Macro Tutorial 2 2 3 3 Wiki macros allow macro authors to develop reusable and distributable macro modules. There is no java code involved; hence no compiling or packaging. Macro author simply needs to create a wiki page according to a particular specification and that's all! ... ... @@ -16,9 +16,10 @@ 16 16 17 17 Wiki macros are defined using objects of type XWiki.WikiMacroClass. You define a wiki macro by creating a new wiki page and attaching it an object of type XWiki.WikiMacroClass. This class contains following fields: 18 18 19 -* Macro name: Name of the macro, which will be used by users to invoke your macro .24 +* Macro name: Name of the macro, which will be used by users to invoke your macro 20 20 21 -* Macro description: A short description of the macro, this description will be made available on the WYSIWYG editor (More on this later) .26 +* Macro description: A short description of the macro, this description will be made available on the WYSIWYG editor (More on this later) 22 22 23 -* Macro content: The actual wiki content that will be evaluated when the macro is executed, can be any wiki content (should be in the same syntax as the document) .28 +* Macro content: The actual wiki content that will be evaluated when the macro is executed, can be any wiki content (should be in the same syntax as the document) 24 24 30 +