Please enable JavaScript to view this site.

 

Navigation: Tokens > Year Tokens

Year of Parent Minicalendar

Scroll Prev Up Next More

Use the :mc modifier to display the year of the the minicalendar token that encloses the [yyyy] token to which the suffix is added.

 

This can be use, along with a conditional token, to display the year in a minicalendar, but only when the year is different than the year of the minicalendar token (and presumably the year of the current spread),

 

[1mc+00][Mmmm][?yyyy:mc~_yyyy_|_yyyy_|]

 

or to display the year in a minicalendar, but only when the year is different than the year of the current script:

 

[1mc+00][Mmmm][?yyyy:mc~_year_|_yyyy_|]

 

Note that this suffix can only be used inside a minicalendar. If you try to use it in a token that is not inside a minicalendar, then you will get an run-time error message.

 

See also: year of now, year offset, minical year offset modifier.

 


Topic 180495, last updated on 17-Apr-2020