<br><br><div><span class="gmail_quote">On 2/14/06, <b class="gmail_sendername">Patrick R. Michaud</b> &lt;<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, Feb 14, 2006 at 03:16:16PM -0500, Kurt Devlin wrote:<br>&gt; On 2/14/06, Neil Herber &lt;<a href="mailto:nospam@eton.ca">nospam@eton.ca</a>&gt; wrote:<br>&gt;<br>&gt; &gt; Have a look at:<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.pmwiki.org/wiki/PmWiki/RefCount">
http://www.pmwiki.org/wiki/PmWiki/RefCount</a><br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;Thanks Neil. That's a good start. I was hoping to not fill out a form<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;before I got the information for something more closely following the<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;Wikipedia page. From a quick look at 
refcount.php, it wasn't obvious that<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;there was an easy way to write a cookbook recipe to pass in the group<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;('all' or a single name) and the type ('all', 'missing', etc. ) without an<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;extensive refactoring of PrintRefCount(). I think if generating the form
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;was decoupled from the actual generation of the page it would be easier to<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;tackle. For the time being, filling in the form manually will have to do.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;:-)<br><br>The current plan is for this to be handled using (:pagelist:),
<br>although I haven't decided on the appropriate argument name.<br>At the moment I'm thinking it'll be &quot;type&quot;, thus:</blockquote><div><br>'type' is a good attribute name, but it could also be used to reference the type of pagelist generated (short,long,etc.), but I guess that is what the 'fmt' attribute is. 'state' is another possible attribute name for this.
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&nbsp;&nbsp;&nbsp;&nbsp;(:pagelist type=missing|orphan|all|existing:)<br><br>PmWiki's default is &quot;type=existing&quot;.&nbsp;&nbsp;&quot;Missing&quot; will list
<br>the &quot;wanted pages&quot; -- i.e., pages for which there are links to<br>the page but the page doesn't exist yet.&nbsp;&nbsp;&quot;Orphan&quot; will list<br>pages that exist but don't have any links to them except for<br>links from the RecentChanges pages.&nbsp;&nbsp;&quot;All&quot; will include both
<br>missing and existing pages in the output.<br><br>Of course, this can be combined with other options, thus<br><br>&nbsp;&nbsp;&nbsp;&nbsp;(:pagelist type=missing group=PmWiki:)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- show missing pages in the PmWiki group<br><br>&nbsp;&nbsp;&nbsp;&nbsp;(:pagelist type=orphan group=-Main:)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- show orphan pages except for the Main group<br><br>One way in which this is less capable than the current refcount.php<br>script is that it's not possible to get a list of &quot;pages in group<br>A with links from groups A and B&quot;, but I don't know that this
<br>sort of query gets used very often anyway.</blockquote><div><br>It wasn't very clear what the second group list in the refcount form was for. It makes more sense now. This would be useful to say &quot;Show me the existing pages in group X that are referenced from group Y&quot;. I'm not sure it has as obvious applications for orphaned or missing pages.
<br><br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">That's the current plan.&nbsp;&nbsp;:-)<br><br></blockquote></div><br>I wound up forcing the form parameters onto the command line. My first attempt at this was using broken, but it looks like it's working now. This should get me by until pagelist is updated.
<br><br><a href="http://www.pmwiki.com/wiki/Main/HomePage?action=refcount&amp;whichrefs=missing&amp;tlist[]=PmWiki&amp;flist[]=PmWiki&amp;showrefs=checked&amp;submit=Search">http://www.pmwiki.com/wiki/Main/HomePage?action=refcount&amp;whichrefs=missing&amp;tlist[]=PmWiki&amp;flist[]=PmWiki&amp;showrefs=checked&amp;submit=Search
</a><br><br>Thanks,<br>Kurt<br><br>