Last modified by Simon Urli on 2023/10/10

<
From version < 121.1 >
edited by Michael Hamann
on 2022/06/28
To version < 123.2 >
edited by Manuel Leduc
on 2022/07/11
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.MichaelHamann
1 +XWiki.mleduc
Content
... ... @@ -23,7 +23,7 @@
23 23  * **Macro id**: Id of the macro to be used by users when invoking your macro from wiki code
24 24  * **Macro name**: Name of the macro to be displayed on the wysiwyg editor
25 25  * **Macro description**: A short description of the macro to be displayed on the WYSIWYG editor
26 -* **Default category**: Default category under which this macro should be listed
26 +* **Default categories**: Default categories under which this macro should be listed {{warning}}before 14.4RC1 this was called **Default category**{{/warning}}
27 27  * **Supports inline mode**: Whether the macro can be used in an inline context or not
28 28  * **Macro Content availability**: {{warning}}before 11.5RC1 this was called **Macro Content Type**{{/warning}} whether this macro should support a body or not
29 29  * **Macro content type**: {{warning}}this field has been renamed **Macro Content Availability** since 11.5RC1{{/warning}} the type of accepted content: two values are proposed, ##WIKI## if this content should be editable like a wiki content, or ##UNKNOWN## if it should be displayed like a plain text. It's also possible to specify a custom java type such as {{code language="java"}}java.util.List<java.lang.String>{{/code}}. Leaving the field blank is equivalent to ##UNKWOWN## value.
... ... @@ -36,7 +36,7 @@
36 36  
37 37  Now we can define our hello macro as shown below:
38 38  
39 -{{image reference="macro1.png"/}}
39 +{{image reference="macro1.png" width="650px"/}}
40 40  
41 41  == Invocation ==
42 42  
... ... @@ -51,15 +51,13 @@
51 51  == Content ==
52 52  
53 53  {{version since="11.4RC1"}}
54 -There are two ways to insert the content of the wiki macro.
54 +The easiest way to insert the content of the wiki macro is to use a dedicated macro in the body of the wikimacro:
55 55  
56 -* The easiest way is to use a dedicated macro in the body of the wikimacro:(((
57 57  {{code language='none'}}
58 58  {{wikimacrocontent/}}
59 59  {{/code}}
60 60  
61 61  Note that by default this makes the content of the macro directly editable in [[the WYSIWYG editor>>https://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor%20Integration/#HWikiMacros]].
62 -)))
63 63  {{/version}}
64 64  
65 65  For more details, see the [[Scripting Tips section below>>||anchor="HScriptingTips"]].
... ... @@ -244,6 +244,7 @@
244 244  #else
245 245   Hello world!
246 246  #end
245 +{{/velocity}}
247 247  {{/code}}
248 248  
249 249  If we invoke it twice in a row:
macro1.png
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.VincentMassol
1 +XWiki.mleduc
Size
... ... @@ -1,1 +1,1 @@
1 -117.1 KB
1 +83.5 KB
Content

Get Connected