mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-10 01:10:28 +00:00
29 lines
1.1 KiB
Plaintext
29 lines
1.1 KiB
Plaintext
caption: dumpvariables
|
|
created: 20140908104107181
|
|
modified: 20240221005326328
|
|
tags: Macros [[Core Macros]]
|
|
title: dumpvariables Macro
|
|
type: text/vnd.tiddlywiki
|
|
|
|
The <<.def dumpvariables>> [[macro|Macros]] returns a table showing the values of all [[variables|Variables]] and [[macros|Macros]] that exist at that position in the [[widget tree|Widgets]].
|
|
|
|
It is useful for debugging and exploring ~TiddlyWiki's internals.
|
|
|
|
Placeholders are replaced with values in the normal way, but using the default values for all macro parameters.
|
|
|
|
!! Parameters
|
|
|
|
; type
|
|
: If type is empty all variable types are shown: `fn, var, proc, macro, widget`. Using the type parameter will reduce the list.
|
|
|
|
; raw
|
|
: Is used to allow the <<.olink variables>> to return a raw list. By default the list is alphabetically sorted.
|
|
|
|
; subfilter
|
|
: This parameter limits the number of variables that are listed eg: `subfilter:"[search::some[sort .attr]]" `
|
|
|
|
; format
|
|
: Format the output string using the VariableFormat. Defaults to `$type$ $name$($params$) $firstLine$`.
|
|
|
|
!!! <<.macro-examples "dumpvariables">>
|