mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-06 18:09:13 +00:00
Add docs
This commit is contained in:
@@ -103,7 +103,11 @@ This is an example tiddler. See [[Table-of-Contents Macros (Examples)]].
|
||||
</dl>
|
||||
<blockquote class="doc-example-result">
|
||||
<$reveal default="$egvar$" type="match" text="NO-SUCH-VAR">
|
||||
$eg$
|
||||
|
||||
$$$text/vnd.tiddlywiki
|
||||
$eg$
|
||||
$$$
|
||||
|
||||
</$reveal>
|
||||
<$reveal default="$egvar$" type="nomatch" text="NO-SUCH-VAR">
|
||||
<<$egvar$>>
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
created: 20230304123606350
|
||||
modified: 20230304124149055
|
||||
tags: [[currentTiddler Variable]] [[Variable Examples]]
|
||||
title: thisTiddler Variable (Examples)
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
|
||||
|
||||
<$macrocall $name=".example" n="1" eg="""<$text text=<<thisTiddler>>/>"""/>
|
||||
|
||||
<$macrocall $name=".example" n="2" eg="""\define example() <$text text=<<thisTiddler>>/>
|
||||
<<example>>
|
||||
"""/>
|
||||
@@ -0,0 +1,12 @@
|
||||
caption: currentTiddler
|
||||
created: 20230304122810114
|
||||
modified: 20230304123557862
|
||||
tags: Variables [[Core Variables]]
|
||||
title: thisTiddler Variable
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The <<.def thisTiddler>> [[variable|Variables]] is set by the <<.wlink TranscludeWidget>> widget to contain the title of the tiddler that was transcluded. This means that within a tiddler <<.def thisTiddler>> will contain the title of that tiddler. It is not affected by macros, which means that within a macro <<.def thisTiddler>> will contain the title of the tiddler from which the macro was invoked. Intermediate, nested macro calls are ignored.
|
||||
|
||||
Compare <<.vlink storyTiddler>> and <<.vlink currentTiddler>>.
|
||||
|
||||
<<.variable-examples "thisTiddler">>
|
||||
Reference in New Issue
Block a user