This page is part of a static HTML representation of the TiddlyWiki at https://tiddlywiki.com/

thisTiddler Variable

 5th May 2023 at 8:01pm

New in v5.3.0 The thisTiddler variable is set by the $transclude widget to contain the title of the tiddler that was transcluded. This means that within transclusions thisTiddler will contain the title of the transcluded tiddler. It is not affected by macros, which means that within a macro thisTiddler will contain the title of the tiddler from which the macro was invoked. Intermediate, nested macro calls are ignored.

There are two key usages for thisTiddler:

  • Within a transcluded template, thisTiddler points to the template itself, making it possible for the template to access data stored in other fields of the template
  • Within a macro, thisTiddler points to the template that invoked the macro. If the macro was invoked by another macro, the template that invoked that macro is returned, and so on

Compare storyTiddler and currentTiddler.

Examples