1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-02 14:29:55 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/variables/tv-get-export-image-link.tid

18 lines
933 B
Plaintext

caption: tv-get-export-image-link
created: 20150228122257000
modified: 20240310133708578
tags: Variables [[Core Variables]] [[Configuration Variables]]
title: tv-get-export-image-link Variable
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:
;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">>