Using core widgets in a custom widget using the GenesisWidget

Hi Folks,

I am researching creating a custom $macro.call widget that will use the GenesisWidget
to call <$transclude $variable but also pass on any other parameters and parameter value pairs. The idea is to hide the non-intuitive <$transclude $variable and make use of the advanced features of the modern transclude in a similar way to the prior $macrocall widget (which still works in most cases, just not with additional “undefined” parameters).

I have done something similar before however there is no example on tiddlywiki.com of genesis or widgets or replacing core widgets and it demands a high cognitive load when un-practiced.

Any assistance would be appreciated and If clear I will look at submitting the result(s) to the examples.

Reasons and planned features of $macro.call widget

  • Potentially and optionally also redefine $macrocall to call the modern form
  • Allow parameters to passed given a macro/procedure/variable/function/procedure name from a variable, transclusion, field etc…
  • Allow the target of the call to be found in a variable when automating unlike the <<name>> syntax.
  • Ability to make use of the body of the transclude widget
  • more I am sure

there is example of use of genesis here: Expand All / Collapse All In my TOC Tiddler - #16 by buggyj

An example here Grok TiddlyWiki — Build a deep, lasting understanding of TiddlyWiki