[sw] : Start of Week Token

Navigation:  Tokens > Week Tokens >

[sw] : Start of Week Token

Previous pageReturn to chapter overviewNext page

Use the token [sw] (and related tokens) if you wish any of the week tokens to appear only at the beginning of the week, and to be blank on the other days. Note that this is not a zap token; blank means no text.

 

On Monday August 1st, [sw] = 30, and in English [sWeek] = Week.

 

Tuesday August 2nd, [sw], [sWk], [sWeek] are all blank.

 

One way to use the [sw] token is in a daily diary where you only want the week number to appear at the beginning of a new week. For example the 2 tokens [sWeek] [sw] would be blank on any day except at the beginning of the week, where they would combine to give 'Week 34'.

 

You can specify that the [sw] token should appear on a different weekday than Monday by adding the :0X suffix to the [sw] token, where X can be any number from 1 (Monday) to 7 (Sunday).

 

Special cases

 

I some cases, you might want to show the week number on the first day of some months as well as the first day of the week. This is quite common in monthly grids such as the one below.

 

The above is done by adding a colon ":" and a character at the end of the token.

 

Character

Example

Description

m

[sw:m]

Show the week number on the first day of the week and also on the first day of every month.

3

[sWeek:3]

Show the translation of the word "week" on the first day of the week and also on the first day of every 3 months.

6

[sWk:6]

Show the abbreviated form of the translation of the word "week" on the first day of the week and also on the first day of every 6 months.

y

[sw:y]

Show the week number on the first day of the week and also on the first day of the year.

 

Moving the position of the week number if it conflict with a Moon phase

 

You can use the:L suffix to tell Q++ to display the result of a week token on the following day, if there is a Moon phase on the date when it would usually be displayed, either as week start, or in conjunction with the above suffixes. These are often used in planners such as the one below.

 

 

Finally, note that Q++ lets you decide, for each DiaryGridLine, what the first day of the week is, using the property option Week Starts on.


Topic 87052 updated on 25-Aug-17.
Topic URL: https://www.qppstudio.net/webhelp/index.html?_sw__conditionalweektokens.htm