1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-15 00:14:22 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/variables/WidgetVariable_ currentTiddler.tid

23 lines
953 B
Plaintext
Raw Normal View History

2014-10-02 15:02:48 +00:00
caption: currentTiddler
created: 20141001232824187
2014-10-02 23:15:06 +00:00
modified: 20141002161518301
2014-10-02 15:02:48 +00:00
tags: Variables
title: WidgetVariable: currentTiddler
type: text/vnd.tiddlywiki
2014-10-02 23:15:06 +00:00
! Mechanism
2014-10-12 08:42:16 +00:00
The ''currentTiddler'' variable contains the title of the current tiddler.
2014-10-02 15:02:48 +00:00
The ListWidget assigns the list result to the ''currentTiddler'' variable, unless the `variable` attribute is specified.
A couple of [[Widgets]] and [[Macros]] by default apply to the tiddler according to the ''currentTiddler'' variable.
The TranscludeWidget (or WikiText `{{||TemplateTitle}}`) transcludes a tiddler without changing the ''currentTiddler'' variable.
2014-10-02 23:15:06 +00:00
! Using currentTiddler Variable
2014-10-02 15:02:48 +00:00
These mechanisms together allow you to write references like `<$view field="title" format="link"/>` in TemplateTiddlers or inside the ListWidget hierarchy without explicitly specifying the tiddler that it applies to.
2014-10-12 08:42:16 +00:00
See also [[WidgetVariable: storyTiddler]] and [[WidgetVariable: currentTiddler]]