Z verze
změnil(a) David Brazda
k 01.02.2021 07:47
Na verzi < 5.1 >
změnil(a) David Brazda
k 01.02.2021 08:13
< >
Popis verze: Při změně verze nebyl zadán žádný kometář.

Přehled

Rozpis

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -1,0 +1,14 @@
1 +{{velocity}}
2 +#set($url = $xcontext.macro.params.get('url'))
3 +#set($width = $xcontext.macro.params.get('width'))
4 +#set($height = $xcontext.macro.params.get('height'))
5 +#set($flight = $xcontext.macro.params.get('flight'))
6 +#if ($flight == 'nic')
7 + $xcontext.macro.params.set('flight') = 'neco';
8 + $xcontext.macro.params.flight = 'neco';
9 +#end
10 +
11 +{{html}}
12 +vysledek je $xcontext.macro.params.flight
13 +{{/html}}
14 +{{/velocity}}
XWiki.WikiMacroParameterClass[3]
Parameter default value
... ... @@ -1,0 +1,1 @@
1 +nic
Parameter description
... ... @@ -1,0 +1,1 @@
1 +ID of the flight
Parameter mandatory
... ... @@ -1,0 +1,1 @@
1 +Ne
Parameter name
... ... @@ -1,0 +1,1 @@
1 +flight