1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-14 00:09:42 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/macros/examples/dumpvariables.tid
2024-04-29 14:54:24 +02:00

30 lines
1.1 KiB
Plaintext

created: 20150221151358000
modified: 20240427120040367
tags: [[dumpvariables Macro]] [[Macro Examples]]
title: dumpvariables Macro (Examples)
type: text/vnd.tiddlywiki
The following example will list all variables that contain the word "example" in uppercase ''and'' also lowercase, due to the default setting of the <<.olink search>> operator.
<$macrocall $name=".example" n="1"
eg="""<$let EXAMPLE="123" >
<<dumpvariables subfilter:"[search::some[EXAMPLE dumpvariables]]">>
</$let>"""/>
Listing only specific varibles can be achieved using the <<.olink search>> operator as a subfilter
<$macrocall $name=".example" n="2"
eg="""<$let EXAMPLE="123" >
<<dumpvariables subfilter:"[search::casesensitive,some[EXAMPLE dumpvariables]]">>
</$let>"""/>
<$macrocall $name=".example" n="3"
eg="""<<dumpvariables subfilter:"[prefix[.a]]">>"""/>
''The following list will be very long.'' It shows all variables known within this tiddler. Using the macro in a ''different context''. Eg: the sidebar, variables will show ''different values''.
<$macrocall $name=".example" n="4"
eg="""<<dumpvariables>>"""/>