Changes for page Available Macros
Last modified by Thomas Coelho (local) on 2024/07/26 08:46
From version 4.1
edited by Thomas Coelho (local)
on 2024/07/26 08:46
on 2024/07/26 08:46
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-help-ui/16.5.0]
To version 3.1
edited by Thomas Coelho (local)
on 2023/07/26 11:22
on 2023/07/26 11:22
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-help-ui/15.5]
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- 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 - 4 + #if($services.localization.get($translationKey)) 5 5 $services.rendering.escape($services.localization.render($translationKey), 'xwiki/2.1')## 6 6 #else 7 - $ services.rendering.escape($fallback, 'xwiki/2.1')##7 + $fallback## 8 8 #end 9 9 #end 10 10