aboutsummaryrefslogtreecommitdiff
path: root/doc/plugins
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-02-15 07:53:04 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-02-15 07:53:04 +0000
commit0cfc607314861a240638506741a2cc8fcf1d3b0b (patch)
tree1a9171fccf1eb9198806040e906a6ee1f84e1c14 /doc/plugins
parentf850acc6ad8a780a6b913df1099b8563647de03d (diff)
downloadikiwiki-0cfc607314861a240638506741a2cc8fcf1d3b0b.tar
ikiwiki-0cfc607314861a240638506741a2cc8fcf1d3b0b.tar.gz
* Add a prettydate plugin that formats dates in a more readable fashion.
(I had to get a pretty date somehow today..)
Diffstat (limited to 'doc/plugins')
-rw-r--r--doc/plugins/prettydate.mdwn18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/plugins/prettydate.mdwn b/doc/plugins/prettydate.mdwn
new file mode 100644
index 000000000..59fa96d6a
--- /dev/null
+++ b/doc/plugins/prettydate.mdwn
@@ -0,0 +1,18 @@
+[[template id=plugin name=prettydate author="[[Joey]]"]]
+[[tag type/format]]
+
+Enabling this plugin changes the dates displayed on pages in the wiki to
+a format that is nice and easy to read.
+
+The names given to each of the hours in the day can be customised by
+setting the `timetable` configuration variable in ikiwiki's setup file.
+The default value of this configuration value can be seen near the top of
+`prettydate.pm`. Note that hours can be left blank, to make it display the
+same as the hour before. Midnight, noon, and teatime are all hardcoded,
+since they do not occupy the whole hour.
+
+The format used for the date can be customised using the `prettydateformat`
+configuration variable in the setup file. `%X` will be expanded to the
+prettified time value. The default prettydateformat is `"%X %B %o, %Y"`.
+
+This plugin uses the [[cpan TimeDate]] perl module.