1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-04 23:39:57 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/variables/tv-get-export-image-link.tid

18 lines
933 B
Plaintext
Raw Normal View History

caption: tv-get-export-image-link
2015-02-28 14:38:00 +00:00
created: 20150228122257000
modified: 20240310133708578
2015-02-28 14:38:00 +00:00
tags: Variables [[Core Variables]] [[Configuration Variables]]
title: tv-get-export-image-link Variable
2015-02-28 14:38:00 +00:00
type: text/vnd.tiddlywiki
The <<.def tv-get-export-image-link>> [[variable|Variables]] controls the value of the `src` attribute on the HTML `img` element generated by the <<.wlink ImageWidget>> widget when the value of its `source` attribute is not the title of a tiddler.
The variable should be a [[function|Functions]] with the following parameter:
2015-02-28 14:38:00 +00:00
;src
: The value of the `source` attribute -- equivalent to the image name specified in <$link to="Images in WikiText">the shorthand syntax</$link> `[img[source]]`
The ability to override image URIs in this way can be useful when one is using the [[Node.js configuration|TiddlyWiki on Node.js]] to export a static version of a wiki.
<<.variable-examples "tv-get-export-image-link">>