How to view the content of core macros?

Hello,

Is it possible to view the content of Macros integrated in the core ?

In my case, I would like to view the content of the qualify macro :

https://tiddlywiki.com/#qualify%20Macro

It’s just for my personal knowledge !

Thank’s

1 Like

You can find all macros by searching shadow tiddlers from Advanced Search:

https://tiddlywiki.com/#%24%3A%2Fcore%2Fmodules%2Fmacros%2Fqualify.js:%24%3A%2Fcore%2Fmodules%2Fmacros%2Fqualify.js%20%24%3A%2FAdvancedSearch

Thank you very much !

Have a closer look at the transclusion variable which is used by the qualify-macro and qualify-widget.

So depending on where the <<qualify macro is “transcluded” there will be a different hash. This allows us to use it to create eg: toggle buttons, that switch text from “open” to “close” and vice versa.

But instead of using very long $:/state/* names, the transclude-variable is converted to a unique hash by the internal .getStateQualifier(name) function, which the macro uses.

There are some more threads about qualify and it’s “uniqueness” here at Talk. See: Use variable="transclusion" in a list widget to get unique popups and a demo page for using many <<tag macros in 1 tiddler.

hope that makes sense.
-mario

1 Like

A small tip for searching for macros or procedures is to use the format
macroname(
i.e to include the first parenthesis so to only locate the macro definition rather than all the uses of it.