mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-30 05:19:57 +00:00
Some more tv-macros changed to new syntax. Plus adjusted doc tiddlers (#8056)
This commit is contained in:
parent
0b7914785c
commit
b28f420430
@ -1,6 +1,7 @@
|
||||
code-body: yes
|
||||
created: 20150221145803000
|
||||
modified: 20240310124126491
|
||||
title: $:/editions/tw5.com/macro-examples/tags-of-current-tiddler
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define tags-of-current-tiddler() {{!!tags}}
|
||||
\procedure tags-of-current-tiddler() {{!!tags}}
|
||||
|
@ -1,6 +1,7 @@
|
||||
code-body: yes
|
||||
created: 20150228123855000
|
||||
modified: 20150228123921000
|
||||
modified: 20240310133309881
|
||||
title: $:/editions/tw5.com/macro-examples/tv-get-export-image-link
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define tv-get-export-image-link(src) https://www.tiddlywiki.com/$src$
|
||||
\function tv-get-export-image-link(src) [[https://www.tiddlywiki.com/$(src)$]substitute[]]
|
||||
|
@ -1,8 +1,9 @@
|
||||
code-body: yes
|
||||
created: 20150228120252000
|
||||
modified: 20240310124217005
|
||||
title: $:/editions/tw5.com/macro-examples/tv-wikilink-tooltip
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define tv-wikilink-tooltip()
|
||||
\procedure tv-wikilink-tooltip()
|
||||
<$transclude field="tooltip">(<$transclude field="caption"/>)</$transclude>
|
||||
\end
|
||||
|
@ -1,11 +1,17 @@
|
||||
created: 20150228124038000
|
||||
modified: 20240310134432122
|
||||
tags: [[tv-get-export-image-link Variable]] [[Variable Examples]]
|
||||
title: tv-get-export-image-link Variable (Examples)
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
This example fetches [[the TiddlyWiki icon|https://www.tiddlywiki.com/favicon.ico]]:
|
||||
This example fetches [[the TiddlyWiki icon|https://www.tiddlywiki.com/favicon.ico]]
|
||||
|
||||
<$importvariables filter="$:/editions/tw5.com/macro-examples/tv-get-export-image-link">
|
||||
<$codeblock code={{$:/editions/tw5.com/macro-examples/tv-get-export-image-link}}/>
|
||||
<$macrocall $name=".example" n="1" eg="""[img[favicon.ico]]"""/>
|
||||
</$importvariables>
|
||||
|
||||
Also see:
|
||||
|
||||
* [[substitute Operator]]
|
||||
* [[Substituted Attribute Values]]
|
||||
|
@ -1,13 +1,13 @@
|
||||
created: 20150228122257000
|
||||
modified: 20150228130940000
|
||||
title: tv-get-export-image-link Variable
|
||||
tags: Variables [[Core Variables]] [[Configuration Variables]]
|
||||
type: text/vnd.tiddlywiki
|
||||
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 [[macro|Macros]] with the following parameter:
|
||||
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]]`
|
||||
|
Loading…
Reference in New Issue
Block a user