Try this on tiddlywiki.com and see the interesting results! --Mohammad
On Thursday, March 21, 2019 at 3:09:56 PM UTC+3:30, Mohammad wrote: > > Case II > How to list all macros in a wiki? > > his example shows how the shod-macro macro can be used to display macros > inside a filtered list of tiddlers. > > - *Example* > > List all macros in first three tiddlers tagged with $:/tags/Macro > > copy to clipboard > > <$list filter="[tag[$:/tags/Macro]limit[3]]"> > <li><$link to=<<currentTiddler>>> <$text text=<<currentTiddler>> > /></$link></li> > <blockquote> > <<show-macro>> > </blockquote> > </$list> > > That renders as: > > - .mr/macro/dbadge > > DBADGE > > \define dbadge(subject,status, type:"primary") > <div class="dbadge"><span class="dbadge-subject">$subject$</span><span > class="dbadge-status dbadge-$type$ ">$status$</span></div> > \end > > - $:/plugins/.mr/shiraz/macro/alerts > > ALERT > > \define alert(type:"primary" text:"", width:"100%", class:"") > <div class="alert alert-$type$ $class$" style="width:$width$;"> > $text$ > </div> > \end > > ALERT-LEFTBAR > > \define alert-leftbar(type:"primary" text:"", width:"100%") > <div class="alert bg-transparent leftbar border-$type$" > style="width:$width$;"> > $text$ > </div> > \end > > - $:/plugins/.mr/shiraz/macro/wikitext-macros > > WIKITEXT-EXAMPLE > > \define wikitext-example(src) > <div class="doc-example"> > > <$macrocall $name="copy-to-clipboard-above-right" src=<<__src__>>/> > > ``` > $src$ > ``` > > That renders as: > > $src$ > \end > > WIKITEXT-EXAMPLE-WITHOUT-HTML > > \define wikitext-example-without-html(src) > <div class="doc-example"> > > <$macrocall $name="copy-to-clipboard-above-right" src=<<__src__>>/> > > ``` > $src$ > ``` > > That renders as: > > $src$ > </div> > \end > > > *Demo* > : > file:///G:/TW/TW-Findmacro/Find%20macro.html#Example%2001%3A%20List%20Macros%20from%20Tiddlers > > Best > Mohammad > > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/5e4788ed-2f86-4f28-bd45-6fedcc081bd6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

