There are 3 types of tokens:
System Tokens |
System tokens are only based on the date of the token (as specified by their DayValue) and therefore only display numbers.
An example is the token [d] which converts to the number of the day (ie '12' for December 12). |
User-Defined Tokens |
User-defined tokens are defined by the user using the tokens manager, and usually only depend on the token's language (as specified by the LanguageTag).
An example is if you wished to create the token [:Christmas] for which you would set a translation in one or more languages. |
Mixed-Source Tokens |
Mixed-source tokens partially depend on the system for conversion, but also require the user to supply a translation, for each of the possible results calculated by the system.
The most commonly-used example of a mixed-source token is the weekday name token. The system calculates which weekday corresponds to the date of the token (as specified by their DayValue), but to complete the conversion of the token requires the translated name of each weekday in the token's language (as specified by the LanguageTag). |
There can be hybrid cases, since tokens can be recursive (ie the translation of a user-defined token involves another token).
Topic 000075, last updated on 20-Apr-2020