1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-16 23:04:50 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/concepts/TextReference.tid

22 lines
1.0 KiB
Plaintext
Raw Normal View History

created: 20130827075900000
modified: 20150518180615650
2014-09-11 14:52:47 +00:00
tags: Concepts
2013-08-27 08:01:40 +00:00
title: TextReference
type: text/vnd.tiddlywiki
2012-06-19 07:56:45 +00:00
A TextReference identifies a chunk of text from a tiddler that can be retrieved or modified depending on the context.
2013-08-27 08:01:40 +00:00
Text references are made up of several parts, most of which can be optional:
2012-06-19 07:56:45 +00:00
* `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
2013-08-27 08:01:40 +00:00
Text references can be used in several places:
* As [[indirect parameters|Filter Parameter]] within [[Filters]] (eg, `<$list filter="[tag{MyTag!!name}]"/>`)
2013-08-27 08:01:40 +00:00
* As IndirectAttributes of an element or widget (eg, `<$widget attrib={{Title!!description}}/>`)
* As the operand of a shortcut transclusion (eg, `{{MyTiddler!!title}}`)
* As the `state` attribute of the RevealWidget and the LinkCatcherWidget