aboutsummaryrefslogtreecommitdiff
path: root/doc/plugins/relativedate.mdwn
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-10-17 20:47:32 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-10-17 20:47:32 -0400
commit7390a7a0721d9985c88efec1fd0e3a19d0368c82 (patch)
tree5573d9a86849bb3d180ad26132e8f1abf6fdd53c /doc/plugins/relativedate.mdwn
parent9a62836d288fbced42b04a172baf52063ef71c61 (diff)
downloadikiwiki-7390a7a0721d9985c88efec1fd0e3a19d0368c82.tar
ikiwiki-7390a7a0721d9985c88efec1fd0e3a19d0368c82.tar.gz
relativedate: New javascript-alicious plugin that makes all dates display relative, in a very nice way, if I say so myself.
Diffstat (limited to 'doc/plugins/relativedate.mdwn')
-rw-r--r--doc/plugins/relativedate.mdwn16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/plugins/relativedate.mdwn b/doc/plugins/relativedate.mdwn
new file mode 100644
index 000000000..ecbdf68bf
--- /dev/null
+++ b/doc/plugins/relativedate.mdwn
@@ -0,0 +1,16 @@
+[[!template id=plugin name=prettydate author="[[Joey]]"]]
+[[!tag type/date]]
+
+This plugin lets dates be displayed in relative form. Examples: "2 days ago",
+"1 month and 3 days ago", "30 minutes ago". Hovering over the date will
+cause a tooltip to pop up with the absolute date.
+
+This only works in browsers with javascript enabled; other browsers will
+show the absolute date instead. Also, this plugin can be used with other
+plugins like [[prettydate]] that change how the absolute date is displayed.
+
+If this plugin is enabled, you may also add relative dates to pages in the
+wiki, by using html elements in the "date" class. For example, this will
+display as a relative date:
+
+ <span class="date">Fri Oct 17 18:36:13 EDT 2008</span>