1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-05 01:26:18 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/variables/tv-wikilink-template.tid

24 lines
1.1 KiB
Plaintext
Raw Normal View History

caption: tv-wikilink-template
2015-02-28 14:38:00 +00:00
created: 20150228105954000
modified: 20170828095603911
2015-02-28 14:38:00 +00:00
tags: Variables [[Core Variables]] [[Configuration Variables]]
title: tv-wikilink-template Variable
2015-02-28 14:38:00 +00:00
type: text/vnd.tiddlywiki
The <<.def tv-wikilink-template>> [[variable|Variables]] controls the value of the `href` attribute on the HTML `a` element generated by the <<.wlink LinkWidget>> widget. The <<.vlink tv-filter-export-link>>, if defined, it takes precedence over the <<.vlink tv-wikilink-template>> variable.
2015-02-28 14:38:00 +00:00
<<.this-is-static-link-variable>>
The variable is treated as if it was a [[macro|Macros]] with the following parameters:
;uri_encoded
: The title of the target tiddler of the link, but [[percent-encoded|Percent Encoding]]
;uri_doubleencoded
: The value of the <<.param uri_encoded>> parameter but percent-encoded again, i.e. with its `%` characters further converted to `%25`
> `\define tv-wikilink-template() ../tiddlers/$uri_encoded$.html`
The variable defaults to `#$uri_encoded$`.
See also the <<.vlink tv-get-export-link>> variable, which dominates over this one.