[pmwiki-users] random musings
H. Fox
haganfox at users.sourceforge.net
Sat Dec 17 01:42:28 CST 2005
On 12/16/05, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> 1. Page variables
> The new {$...} and {pagename$...} syntax works great, and I think
> it even makes the code more efficient. It's likely a keeper.
That's good news.
> 2. Wildcards
[...]
> But how to match both group and name simultaneously? For consistency
> with other markups, do we just use "fullname"? (Somehow I think it's
> a big ugly.)
>
> (:if fullname PmWiki.A* :) # pages starting with "A" in the PmWiki group
> (:pagelist fullname=2005.Blog* :) # "Blog*" pages in the 2005 group
>
> Hmm, I guess "fullname" isn't so bad. Lists of wildcards will also be
> allowed
>
> (:pagelist fullname=2005.Blog*,2006.Blog*:)
>
> as well as negations
>
> (:pagelist fullname=-*.HomePage,-*.RecentChanges:)
I may be missing something, but why not just stick with name, even for
full names?
(:pagelist name=2005.Blog*,2006.Blog*:)
(:pagelist name=-*.HomePage,-*.RecentChanges:)
(:if name 200?.HomePage:) # page is named "HomePage" in any group
# named after a year in this century (*)
(:if name SomeGroup.A*:) # any page starting with "A" in the
# SomeGroup group
Hagan
(*) Actually, 200? would not match last year in this century (2100)
and would match the final year of the last century (2000). :-)
More information about the pmwiki-users
mailing list