The Embedded Tokens DayValue Minicalendar Modifier is rarely used for minicalendars, but it is particularly useful for checkerboard monthly diaries in which you may have a box with many tokens for each day of the month, such as in the example below :
Rather than having to change all the DayValues of all the tokens in each box, one-by-one, you need only specify the DayValue to use for all tokens in the same textbox.
To use Embedded Tokens Modifiers, replace the DayValue of each of tokens in each textbox containing a day by the # sign, and add the :#XX modifier to the end of the minicalendar token, where XX represents the DayValue that should be substituted for the # character in any token in the same textbox. Using the above example, the area representing DayValue 17 would now be setout as follows :
Note that the 5 references to DayValue 17 have now been replaced by a single reference in the minicalendar token, thus making the grids much faster to setup the first time and much easier to modify later by search and replace if required. This is somewhat similar to GenTokens, but for checkerboard grids rather than vertical grids.
A few additional remarks :
•The embedded DayValue modifiers apply to all tokens that follow the minicalendar token in the same box.
•Only one DayValue can be used for each minicalendar token/textbox, however, if it is difficult to setup all the text for a day in one single textbox, then you can have more than one textbox per day, as long as each textbox contains a minicalendar token with the appropriate modifiers.
Finally, note that most of the time, as is the case above, you will also need to add the :ws weekstart modifier as well the present embedded dayvalue modifier, since most checkerboard grids start on the weekstart of the month, and not on the first of the month.
And if you wish to hide outside days, then you should also use the :HidTok Allow Embedded Tokens Hiding Minicalendar Modifier, to tell Q++Studio to treat any tokens inside the current minicalendar as it would a token outside the minicalendar. Otherwise, by default, tokens inside a minicalendar are evaluated ignoring any settings specified for the hiding of outside days.