If you want to know what I use it for to suggest me a better solution, I will explain it but it's a long story… a complex work-around for wish 780. But this is the problem I have:
on a certain page I call an include-function with a variable named X
[[include listparts x=%%name%%]] and as you can see it is the name of the containing page
on the page listparts is the following code
Passed on name = {$x}
[[module listpages link_to="." type="*" category="3"]]
Passed on name in LP = {$x}
[[span class="part{$x}"]]%%form_raw{part1}%%[[/span]]
[[/module]]
This code renders two different value's for {$x}, the one outside the listpages = correct and the one inside the listpages= always 1
I can't imagen that the default value of an unknown variable is 1 so… where does the 1 come from?
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.