Difference between revisions of "Test resultsheader"

From FollowTheScore
Jump to: navigation, search
Line 1: Line 1:
 
== We use a resultsheader and footer ==
 
== We use a resultsheader and footer ==
  
Note that theses statements do not automaticall emit newlines. Watch the problem with the DPL query below:
+
Note that theses statements do not automatically add newlines. Watch the problem with the DPL query below:
  
<dpl>
+
Some text before the query: <dpl>
 
   resultsheader = ===How many articles starting with 'A' are there in this wiki? ===
 
   resultsheader = ===How many articles starting with 'A' are there in this wiki? ===
   titlematch=A%
+
   titlematch=Af%
 
   resultsfooter= \n===There are %PAGES% articles starting with 'A' in this wiki. ===
 
   resultsfooter= \n===There are %PAGES% articles starting with 'A' in this wiki. ===
</dpl>
+
</dpl> and some text after the query.
 +
 
 +
if we add \n the header appears as wanted:
 +
 
 +
Some text before the query: <dpl>
 +
  resultsheader = \n===How many articles starting with 'A' are there in this wiki? ===\n
 +
  titlematch=Af%
 +
  resultsfooter= \n===There are %PAGES% articles starting with 'A' in this wiki. ===\n
 +
</dpl> and some text after the query.
  
  
 
[[Category:Test]]
 
[[Category:Test]]

Revision as of 08:21, 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:

Some text before the query: ===How many articles starting with 'A' are there in this wiki? ===

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

and some text after the query.

if we add \n the header appears as wanted:

Some text before the query:

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

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

and some text after the query.