Examples/Parameter: randomcount (example 1): Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
imported>FrozenPlum
m (Update to show a single result for clarification purposes of single vs "pool" of possible results.)
 
Line 6: Line 6:
==Example==
==Example==


This will list from [[:Category:Fruit examples]], three random articles ordered by size. Each time the page is previewed or refreshed, the results may randomly change.
This selects from [[:Category:Fruit examples]] and displaying at random, one article from a pool (or subset) of seven articles. Each time the page is previewed or refreshed, the results may randomly change.


<pre>
<pre>
{{#dpl:
{{#dpl:
|category=Fruit examples
|category=Fruit examples
|randomcount=3
|randomcount=1
|ordermethod=size
|count=7
|count=7
}}
}}
Line 21: Line 20:
{{#dpl:
{{#dpl:
|category=Fruit examples
|category=Fruit examples
|randomcount=3
|randomcount=1
|ordermethod=size
|count=7
|count=7
}}
}}
Line 30: Line 28:
[[Category:Uses category parameter]]
[[Category:Uses category parameter]]
[[Category:Uses randomcount parameter]]
[[Category:Uses randomcount parameter]]
[[Category:Uses ordermethod parameter]]
[[Category:Uses count parameter]]
[[Category:Uses count parameter]]
</noinclude>
</noinclude>

Latest revision as of 07:47, 21 April 2023

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 from Category:Fruit examples and displaying at random, one article from a pool (or subset) of seven articles. Each time the page is previewed or refreshed, the results may randomly change.

{{#dpl:
|category=Fruit examples
|randomcount=1
|count=7
}}

Result

{{#dpl: |category=Fruit examples |randomcount=1 |count=7 }}