NOTE: These instructions uses the modifier SUBST. SUBST functionality is replaced by SAVE or EDIT in Deki version 8.05 and higher.
A template is a page that can be inserted into another page. Templates provide a convenient mechanism for setting up boilerplate content on your wiki. To create a new template:
1. Select Tools->Templates.
2. Click the New Page button to open a new template in the editor.
3. Enter the template name and content. The following example creates a template titled "FAQ Entry":
UP to Deki 1.9.0 NOTE: The example template uses {{SUBST:user.name}} and {{SUBST:date.now}} to display the username and date at which the FAQ was created. The SUBST: prefix is important; without it {{user.name}} and {{date.now}} would not get replaced on save and would always show the current username and date.
Deki 8.05 and higher NOTE: The example template uses {{SAVE:user.name}} and {{SAVE:date.now}} to display the username and date at which the FAQ was created. The SAVE: prefix is important; without it {{user.name}} and {{date.now}} would not get replaced on save and would always show the current username and date.
4. To use the template, open the destination page in the editor and click the Templates button.
6. At this point, you will see the contents of the template appear in your page. Add your data into it and save the page.
| |