Jump to content

Examples/Parameter: randomcount (example 1)

From DynamicPageList3 Manual
Please do not edit this page unless you're wanting to edit the manual itself, it is an example included in the manual.

Example

[edit source]

This selects pages from category Category:Fruit examples and displays a randomcount of 1 pages from a pool (or subset) of several, limited to a count of 7. Setting allowcachedresults to false disables the cache so each time the page is previewed or refreshed, the result randomly changes.

Code
{{#dpl:
|category    = Fruit examples
|randomcount = 1
|count       = 7
|allowcachedresults = false
}}
Result
Cookies help us deliver our services. By using our services, you agree to our use of cookies.