Difference between revisions of "DPL talk:Manual"

From FollowTheScore
Jump to: navigation, search
(Add UserGroup criteria function?)
(Add UserGroup criteria function?)
Line 41: Line 41:
 
* can you gove an example?
 
* can you gove an example?
 
:[[User:Gero|Gero]] 22:26, 6 May 2008 (CEST)
 
:[[User:Gero|Gero]] 22:26, 6 May 2008 (CEST)
 +
 +
Hi,
 +
I'll be more clear.. Each user belongs to a user group like sysop, user, bureaucrat, or a custom named group like 'author'.
 +
Right now, you can list articles written by a user like or by namespace:
 +
{| width=200|
 +
<DPL>
 +
  createdby=Joe
 +
</DPL>
 +
|
 +
<DPL>
 +
  namespace=something
 +
</DPL>
 +
|}
 +
 +
 +
I would be useful to list articles by usergroup like
 +
<DPL>
 +
  byusergroup=sysop
 +
</DPL>
 +
 +
 +
thanks.

Revision as of 00:34, 7 May 2008

Counting Results

So which parameter(s) will give me a count of the number of pages that fit the criteria instead of the pages themselves? —Sledged (talk) 04:49, 29 November 2007 (CET)

I don´t understand your question. Give an example. Gero 08:47, 29 November 2007 (CET)

Let's take the search criteria in the example on the Main Page:
category=African Union member states
nottitlematch=Sudan
There are three pages that match this criteria, so I want the output:
3
instead of getting a list of those pages. I just want to count the number of pages that match the criteria. I thought I'd be able to specify that with the mode parameter, but that doesn't seem to be an option. —Sledged (talk) 15:40, 29 November 2007 (CET)


o.k. : use The %PAGES% parameter in the resultsheader. It will contain the correct value even if you use regular expression to filter template calls by the parameter values they use.
Gero 17:13, 29 November 2007 (CET)


Top Most Visited Pages ?

Is there a way with DPL to get the N "Top Visited Pages" during a specified period ? Ex: get the 10 most visited page since the begining of the week ?

Reply

I don´t think so. The page counter in the wiki database is not attached to the history. Using DPL you could make a snapshot of (say) the 200 pages with the highest usage rank plus those pages that were modified recently (although they may have low usage rates). If you do that regularly you could then use ploticus to generate a graph of incremental usages. Gero 19:09, 14 December 2007 (CET)

Add UserGroup criteria function?

Can you add a page list criteria by a User's user group? It would be a nice addition for groups to share files and communication. thanks.

Could you be more precise, please?

  • how should the command be named?
  • what exactly should it do?
  • what do you mean by 'user group'?
  • can you gove an example?
Gero 22:26, 6 May 2008 (CEST)

Hi, I'll be more clear.. Each user belongs to a user group like sysop, user, bureaucrat, or a custom named group like 'author'. Right now, you can list articles written by a user like or by namespace:

Extension:DynamicPageList (DPL), version 3.2.1: Warning: No results.

Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option 'something' for parameter 'namespace'.


Extension:DynamicPageList (DPL), version 3.2.1: Error: No selection criteria found! You must use at least one of the following parameters: category, namespace, titlematch, linksto, uses, createdby, modifiedby, lastmodifiedby, or their 'not' variants


Extension:DynamicPageList (DPL), version 3.2.1: Warning: No results.


I would be useful to list articles by usergroup like

Extension:DynamicPageList (DPL), version 3.2.1: Warning: Unknown parameter 'byusergroup' was ignored. Help: available parameters: addauthor, addcategories, addcontribution, addeditdate, addexternallink, addfirstcategorydate, addlasteditor, addpagecounter, addpagesize, addpagetoucheddate, adduser, allowcachedresults, allrevisionsbefore, allrevisionssince, articlecategory, cacheperiod, categoriesminmax, category, categorymatch, categoryregexp, columns, count, createdby, debug, distinct, dominantsection, eliminate, escapelinks, execandexit, firstrevisionsince, fixcategory, format, headingcount, headingmode, hiddencategories, hitemattr, hlistattr, ignorecase, imagecontainer, imageused, include, includematch, includematchparsed, includemaxlength, includenotmatch, includenotmatchparsed, includepage, includesubpages, includetrim, inlinetext, itemattr, lastmodifiedby, lastrevisionbefore, linksfrom, linksto, linkstoexternal, listattr, listseparators, maxrevisions, minoredits, minrevisions, mode, modifiedby, multisecseparators, namespace, noresultsfooter, noresultsheader, notcategory, notcategorymatch, notcategoryregexp, notcreatedby, notlastmodifiedby, notlinksfrom, notlinksto, notmodifiedby, notnamespace, nottitlematch, nottitleregexp, notuses, offset, oneresultfooter, oneresultheader, openreferences, order, ordercollation, ordermethod, qualitypages, randomcount, redirects, replaceintitle, reset, resultsfooter, resultsheader, rowcolformat, rows, rowsize, scroll, secseparators, showcurid, shownamespace, skipthispage, stablepages, suppresserrors, table, tablerow, tablesortcol, title, titlegt, titlelt, titlematch, titlemaxlength, titleregexp, usedby, userdateformat, uses.


Extension:DynamicPageList (DPL), version 3.2.1: Error: No selection criteria found! You must use at least one of the following parameters: category, namespace, titlematch, linksto, uses, createdby, modifiedby, lastmodifiedby, or their 'not' variants


Extension:DynamicPageList (DPL), version 3.2.1: Warning: No results.


thanks.