or
on behalf of rejetto
is it POSSIBLE two create four macro
{{begin | {{onemacro}} }} before main
{{before | {{onemacro}} }} before %list%
{{after | {{onemacro}} }} after %list%
{{end | {{onemacro}} }} after main
BEGIN work as section [special:begin] : before main
BEFORE is evaluated at the begining of %list%
AFTER is evaluated at the end of %list%
END is evaluated when all macro and symbol above are evaluated
Application:
somewhere in template we want to set a variable
{{begin | {{set| items | 0 }} }}
we have section folder like
[folder]
{{inc|items|1}} ......
then to reproduce the last value at begining of main page, we must use some javascript
else we can use
{{after| {{^items}} }} and no more %list% {{^items}} in this order to have the correct result