Number of Weeks Modifiers

Navigation:  Tokens > MiniCalendar Tokens > MiniCalendar Modifiers >

Number of Weeks Modifiers

Previous pageReturn to chapter overviewNext page

There are 3 minicalendar tokens modifiers based on the number of partial weeks contained in the month displayed in a minicalendar :

 

 :zn4, :zn5, and :zn6 (the z can be uppercase)

 

These tell Q++ to delete the textbox (or group delete if Z is uppercase) that contains them if the month about to be displayed in the minicalendar does not exactly contain 4, 5, or 6 weeks respectively (the :zn stands for zap if not).

 

The "n" operator can be replaced by any of the following operators to perform a different comparison :

 

=

Equality

>

Greater than

<

Less than

~

Different than

 

These modifiers are used when you want the leading (space between each line of text) to vary depending on the number of weeks, so that the last lines/columns of a minicalendar are always aligned, whether there are 4, 5 or 6 partial weeks in the displayed month. To achieve this effect you would create 3 minicalendars, each having the leading appropriate to 4, 5 or 6 weeks, and attach the corresponding modifier to each minicalendar, as shown below :

 

 

All 3 minicalendars would then be placed on top of each other in the GridTemplate. During diary generation, Q++ will evaluate the number of partial weeks of the minicalendar's month and delete the textboxes whose modifiers do not correspond to that number of weeks.

 

Note that :

 

This modifier automatically takes into account the weekstart you have defined for the minicalendar.

This modifier also works for right-to-left minicalendars.

You can also add this modifier to Weekly Bands MiniCalendars.

 

This modifier also works for vertical minicalendars, but you must still place a 6th column (or only a 5th column in the case of 5 week minicals) as Q++ will use these positions to calculate the date sequence. Note that in the minical options you must specify a number of weeks that corresponds to the maximum number of weeks you will be displaying. Usually this means specifying a normal 6-weeks minicalendar, since you will be showing some 4-week months, some 5 week months and some 6 week months.

 

 

As seen above the last column can be made smaller, or even hidden by the use of a transparent color, as Q++ will replace it by an empty text anyways. But the last @ sign must be there, however it is displayed.

 

Finally, if you use this modifier, you should not also use either of the right-aligned or bottom-aligned options, as these are meant to exclusive. Getting minicalendars with different number of weeks to occupy the "same space" should be done either with the alignment options, or with leading and the number of weeks modifier as shown above. But both methods should not be used at the same time.

 

See also :

NumWeeksInMonth

Number of Days Modifiers


Topic 171860 updated on 25-May-2004.
Topic URL: http://www.qppstudio.net/webhelp/index.html?numberofweeksspecificminicalen.htm