30th January 2026 at 9:03pm
Called in normal wikitext context: <$transclude $variable=myvar/> or <<myvar>>
Called via widget attribute: <div class=<<myvar>>/>
Called via filter operator parameter: [<myvar>]
Called via function call in a filter expression: [function[.myfun]]
Examples
Below is an example macro, procedure and function definition. All three forms of parameter substitution $a1$, <<__a1__>>, and <<a1>> are included in each definition. The output helps illustrate when each form of substitution will or will not have affect.
\define m1(a1) $a1$ - <<__a1__>> - <<a1>>
\procedure p1(a1) $a1$ - <<__a1__>> - <<a1>>
\function f1(a1) $a1$ "-" [<__a1__>] ="-" [<a1>] :and[join[ ]]| Variable transclusion | output |
|---|---|
<<m1 foo>> | foo - foo - |
<<p1 foo>> | $a1$ - - foo |
<<f1 foo>> | $a1$ - - foo |
| Widget attribute | output |
<$text text=<<m1 foo>>/> | foo - <<__a1__>> - <<a1>> |
<$text text=<<p1 foo>>/> | $a1$ - <<__a1__>> - <<a1>> |
<$text text=<<f1 foo>>/> | $a1$ - - foo |
| Filter operator parameter | output |
[<m1 foo>] | foo - <<__a1__>> - <<a1>> |
[<p1 foo>] | $a1$ - <<__a1__>> - <<a1>> |
[<f1 foo>] | $a1$ - - foo |
| Function call in filter expression | output |
[function[m1],[foo]] | --tp-animation-duration CSS Variable |
[function[p1],[foo]] | --tp-animation-duration CSS Variable |
[function[f1],[foo]] | $a1$ - - foo |