Examples/Parameter: resultsheader (example 1)

From DynamicPageList3 Manual
Revision as of 01:16, 1 April 2023 by imported>FrozenPlum (FrozenPlum moved page Controlling output volume/Parameter: resultsheader (example 1) to Examples/Parameter: resultsheader (example 1): Simplifying how things are structured)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Please do not edit this page unless you're wanting to edit the manual itself, it is an example included in the manual.

Example

This selects articles in Category:Dessert examples and uses mode=userformat to get complete control over the output. listseparators= is not set, so nothing will be displayed except the results header. The resultsheader value sets the text for a message about the existing number of articles.

{{#dpl:
|category=Dessert examples
|mode=userformat
|resultsheader=<i>There are %PAGES% pages on desserts.</i>
}}

Result

{{#dpl: |category=Dessert examples |mode=userformat |resultsheader=There are %PAGES% pages on desserts. }}