CreatePageFromTemplate Help
Processor arguments:
- default (optional) - name of template to default to (is pre-selected in list, if the specified default matches a page name
- instructions (optional) - a set of instructions (usually triple-quoted) for creating the page.
- prompt:name lines (optional) - these lines define variables to ask about during the creation of the page. These will be substituted into the page content, using python named variable interpolation. %(var)s
Example usage:
{{{#!CreatePageFromTemplate default=Rock_Page_Template What is the name of the rock:rock_name }} }
This will show a link on the page like so:
Create page from template
Clicking on the link will ask for a new page name, the template to use, and will prompt for values for any variables specified in the block, When that form is filled out and submitted, the page will be created (with variables filled in) and you will be asked to edit it. The new_page_name is automatically available as a variable, along with all standard tbwiki dynamic variables.
Back to page: System_Info