Attempt to Explain Live Templates

Wikidot basically supports 2 types of templates, standard and live.

Standard templates are created using the format:


Live templates are created using:


Standard templates can be assigned as a default for pages created in your_category_name. This allows you to create a commented "fill in the blank" template. Think of a standard template as something you might use in Microsoft Word for a memo or fax cover sheet. Word provides a variety of "fill in the blank" templates that show you where to place the various pieces of your content.

Live templates allow you to format the layout of the content in all pages that are part of your_category_name. Think of live templates as something similar to changing the look of an entire Word document by editing the properties of your header fonts, page margins, etc. and then applying them to the whole document. Wikidot's live templates work in this way by applying these types of layout changes to every page in a given category of pages. There's no need to edit each page in a category - just edit the live template and the changes are applied to all pages in one fell swoop!

I work for an restaurant company and we use something called a "pass-on-log" that our managers fill out each shift as a means of communicating important details from shift-to-shift. We are testing using a wiki-based form as a replacement for the hand-written pass-on-log form we use now.

An example follows:

My Standard Template

This is the default page content the users see in the editor when they create a new Pass-On-Log entry (i.e. page name = rspol:yyyymmdd-day). All new pass-on-log pages are automatically assigned to the rspol category by using code like this:

08/01/2008 [[[rspol:20080801-day|Day Shift]]] - [[[rspol:20080801-night|Night Shift]]]
08/02/2008 [[[rspol:20080802-day|Day Shift]]] - [[[rspol:20080802-night|Night Shift]]]

These links will force a "create page" prompt if it hasn't been created yet.
You can also use something like:
[[module NewPage category="rspol" size="20" button="Add a Pass-On-Log Entry" ]]

This allows the user to create their own page names, which for my purposes doesn't work well since we want our page names coded with the date and named in a specific format.
Then, our managers just replace the sample text with their permanent text.


My Live Template:

This template does the formatting of the layout of the pass-on-log content sections. It lays out a floating table for some of the content and has the fixed header text for each section.


In Action

(feel free to edit and play around)

Demo Page

Try It Yourself!

Screen shot of how the displayed page looks:

(click image for full resolution)


Discuss This Article

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License