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
-
... ... @@ -10,15 +10,8 @@ 10 10 11 11 1.1 Hello World Macro 12 12 13 -We are going to start with a very simple xwiki/2.0wikimacro which printsagreetingmessageto the document content. Itisn't a very useful macro but the idea is to get you familiarised with the wiki macro creation process.13 +We are going to start with a very simple wiki macro which prints the text "Hello World!" to the document content. It's not a very useful macro but the idea is to get you familiarised with the wiki macro creation process. 14 14 15 15 1.1.1 The XWiki.WikiMacroClass 16 16 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. 20 - 21 -* Macro description: A short description of the macro, this description will be made available on the WYSIWYG editor (More on this later). 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). 24 -