From f5b4cdbda5201aa7a218ee957b5ff538140ef9d4 Mon Sep 17 00:00:00 2001 From: Alexander Meindl Date: Sat, 8 Dec 2018 19:11:16 +0100 Subject: [PATCH] macro description update --- lib/additionals/wiki_macros/date_macro.rb | 45 +++++++++++------------ 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/lib/additionals/wiki_macros/date_macro.rb b/lib/additionals/wiki_macros/date_macro.rb index 3e31bf30..45b3a1fd 100644 --- a/lib/additionals/wiki_macros/date_macro.rb +++ b/lib/additionals/wiki_macros/date_macro.rb @@ -3,33 +3,32 @@ module Additionals module WikiMacros Redmine::WikiFormatting::Macros.register do desc <<-DESCRIPTION - Show date. + Show date. - Syntax: + Syntax: - {{date([TYPE])}} - TYPE - - current_date current date (default) - - current_date_with_time current date with time - - current_year current year - - current_month current month - - current_day current day - - current_hour current hour - - current_minute current minute - - current_weekday current weekday - - current_weeknumber current week number (1 - 52) The week starts with Monday + {{date([TYPE])}} + TYPE + - current_date current date (default) + - current_date_with_time current date with time + - current_year current year + - current_month current month + - current_day current day + - current_hour current hour + - current_minute current minute + - current_weekday current weekday + - current_weeknumber current week number (1 - 52) The week starts with Monday - Examples: - - {{date}} - ...show current date - {{date(current_year)}} - ...show current year - {{date(current_month)}} - ...show current month - {{date(current_weeknumber)}} - ...show current week number + Examples: + {{date}} + ...show current date + {{date(current_year)}} + ...show current year + {{date(current_month)}} + ...show current month + {{date(current_weeknumber)}} + ...show current week number DESCRIPTION macro :date do |_obj, args|