Clarify TextReference documentation

Prompted by this comment:

https://github.com/Jermolene/TiddlyWiki5/pull/1721#issuecomment-10217516
5
print-window-tiddler
Jermolene 2015-05-18 19:07:14 +01:00
rodzic 230f40c3bd
commit 16ebdff1cc
1 zmienionych plików z 7 dodań i 6 usunięć

Wyświetl plik

@ -1,16 +1,17 @@
created: 201308270759
modified: 20150124211238000
created: 20130827075900000
modified: 20150518180615650
tags: Concepts
title: TextReference
type: text/vnd.tiddlywiki
A TextReference identifies a chunk of text from a tiddler that can be retrieved or modified depending on the context.
Text references are made up of several parts, most of which can be optional:
* `<tiddler title>` - the text [[field|TiddlerFields]] of the specified tiddler
* `<tiddler title>!!<metadata field>` - a tiddler metadata [[field|TiddlerFields]] (eg, `modified`, `modifier`, `type` etc)
* `!!<metadata field>` - a metadata [[field|TiddlerFields]] of the current tiddler
* `<tiddler title>##<property index>` - extracts a named property from DataTiddlers
* `tiddlerTitle` - the text [[field|TiddlerFields]] of the specified tiddler
* `tiddlerTitle!!field` - a [[tiddler field|TiddlerFields]] (eg, `modified`, `modifier`, `type` etc)
* `!!field` - a [[field|TiddlerFields]] of the current tiddler
* `tiddlerTitle##propertyIndex` - extracts a named property from DataTiddlers
Text references can be used in several places: