I agree that templating should be made more easy in TiddlyWiki. It looks like this is beginning as recently http://trac.tiddlywiki.org/ticket/1286 got moved into the core.
Since this works on a macro level any macro can be created/used for use in a template. I've always been scared of the way ForEachTiddlerPlugin is used as most of the time I see users copying and pasting javascript code from other people's TiddlyWiki's, a lot of the time not understanding what that javascript code does. Many of the ForEachTiddler macro calls are very very difficult to parse and understand but most of the time they appear to be doing something simple like getting all tiddlers tagged "hello" The most useful macros for this kind of templating is the view macro which allows printing of attributes in different formats such as link, date, text and wikified (these are the core view types) The area this does not cover is slices. However I'm pretty confident this could be fixed by a minor change to the core / a small plugin in the TiddlyWiki getValue function I plan to look into this very swiftly. This would enable <<view ##slicename text>> to work It is possible one might want to extend the view macro to provide default text as you suggest. All though I think one could live with out this for a little longer (the above is more important). The move to github, I am sure will shake up a lot of this and make it easy to solve these sorts of problems. Jon On Mar 3, 10:12 am, Måns <humam...@gmail.com> wrote: > Hi TiddlyWikiWizards > > I think TiddlyWiki should get seriously into the game of templating... > This thread:https://groups.google.com/group/tiddlywiki/browse_thread/ > thread/b29b12d52932b5e6? > tells me sth very important about TiddlyWiki's status - (I think) some > things need more attention from developpers... > > I've been "fiddling" with TiddlyWiki for a few years now - and I find > myself creating templates for almost everything... > Fact is that I don't know javascript - therefore everything I do - > need some plugin which delivers the needed scripts... > > I've learnt to use ForEachTiddlerPlugin and I can create lists or > tables for (almost) anything I want. Most of the time I create > templates from my fETs, which let me reuse them in many different > usercases... Fact is that I'm *can't* remember my fET-syntax anyway - > so I *have* to keep copies of everything anyway.... > > Today slices, sections and fields are the containers of data in a TW, > however it's not easy to collect and present it in ways that you'd > like. > I think this is a *very* fundamental problem facing any newbie. Why > should they bother to use slices, sections or fields, if they can't > retrieve/fetch the data quite easily?.... > > I think Jon'shttp://newtimeline.tiddlyspace.com/#TiddlyWikiListPlugin > tries to address this problem, however it can't deliver nuanced > information based on slices or sections because the core misses the > needed granularity via the <<view>> macro.... In other words: The view- > macro hasn't been updated to match the current uses of slices, > sections or fields... > > Eric has tried to address most of these problems with > hishttp://www.google.com/url?sa=D&q=http://www.TiddlyTools.com/%23Wikify... > andhttp://www.google.com/url?sa=D&q=http://www.TiddlyTools.com/%23Sectio... > > I'd like to ask Jon to elaborate on the templating options provided by > TiddlyWikiListPlugin - However I can't see any point in trying to > convince Jon to add features which are not even possible without > Eric's plugins.... If they are - I'm not sure that the most basic > lists or tables showing slices, sections or fields can be tacled with > Jon's and Eric's plugins alone - I don't think so... > > What about "default text" - when values are missing? - I don't find > any solution for this anywhere in the threads... I think this is > basic, and should be provided by the core... > > There's more - however I have to run now ... > > Cheers Måns Mårtensson -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to tiddlywiki@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.