Difference between revisions of "Test resultsheader"
From FollowTheScore
Line 2: | Line 2: | ||
Note that theses statements do not automatically add 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: | ||
+ | resultsheader = ===How many articles starting with 'Af' are there in this wiki?=== | ||
Some text before the query: <dpl> | Some text before the query: <dpl> | ||
− | resultsheader = ===How many articles starting with ' | + | resultsheader = ===How many articles starting with 'Af' are there in this wiki?=== |
titlematch=Af% | titlematch=Af% | ||
− | resultsfooter= ===There are %PAGES% articles starting with ' | + | resultsfooter= ===There are %PAGES% articles starting with 'Af' in this wiki.=== |
</dpl> and some text after the query. | </dpl> and some text after the query. | ||
− | if we add \n the | + | ---- |
+ | 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 | ||
Some text before the query: <dpl> | Some text before the query: <dpl> | ||
− | resultsheader = \n===How many articles starting with ' | + | resultsheader = \n===How many articles starting with 'Af' are there in this wiki?===\n |
titlematch=Af% | titlematch=Af% | ||
− | resultsfooter= \n===There are %PAGES% articles starting with ' | + | resultsfooter= \n===There are %PAGES% articles starting with 'Af' in this wiki.===\n |
</dpl> and some text after the query. | </dpl> and some text after the query. | ||
+ | ---- | ||
+ | |||
+ | On the other hand you can write something like | ||
+ | |||
[[Category:Test]] | [[Category:Test]] |
Revision as of 07:25, 28 July 2007
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?===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
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