[pmwiki-users] {(...)} markup recipe available
Patrick R. Michaud
pmichaud at pobox.com
Fri Apr 13 11:28:29 CDT 2007
On Fri, Apr 13, 2007 at 10:59:51AM -0500, Tegan Dowling wrote:
> The pagelist is also working. This is great!
>
> Now, in a GroupHeader, I'd like to have
> ! (:if pagename-format is text:){$Titlespaced}(:else:){(ftime ''
> {$Name})}(:ifend:)
How about something like...?
(:if name 200[0-9]*){(ftime '' {$Name})}(:else:){$Titlespaced}(:if:)
Any page with a name starting with "2000" through "2009" will be
treated as something to be passed to {(ftime)}.
Or, if we want to get more fancy, we could build a 'hasdate'
conditional:
(:if hasdate {$Name}):) ...
Pm
More information about the pmwiki-users
mailing list