Difference between revisions of "DPL talk:Manual"

From FollowTheScore
Jump to: navigation, search
Line 17: Line 17:
  
  
:o.k. : use The %PAGES% parameter in the [[resultsheader]].
+
: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.
 
:[[User:Gero|Gero]] 17:13, 29 November 2007 (CET)
 
:[[User:Gero|Gero]] 17:13, 29 November 2007 (CET)

Revision as of 18:14, 29 November 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)