As per the docs:
source
is field is used by the core for
The source URL associated with a tiddler
Is there a practical example of it being used?
I want to add a field that can be used for links to the source of the tiddler. Say I copy the content from Wikipedia and I want to mention the link the Wikipedia article.
Can I use source
field for it? Or should I add a new field like url
?
I can then customize ViewTemplate
to automatically show the source url in the body of the tiddler. But which field should I use?
Though I could not find official documentation, but it seems source
field has special usage in TW.
For example, this edition uses source
field for creating a hierarchy of tiddlers.
http://tw5.scholars.tiddlyspot.com/
It is also used for the source URL of a plugin.
(optional) Source URL of plugin
https://tiddlywiki.com/static/Plugin%2520Fields.html
My understanding is that it is better to avoid source
and use some other custom field for my use case.
Do let me know if my understanding is incorrect.
source = The source URL associated with a tiddler
Thank you all.
The reason is you could then write wiki text to turn the contents of any field name with -link into a link by the prefixes name
Great tip.
I decided to use source-url
, source-book
, source-person
, depending on from where I collected the note.