Changes for page Writing XWiki Rendering Macros in wiki pages

<
From version
edited by Asiri Rathnayake
on 2009/07/20
To version
edited by Asiri Rathnayake
on 2009/07/20
>
Change comment: There is no comment for this version

Details

Page properties
Content
 ... ... @@ -10,8 +10,15 @@ 10 10 11 11 1.1 Hello World Macro 12 12 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. 13 +We are going to start with a very simple xwiki/2.0 wiki macro which prints a greeting message to the document content. It isn't 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: 17 17 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 +