2013-12-05 16:21:10 +00:00
|
|
|
created: 20131205160146648
|
2014-03-17 21:44:10 +00:00
|
|
|
modified: 20140317214256948
|
2013-12-05 16:21:10 +00:00
|
|
|
tags: wikitext
|
|
|
|
title: Transclusion in WikiText
|
|
|
|
type: text/vnd.tiddlywiki
|
|
|
|
|
|
|
|
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-03-17 21:44:10 +00:00
|
|
|
* `{{||TemplateTitle}}` displays the specified template tiddler without altering the [[current tiddler|WidgetVariable: 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]]
|
2013-12-05 16:21:10 +00:00
|
|
|
|
|
|
|
A similar syntax can be used to transclude a list of tiddlers matching a specified [[TiddlerFilter|TiddlerFilters]]:
|
|
|
|
|
|
|
|
```
|
|
|
|
{{{ [tag[mechanism]] }}}
|
|
|
|
{{{ [tag[mechanism]] ||TemplateTitle}}}
|
|
|
|
```
|