Difference between revisions of "Test resultsheader"

From FollowTheScore
Jump to: navigation, search
Line 25: Line 25:
 
On the other hand you can write something like
 
On the other hand you can write something like
  
 +
<pre><nowiki>
 
  * [[:Category:DPL|DPL]] {{#dpl:category=DPL|resultsheader=(%PAGES%)|format=,}} ...
 
  * [[:Category:DPL|DPL]] {{#dpl:category=DPL|resultsheader=(%PAGES%)|format=,}} ...
 
  ** [[:Category:DPL bugs|DPL bugs]] {{#dpl:category=DPL bugs|resultsheader=(%PAGES%)|format=,}} ...
 
  ** [[:Category:DPL bugs|DPL bugs]] {{#dpl:category=DPL bugs|resultsheader=(%PAGES%)|format=,}} ...
 
  ** [[:Category:DPL Manual|DPL Manual]] {{#dpl:category=DPL Manual|resultsheader=(%PAGES%)|format=,}} ...
 
  ** [[:Category:DPL Manual|DPL Manual]] {{#dpl:category=DPL Manual|resultsheader=(%PAGES%)|format=,}} ...
 
+
</nowiki></pre>
 
* [[:Category:DPL|DPL]] {{#dpl:category=DPL|resultsheader=(%PAGES%)|format=,}} ...
 
* [[:Category:DPL|DPL]] {{#dpl:category=DPL|resultsheader=(%PAGES%)|format=,}} ...
 
** [[:Category:DPL bugs|DPL bugs]] {{#dpl:category=DPL bugs|resultsheader=(%PAGES%)|format=,}} ...
 
** [[:Category:DPL bugs|DPL bugs]] {{#dpl:category=DPL bugs|resultsheader=(%PAGES%)|format=,}} ...

Revision as of 07:32, 28 July 2007

We use a resultsheader and footer

Note that theses statements do not automatically add newlines. Watch the problem with the DPL query below:

 resultsheader = ===How many articles starting with 'Af' are there in this wiki?===
 resultsfooter= ===There are %PAGES% articles starting with 'Af' in this wiki.===
Some text before the query:

How many articles starting with 'Af' are there in this wiki?======There are 2 articles starting with 'Af' in this wiki.

and some text after the query.

if we add \n to the resultsheader and footer everything appears as wanted:

 resultsheader = \n===How many articles starting with 'Af' are there in this wiki?===\n
 resultsfooter= \n===There are %PAGES% articles starting with 'Af' in this wiki.===\n

Some text before the query:

How many articles starting with 'Af' are there in this wiki?

There are 2 articles starting with 'Af' in this wiki.

and some text after the query.

On the other hand you can write something like

 * [[:Category:DPL|DPL]] {{#dpl:category=DPL|resultsheader=(%PAGES%)|format=,}} ...
 ** [[:Category:DPL bugs|DPL bugs]] {{#dpl:category=DPL bugs|resultsheader=(%PAGES%)|format=,}} ...
 ** [[:Category:DPL Manual|DPL Manual]] {{#dpl:category=DPL Manual|resultsheader=(%PAGES%)|format=,}} ...