[pmwiki-users] {(...)} markup recipe available

Patrick R. Michaud pmichaud at pobox.com
Mon Apr 16 08:14:20 CDT 2007


On Thu, Apr 12, 2007 at 11:17:23PM +0200, Roman wrote:
> I like #1, #2 or #3, mostly #1.

Just to follow up on this -- the {(ftime ...)} markup
that made it into beta43 will accept format and when parameters
in any order.  It also allows explicitly labeling the parameters.

So, for {(ftime ...)}, the format parameter is whatever is given
by "fmt=", the first parameter containing a '%', or else the
site's default.

The when parameter is whatever is given by "when=", or whatever
parameter remains after determining the format parameter.

    {(ftime %F)}
    {(ftime %Y)}
    {(ftime fmt=%F)}
    {(ftime yesterday)}
    {(ftime when=yesterday)}
    {(ftime %F yesterday)}
    {(ftime yesterday %F)}
    {(ftime fmt=%F yesterday)}
    ...etc...

Pm




More information about the pmwiki-users mailing list