Examples/Parameter: randomcount (example 1): Difference between revisions
< Examples
Content added Content deleted
imported>FrozenPlum m (FrozenPlum moved page Criteria for page selection/Parameter: randomcount (example 1) to Examples/Parameter: randomcount (example 1): Simplifying how things are structured) |
imported>FrozenPlum m (Update to show a single result for clarification purposes of single vs "pool" of possible results.) |
||
Line 6:
==Example==
This
<pre>
{{#dpl:
|category=Fruit examples
|randomcount=
|count=7
}}
Line 21 ⟶ 20:
{{#dpl:
|category=Fruit examples
|randomcount=
|count=7
}}
Line 30 ⟶ 28:
[[Category:Uses category parameter]]
[[Category:Uses randomcount parameter]]
[[Category:Uses count parameter]]
</noinclude>
|
Latest revision as of 07:47, 21 April 2023
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 }}