Photos
Blog
Projects
vanrenterghem.biz
projects
/
git.ikiwiki.info.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add myself to Uploaders and release to Debian
[git.ikiwiki.info.git]
/
doc
/
templates.mdwn
diff --git
a/doc/templates.mdwn
b/doc/templates.mdwn
index d0f891c21320243125f2b5b7d26fc278c6292dde..80372fcb7742ff17d87ce969d40bb31e7c0f8d36 100644
(file)
--- a/
doc/templates.mdwn
+++ b/
doc/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
[[!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="""
"""]]
[[!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:"]]
"""]]
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
## template files
Template files are unlike template pages in that they have the extension