{{myTiddler||$:/utility/template-code}}<<tp-code myTiddler>>For example I have a macro called field and its parameter is fieldname. It will display fieldnames content. However if the wiki is set to edit mode or the tiddler is set to edit mode you can edit Fieldname. That is macros allow you to drive additional functionality from the same invocation and override using parameters. You can do this with transclusion but macros can also transclued in adfition. Multiple macros can be in one tiddler or multiple tiddlers. Transclusions must be in one tiddler by itself unless you transclued from fields.
Regards
Tony
Bringing up this again: Transclusion: macro or template
- Can I say, I should use template when I am going to use many fields like {{!!title}} or I use currentTiddler in my template?
- I think I have also heard from Jeremy that template trasclusions are faster that macro call! Is this true?
From https://tiddlywiki.com/#Performance
--
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/36906d30-6df1-40b9-ab8e-60554da177cfn%40googlegroups.com.
Pros and cons- writing the long name template is tedious in daily work- using smaller name like tpcode makes it appear everywhere
--
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.