mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-05 01:26:18 +00:00
19 lines
893 B
Plaintext
19 lines
893 B
Plaintext
created: 20140107114355828
|
|
modified: 20150220160920000
|
|
tags: Concepts
|
|
title: TemplateTiddlers
|
|
type: text/vnd.tiddlywiki
|
|
|
|
A template tiddler is not actually a type of tiddler, it is a role in which a tiddler can be used.
|
|
|
|
Templates are a way to re-use chunks of WikiText.
|
|
|
|
Transcluding through a template extends the basic functionality of [[Transclusion]] by combining two tiddlers:
|
|
|
|
* A template tiddler that contains the WikiText to be displayed. It can contain transclusions that reference fields in the [[current tiddler|Current Tiddler]]
|
|
* A target tiddler that identifies which tiddler is to be treated as current when resolving references to fields
|
|
|
|
The best example of templating is the main story river in TiddlyWiki. Each tiddler in the story river is rendered through a ViewTemplate that specifies how each field is to be rendered.
|
|
|
|
See [[Transclusion with Templates]] for details.
|