diff options
author | Jonas Smedegaard <dr@jones.dk> | 2015-01-22 14:57:51 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2015-01-22 14:57:51 +0100 |
commit | b09e27989b8786806ec12c9023ccdabc660f8901 (patch) | |
tree | 671f2cef061b5a75943c2efc4d7e06ba14acf5a0 /templates.mdwn | |
parent | 6aac938c82557d6f42841fa5e98fb80c37922bec (diff) |
Sync with ikiwiki 3.20141016.1.
Diffstat (limited to 'templates.mdwn')
-rw-r--r-- | templates.mdwn | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/templates.mdwn b/templates.mdwn index d0f891c..80372fc 100644 --- a/templates.mdwn +++ b/templates.mdwn @@ -14,8 +14,10 @@ easy to learn. All you really need to know to modify templates is this: [[!if test="enabled(template) or enabled(edittemplate)" then=""" ## template pages -Template pages are regular wiki pages that are used as templates for other -pages. +Template pages are regular wiki pages containing a +[[!iki ikiwiki/directive/templatebody desc="templatebody directive"]], +used as templates for other pages. The parts of the template +page outside the directive can be used to document it. """]] [[!if test="enabled(template)" then=""" @@ -38,6 +40,9 @@ feeds=no archive=yes sort=title template=titlepage rootpage=templates postformtext="Add a new template page named:"]] """]] +If the template does not contain a `templatebody` directive, the entire +source of the page is used for the template. This is deprecated. + ## template files Template files are unlike template pages in that they have the extension |