This is still an expiremental feature to see if it's usefull. The script files in the scripts directory needs to be programmed in python.
Lets say, for example, you want to check if the page is not outdated. You can create a script to check if the last time the page was modified is more than i.e. 30 days ago. It can than display a message or added text to the top of the page that the page has not been modified for 30 days.
Another nice thing you may script is the use of emoticons in your wiki pages. You
can replace signs like :-) or :-( or ;-) with icons such as [icons/smile.png],
so you don't have to type the full path anymore.
To let the script be executed when a page is displayed you will have to added the following text to your page.
%!wixi-script: example.py
This will load the script example.py in the scripts directory. More than one script is allowed. Two important variables are the text and page variables.
Variables