I can't help wondering if ?action=refcount couldn't somehow be merged
with a pagelist variant. I would really like to be able to
suggest that my users use ?action=refcount to keep their wikis clean,
but it pulls up so many irrelevancies that I'm afraid it will confuse
more than help them. <br>
<br>
>From this unschooled distance, it seems to share so many
characteristics with pagelist that combining them seems doable.
Short of that, some way to exclude user-specified or admin-specified
groups and pages from the refcount output would surely be helpful.<br><br><div><span class="gmail_quote">On 12/16/05, <b class="gmail_sendername">Patrick R. Michaud</b> <<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Some random musings and questions to see if anyone has comments,<br>ideas, or suggestions...
<br><br><br>1. Page variables<br>The new {$...} and {pagename$...} syntax works great, and I think<br>it even makes the code more efficient. It's likely a keeper.<br><br><br>2. Wildcards<br>Conditional markup needs a bit of work. I'd like to work wildcards
<br>('*' and '?') into conditionals and pagelists somehow, but I can't<br>seem to come up with the proper names for the options. Currently<br>we have available<br><br> (:if group Profiles:) # page is in Profiles group
<br> (:if
name HomePage:) # page
is named "HomePage" (in any group)<br> (:if
match <pattern>:) # page's
name matches pattern (a regexp)<br> (:pagelist group=Profiles:) # pages in Profiles group<br> (:pagelist list=normal:) # pages matching "normal" selection<br><br>One option is to just allow wildcards directly on "group" and "name"
<br>values in conditionals, so that<br><br> (:if group PmWiki* :) # any group begining with "PmWiki"<br> (:pagelist group=PmWiki* :) # all pages in groups starting with "PmWiki"<br> (:if
name
A*:)
# any page starting with "A"<br><br>But how to match both group and name simultaneously? For consistency<br>with other markups, do we just use "fullname"? (Somehow I think it's<br>a big ugly.)<br><br>
(:if fullname PmWiki.A* :) # pages starting with "A" in the PmWiki group<br> (:pagelist fullname=2005.Blog* :) # "Blog*" pages in the 2005 group<br><br>Hmm, I guess "fullname" isn't so bad. Lists of wildcards will also be
<br>allowed<br><br> (:pagelist fullname=2005.Blog*,2006.Blog*:)<br><br>as well as negations<br><br> (:pagelist fullname=-*.HomePage,-*.RecentChanges:)<br><br><br>3. Pagelist refactoring<br>Pagelist has evolved *very* nicely from where I started over a year
<br>ago, but the code is becoming pretty crufty in the interest of<br>preserving backwards compatibility. It may be time to do a major<br>refactoring for pagelist (we are in beta, after all), and provide<br>the current pagelist code as an optional module or recipe for
<br>sites with custom pagelist settings and need time to migrate<br>those into the new framework. However, custom FPL formatting<br>functions would continue to work in the new version w/o modification<br>-- the refactoring would affect only those people who have
<br>customizations that rely heavily on the existence of current<br>variables and their values.<br><br>Comments, reactions?<br><br>Pm<br><br>_______________________________________________<br>pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br><a href="http://host.pmichaud.com/mailman/listinfo/pmwiki-users">http://host.pmichaud.com/mailman/listinfo/pmwiki-users</a><br></blockquote></div>
<br>