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 <file:///G:/TW/TW-Findmacro/Find%20macro.html#.mr%2Fmacro%2Fdbadge> 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 <file:///G:/TW/TW-Findmacro/Find%20macro.html#%24%3A%2Fplugins%2F.mr%2Fshiraz%2Fmacro%2Falerts> 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 <file:///G:/TW/TW-Findmacro/Find%20macro.html#%24%3A%2Fplugins%2F.mr%2Fshiraz%2Fmacro%2Fwikitext-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/23fd3b0e-12ac-403d-8f57-b2e793d04b25%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

