Difference between revisions of "DPL talk:Manual"

From FollowTheScore
Jump to: navigation, search
(Top Most Visited Pages ?)
Line 25: Line 25:
 
Is there a way with DPL to get the N "Top Visited Pages" during a specified period ?
 
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 ?
 
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. [[User:Gero|Gero]] 19:09, 14 December 2007 (CET)

Revision as of 19:09, 14 December 2007

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)