Post script, it would be trivial to also exclude the tiddlers wrapped in braces (tiddlername) from the standard search after design. ie no need to use the $:/ prefix.
Tones On Wednesday, 2 June 2021 at 09:29:01 UTC+10 TW Tones wrote: > Mohammad > > Not withstanding others efforts and developer activities in tiddlywiki, I > have spent some time looking at making use of templates and transclusion in > new and interesting ways. In many cases I can replace the functionality of > many macros with templates. > > Here is a simple example. Display tag pills for the tags on the current > tiddler > {{||(tag-pills)}} > or another tiddler > {{Home||(tag-pills)}} > You can also use the long form $transclusion > > Where the tiddler ' (tag-pills) ' contains the following > <$list filter="[all[current]tags[]]">{{||$:/core/ui/TagTemplate}}</$list> > > Basically snipits of code/macros variables etc... are captured in a > tiddler and included in other tiddlers by a simple transclusion. In effect > making reusable code blocks. > > I use the (brackets) so they can be found in the standard search but they > are easy to tell apart from other tiddlers. > > Interestingly they offer a replacement for the aforementioned > concatenation macros (which cant not yet be optimised more). > > Later I expect to use Marios custom markup to simplify this further eg > ' tag-pills > would transclude (tag-pills) with he current tiddler {{||(tag-pills)}} > I would also list all the possible transclusion tiddlers in the side bar > so you can drag and drop into the text of any tiddler, to allow rapid > design. > > Regards > Tones > > > > On Wednesday, 2 June 2021 at 04:44:18 UTC+10 Mohammad wrote: > >> Thanks Mat! >> Sure I will have a look! >> >> >> >> Best wishes >> Mohammad >> >> >> On Tue, Jun 1, 2021 at 8:23 PM Mat <matia...@gmail.com> wrote: >> >>> Mohammad wrote: >>> >>>> Pros and cons >>>> >>>> - writing the long name template is tedious in daily work >>>> - using smaller name like tpcode makes it appear everywhere >>>> >>> >>> Coincidentally(?) there is a proposal on gh >>> <https://github.com/Jermolene/TiddlyWiki5/discussions/5738> targeting >>> *exactly >>> *this. Do chime in with ideas or give it a thumbs up. >>> >>> The emerging idea there is to "extend the transclusion syntax" to allow >>> for shortened template names in transclusions. >>> >>> <:-) >>> >>> >>> >>> -- >>> >> 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 tiddlywiki+...@googlegroups.com. >>> >> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/tiddlywiki/519bb0a7-2251-42a4-8f0e-0411a2a9d998n%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/tiddlywiki/519bb0a7-2251-42a4-8f0e-0411a2a9d998n%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/5bf8253e-b321-4c1a-8a5f-87ff4f55acd3n%40googlegroups.com.