Changes for page Available Macros
Last modified by Jiri Tobias on 2026/01/13 13:54
From version 2.1
edited by Jiri Tobias
on 2026/01/13 13:54
on 2026/01/13 13:54
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-help-ui/17.4.1]
To version 1.1
edited by Martin Mahr
on 2023/11/14 13:33
on 2023/11/14 13:33
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-help-ui/15.9]
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. tobias1 +XWiki.mahr - 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 - $ services.rendering.escape($fallback, 'xwiki/2.1')##7 + $fallback## 8 8 #end 9 9 #end 10 10