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

Summary

Details

Page properties
Content
... ... @@ -15,7 +15,7 @@
15 15  * Wiki macro authors need to have programming rights
16 16  * Wiki macros can only be defined inside the main wiki, though they can be used throughout a farm
17 17  
18 -1.1 Hello World Macro
18 +1.1 Hello Macro
19 19  
20 20  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.
21 21  
... ... @@ -27,13 +27,13 @@
27 27  
28 28  * Macro description: A short description of the macro, this description will be made available on the WYSIWYG editor (More on this later)
29 29  
30 -* 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)
30 +* Macro code: The actual wiki code that will be evaluated when the macro is executed, can be any xwiki content (should be in the same syntax as the document)
31 31  
32 -Now we can define our hello world wiki macro as shown below:
32 +Now we can define our hello macro as shown below:
33 33  
34 34  {image:macro1.png}
35 35  
36 -1.1.1 Wiki Macro Invocation
36 +1.1.1 Macro Invocation
37 37  
38 38  A wiki macro can be invoked just as any other macro is invoked. Since we are writing a xwiki/2.0 wiki macro, we can invoke our hello world macro as below:
39 39  

Get Connected