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 :


 :z~4, :z~5, and :z~6 (the z can be uppercase)


These tell Q++Studio 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 :z~ stands for zap if not).


In addition, if you are using QuarkXPress 2016 or above, then using :ZL causes all the objects that are located on the same layer and the same page as the textbox containing the Minicalendar Token to be deleted (whether or not they are grouped).


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





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 (or on separate layers, if using QuarkXPress 2015 and above). During diary generation, Q++Studio 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 tell Q++Studio that the specific minicalendar only contains 4, 5 or 6 weeks by adding the appropriate modifier, namely a 4-Week Override or a 5-Week Override or a 6-Week Override minicalendar modifier..


In all cases, 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 17-Jul-2018.
Topic URL: