Last modified by Simon Urli on 2023/10/10

From version 119.2
edited by Vincent Massol
on 2021/02/15
Change comment: There is no comment for this version
To version 119.3
edited by slauriere
on 2021/07/07
Change comment: Fix typo in Color parameter example

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.VincentMassol
1 +XWiki.slauriere
Content
... ... @@ -78,7 +78,7 @@
78 78  * Parameter mandatory: Indicates if this particular parameter is mandatory, wiki macro will fail to execute if a mandatory parameter is missing
79 79  * {{version since="10.10"}}Parameter default value (optional): The default value of the parameter when it's empty{{/version}}
80 80  * {{version since="10.10"}}Parameter type (optional): Indicates to which Java type the parameter value (defined as a String) must be converted to (##java.lang.String## by default).{{/version}}
81 -** Example 1: ##java.awt.Color##. Will provie a Color Picker when the macro is edited in the WYSIWYG editor.
81 +** Example 1: ##java.awt.Color##. Will provide a Color Picker when the macro is edited in the WYSIWYG editor.
82 82  
83 83  Now we're going to extend our **hello macro** with a parameter. We will introduce a parameter named //greetUser// that will indicate if the greeting message should be tailored for the current user viewing the page. The definition of the parameter is shown below:
84 84  

Get Connected