SourceForge.net Logo
May 29, 2006
© GPL
 
ProWikiCenter
Insert Command
 
Difference (previous author) (Change, Edit, normal page display)

Added: 2a3,9
;<n>{Insert:variablename;default}</n>:: inserts either the content of the variable or the default value.
;<n>{Insert:page.pagename}</n>:: inserts the content of the WikiPage, properly rendered.
;<n>{Insert:program.scriptname}</n>:: calls the script - which must be located in ExecutablesDir to be callable - and returns the resulting output of the script.
;<n>{Insert:wiki.text}</n>:: renders the text in the wiki way and inserts it.
;<n>{Insert:function.functionname}</n>:: executes the TemplateFunction functionname and inserts the result.
;<n>{Insert:vida.variablename}</n>:: searches a VirtualData variable of the current page and inserts its content.


InsertCommands have the form "{Insert:something}" and are placed in the TemplateText. They are worked on by the TemplateProcess to insert dynamic parts of the wiki page.

{Insert:variablename;default}:
inserts either the content of the variable or the default value.
{Insert:page.pagename}:
inserts the content of the WikiPage, properly rendered.
{Insert:program.scriptname}:
calls the script - which must be located in ExecutablesDir to be callable - and returns the resulting output of the script.
{Insert:wiki.text}:
renders the text in the wiki way and inserts it.
{Insert:function.functionname}:
executes the TemplateFunction functionname and inserts the result.
{Insert:vida.variablename}:
searches a VirtualData variable of the current page and inserts its content.

See also:
FolderTemplate