1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-12 19:20:27 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/wikitext/Transclusion in WikiText.tid

31 lines
1.1 KiB
Plaintext
Raw Normal View History

created: 20131205160146648
modified: 20140317214256948
2014-09-11 08:15:58 +00:00
tags: WikiText
title: Transclusion in WikiText
type: text/vnd.tiddlywiki
2014-09-11 08:15:58 +00:00
caption: Transclusion
You can incorporate the content of one tiddler within another using the transclusion notation:
* `{{MyTiddler}}` transcludes a single tiddler
2014-01-07 11:57:42 +00:00
* `{{MyTiddler||TemplateTitle}}` displays the tiddler through a specified [[TemplateTiddler|TemplateTiddlers]]
2014-10-10 20:06:48 +00:00
* `{{||TemplateTitle}}` displays the specified template tiddler without altering the CurrentTiddler
You can also use a TextReference instead of a tiddler title:
* `{{MyTiddler!!field}}` transcludes a specified field of a tiddler
* `{{!!field}}` transcludes a specified field of the current tiddler
* `{{MyTiddler##index}}` transcludes a specified indexed property of a [[DataTiddler|DataTiddlers]]
* `{{##index}}` transcludes a specified indexed property of the current [[DataTiddler|DataTiddlers]]
2014-09-10 22:42:13 +00:00
A similar syntax can be used to transclude a list of tiddlers matching a specified [[filter|Filters]]:
```
{{{ [tag[mechanism]] }}}
{{{ [tag[mechanism]] ||TemplateTitle}}}
```
2014-10-20 15:12:24 +00:00
See also:
* [[Confusion between Transclusion and Substitution]]