1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-16 14:54:51 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/variables/WidgetVariable_ transclusion.tid

37 lines
1.2 KiB
Plaintext
Raw Normal View History

2014-10-02 15:02:48 +00:00
caption: transclusion
created: 20141002004621385
modified: 20150221225622000
tags: Variables [[Core Variables]]
title: transclusion Variable
2014-10-02 15:02:48 +00:00
type: text/vnd.tiddlywiki
The <<.def transclusion>> [[variable|Variables]] is set by the <<.wlink TranscludeWidget>> widget to a string that identifies the position of that widget within the [[widget tree|Widgets]].
2014-10-02 15:02:48 +00:00
~TiddlyWiki's core uses it to detect recursive [[transclusion|Transclusion]]. It is also used to implement the <<.mlink qualify>> macro.
2014-10-02 15:02:48 +00:00
The string has the following syntax:
2015-01-07 15:18:36 +00:00
<$railroad text="""
"{" a "|" b "|" c "|" d "|" e "|" "}"
"""/>
2015-01-07 15:18:36 +00:00
<ol style="list-style-type: lower-alpha;">
<li>the title of the [[current tiddler|Current Tiddler]]</li>
<li>the title of the tiddler being transcluded</li>
<li>the name of the field being transcluded</li>
<li>the name of the property name or index being transcluded</li>
<li>the name of the subtiddler being transcluded from a plugin</li>
</ol>
2015-01-07 15:18:36 +00:00
Many of the five items are often blank.
2015-01-07 15:18:36 +00:00
In the sidebar, the value of <<.var transclusion>> is:
2014-10-02 15:02:48 +00:00
> `{|$:/core/ui/PageTemplate/sidebar|||}`
2014-10-02 15:02:48 +00:00
When the tiddler <<.tid HelloThere>> is displayed in the story river, <<.var transclusion>> is set to:
2014-10-02 15:02:48 +00:00
> `{HelloThere|HelloThere|||}`
2014-10-02 15:02:48 +00:00
<<.variable-examples "transclusion">>