Please enable JavaScript to view this site.

 

Navigation: Tokens > MiniCalendar Tokens > Modifiers

Converting the @ $$ w# Minicalendar Markers using Macros

Scroll Prev Up Next More

Usually, the @ dates markers, $$ weekdays markers and w# week numbers markers of a minicalendar are converted and formatted using various point-and-click minicalendar options.

 

It is, however, possible to use macros to override the conversion and formatting of the dates, weekdays and week numbers of a minicalendar, using the following modifiers.

 

But, importantly, when you use any of these modifiers, all minicalendar formatting options are ignored for that particular marker (except for the outside days exception mentioned in the section on @ date markers, above), giving you total control over the way each minicalendar marker is displayed, but also requiring your macro to handle all details.

 

marker

modifier

 

@

:*XX

To use a macro to modify the processing of the @ markers of a minicalendar, simply add a minicalendar modifier of the form

 

:*XX

 

where XX represents any number from 1-30, in analogy with macro tokens.

 

Token used for conversion

 

The token supplied to the macro as the value of the system variable s_TokenRoot is [d] which means that if you want to work with a variant, such as a 2-digit date number, then you must do so in the code of your macro.

 

Outside Days

 

By default, the use of this @ marker modifier will hide all outside days. If you wish to show outside days, then you should include a :ws weekstart minicalendar modifier, :ws, and in that case the macro you use is responsible for the showing/hiding and formatting of any outside days; the outside days minicalendar options are also ignored.

$$

:$*XX

To use a macro to modify the processing of the $$ weekday markers of a minicalendar, simply add a minicalendar modifier of the form

 

:$*XX

 

where XX represents any number from 1-30, in analogy with macro tokens.

 

Token used for conversion

 

The token supplied to the macro as the value of the system variable s_TokenRoot is [ddd] which means that to tweak the result of that token you must either do it in the macro code or using the Length of [ddd] grid option (and not the weekdays minicalendar options).

w#

:w*XX

To use a macro to modify the processing of the w# week number markers of a minicalendar, simply add a minicalendar modifier of the form

 

:w*XX

 

where XX represents any number from 1-30, in analogy with macro tokens.

 

Token used for conversion

 

The token supplied to the macro as the value of the system variable s_TokenRoot is [w] which means that if you want to work with a variant, such as a 2-digit week number, then you must do so in the code of your macro.

 

Once again, note that when you use any of these modifiers, all minicalendar formatting options are ignored for that particular marker (except for the outside days exception mentioned in the section on @ date markers, above), giving you total control over the way each minicalendar marker is displayed, but also requiring your macro to handle all details, such as making holidays into a second color, etc...

 

See also: other minicalendar modifiers.

 


Topic 178560, last updated on 29-Mar-2024