I was wondering about the order in which those kinds of things are run. For example, are widgets evaluated before or after macro calls? I'm trying to figure this out so I know what I can use where and in what order TiddlyWiki will evaluate them. <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> This email has been sent from a virus-free computer protected by Avast. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Mon, Jan 11, 2016 at 2:42 AM, Tobias Beer <beertob...@gmail.com> wrote: > Hi David, > > >> Out of curiosity, in what order are macros, text references, widgets, etc >> used? >> > > How do you mean "used"? Used where? > > One thing's for sure, you *cannot* have a widget be an attribute to a > widget. > So, you can have macros be an attribute to a widget, > but you *cannot* have a macrocall widget be an attribute to another widget > and thus dynamically evaluate macro parameters via other variables or > text-references > unless your macro actually parses those themselves, e.g. > > \define macro:(macro,1,2,3,4,5,6,7,8,9,10) <<$macro$ """$1$""" """$2$""" > """$3$""" """$4$""" """$5$""" """$6$""" """$7$""" """$8$""" """$9$""" > """$10$""">> > \define text:(reference) {{$reference$}} > > <<macro: version>> > > <<macro: now YYYY0MM0YY>> > > <<text: {[tag[HelloThere]]}>> > > <<text: HelloThere>> > > Macros really are text-substitution patterns, > the wikification is handled elsewhere > > - by some widget(s) it creates > - or by the widget where a macro is used as an attribute > > Also, Javascript or Wikitext macros have different refresh behavior hinted > at: > > - here > <https://github.com/Jermolene/TiddlyWiki5/pull/1379#issuecomment-159906299> > - and considered here: setvars-Refresh > <http://tobibeer.github.io/tw5-plugins/#setvars-Refresh> > > Best wishes, > > Tobias. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "TiddlyWiki" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/tiddlywiki/NwaJdnB_yTU/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > tiddlywiki+unsubscr...@googlegroups.com. > To post to this group, send email to tiddlywiki@googlegroups.com. > 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/f5ac5407-c51b-4034-a002-b1aca693f70b%40googlegroups.com > <https://groups.google.com/d/msgid/tiddlywiki/f5ac5407-c51b-4034-a002-b1aca693f70b%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- David Allen -- 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 post to this group, send email to tiddlywiki@googlegroups.com. 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/CALaYjLig3zEFuzs_%2B9tz-GfbCbjFD5YhPRvC68CS1kaHNcrA%3DA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.