Changes for page Available Macros

Last modified by xWill xMencel on 2026/01/05 08:48

From version 1.1
edited by xwiki admin
on 2024/05/30 10:22
Change comment: Install extension [org.xwiki.platform:xwiki-platform-help-ui/16.2.0]
To version 2.1
edited by xWill xMencel
on 2026/01/05 08:48
Change comment: Install extension [org.xwiki.platform:xwiki-platform-help-ui/17.3.0]

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.xwikiadmin
1 +XWiki.will
Content
... ... @@ -1,10 +1,10 @@
1 1  {{velocity}}
2 2  ## If the translation key exists, use its value, otherwise use to the provided fallback value.
3 3  #macro (translateOrElse $translationKey $fallback)
4 - #if($services.localization.get($translationKey))
4 + #if($services.localization.get($translationKey))
5 5   $services.rendering.escape($services.localization.render($translationKey), 'xwiki/2.1')##
6 6   #else
7 - $fallback##
7 + $services.rendering.escape($fallback, 'xwiki/2.1')##
8 8   #end
9 9  #end
10 10