From 2369fd73aa73f139a6a6028eaa00a16229664fa7 Mon Sep 17 00:00:00 2001 From: EinfachToll Date: Sat, 8 Jul 2017 22:02:44 +0200 Subject: [PATCH] Add documentation for the %date placeholder Ref #360 --- doc/vimwiki.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/doc/vimwiki.txt b/doc/vimwiki.txt index 2585c5c..dd37ce1 100644 --- a/doc/vimwiki.txt +++ b/doc/vimwiki.txt @@ -1399,6 +1399,18 @@ into it. See |vimwiki-option-template_path| for details. +------------------------------------------------------------------------------ +%date *vimwiki-date* + +The date of the wiki page. The value can be used in the HTML template, see +|vimwiki-option-template_path| for details. + +%date 2017-07-08 +%date + +If you omit the date after the placeholder, the date of the HTML conversion is +used. + ============================================================================== 8. Lists *vimwiki-lists* @@ -1950,11 +1962,13 @@ Each template could look like: >
%content%
+

Page created on %date%

where %title% is replaced by a wiki page name or by a |vimwiki-title| + %date% is replaced with the current date or by |vimwiki-date| %root_path% is replaced by a count of ../ for pages buried in subdirs: if you have wikilink [[dir1/dir2/dir3/my page in a subdir]] then %root_path% is replaced by '../../../'.