> I'm a novice you know. How do I use it in a tiddler? I've saved the
> macro/script as a new tiddler with the name AgeMacro and tagged it
> systemConfig (don't know if it has to). Can you give an example?

To use the script code I provided, you can import this tiddler:
   http://www.TiddlyTools.com/#ShowAge

Then, embed it in your content like this:
   <<tiddler ShowAge with: startdate enddate>>

You can specify dates using any javascript-recognized format,
including:
   YYYY/MM/DD
   MM/DD/YYYY
   Month DD, YYYY
   etc.

Omitting the end date defaults to the current date.  You can also use
'today' as a keyword for either date.  Dates can even be in the
future, so that you can write:
   <<tiddler ShowAge with: today 2010/01/01>>
to show how long it will be until the next New Year's day.

Also, for your particular use-case, because you have used a *slice
table* to define the birth/death dates, you can even do something like
this:

<<tiddler ShowAge with:
   {{store.getTiddlerText(tiddler.title+'::Birth','')}}
   {{store.getTiddlerText(tiddler.title+'::Death','')}}>>

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to