2007-03-31 08:55:12 +02:00
|
|
|
ikiwiki uses the HTML::Template module as its template engine. This
|
|
|
|
supports things like conditionals and loops in templates and is pretty easy
|
|
|
|
to learn.
|
|
|
|
|
|
|
|
The aim is to keep almost all html out of ikiwiki and in the templates.
|
|
|
|
|
|
|
|
It ships with some basic templates which can be customised. These are
|
|
|
|
located in /usr/share/ikiwiki/templates by default.
|
|
|
|
|
|
|
|
* `page.tmpl` - Used for displaying all regular wiki pages.
|
|
|
|
* `misc.tmpl` - Generic template used for any page that doesn't
|
|
|
|
have a custom template.
|
|
|
|
* `editpage.tmpl` - Create/edit page.
|
2008-01-29 05:56:26 +01:00
|
|
|
* `change.tmpl` - Used to create a page describing a change made to the wiki.
|
2007-03-31 08:55:12 +02:00
|
|
|
* `passwordmail.tmpl` - Not a html template, this is used to
|
2008-05-30 23:35:34 +02:00
|
|
|
generate a mail with an url the user can use to reset their password.
|
2008-09-12 01:39:05 +02:00
|
|
|
* `rsspage.tmpl` - Used for generating rss feeds for [[blogs|blog]].
|
2007-03-31 08:55:12 +02:00
|
|
|
* `rssitem.tmpl` - Used for generating individual items on rss feeds.
|
2007-12-08 21:59:08 +01:00
|
|
|
* `atompage.tmpl` - Used for generating atom feeds for blogs.
|
2007-03-31 08:55:12 +02:00
|
|
|
* `atomitem.tmpl` - Used for generating individual items on atom feeds.
|
|
|
|
* `inlinepage.tmpl` - Used for adding a page inline in a blog
|
|
|
|
page.
|
|
|
|
* `archivepage.tmpl` - Used for listing a page in a blog archive page.
|
|
|
|
* `blogpost.tmpl` - Used for a form to add a post to a blog (and a rss/atom links)
|
|
|
|
* `feedlink.tmpl` - Used to add rss/atom links if blogpost.tmpl is not used.
|
|
|
|
* `aggregatepost.tmpl` - Used by the [[plugins/aggregate]] plugin to create
|
|
|
|
a page for a post.
|
|
|
|
* `searchform.tmpl` - Used by the [[plugins/search]] plugin to add a search
|
|
|
|
form to wiki pages.
|
2008-06-03 21:29:54 +02:00
|
|
|
* `searchquery.tmpl` - This is an omega template, used by the
|
|
|
|
[[plugins/search]] plugin.
|
2007-03-31 08:55:12 +02:00
|
|
|
|
2007-07-26 22:50:55 +02:00
|
|
|
The [[plugins/pagetemplate]] plugin can allow individual pages to use a
|
|
|
|
different template than `page.tmpl`.
|
|
|
|
|
2007-03-31 08:59:52 +02:00
|
|
|
The [[plugins/template]] plugin also uses templates, though those
|
2007-12-12 07:52:26 +01:00
|
|
|
[[templates]] are stored in the wiki and inserted into pages.
|
|
|
|
|
2007-12-31 02:50:29 +01:00
|
|
|
The [[plugins/edittemplate]] plugin is used to make new pages default to
|
2007-12-12 07:52:26 +01:00
|
|
|
containing text from a template, which can be filled as out the page is
|
|
|
|
edited.
|