Filter and Regexp Patterns to Find Transclusion and Back Transclusion

The literal transclusion is one of the below forms:

  • simple (or text transclusion): {{thisTiddler}}
  • field/index transclusion: {{thatTiddler!!someField}}
  • transclusion through template: {{otherTiddler||someTemplate}}

Q1. The question is how to find and list tiddlers transcluded myTiddler in one of the above forms?
e.g this{} (this is the @linonetwo notation in his memo Tiddlywiki)

Q2 Given the text of a tiddler say kidsTiddler, what is the filter/regexp pattern to find which tiddlers have been transcluded in the kidsTiddler?
e.g {}this

See Search by transclusions - #5 by telumire

There are some complexities in transclusion for example all of the below forms work for transclusion by template:

{{thisTiddler||myTemplate}}

{{thisTiddler||myTemplate    }}
{{      thisTiddler||myTemplate}}
{{    thisTiddler||myTemplate   }}
{{   thisTiddler  ||   myTemplate   }}

{{thisTiddler
||
myTemplate}}

So you need consider all of these situations

1 Like

Another solution:

See Q2 in How to Display List of Transcluded Tiddlers in the Current Tiddler - Tips & Tricks - Talk TW (tiddlywiki.org)

Q1 is already answered, see ztk, tiddlystudy, tiddlyresearch, Mehregan, …

2 Likes