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: | Line 6: | ||
==Example== |
==Example== |
||
This |
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= |
|randomcount=1 |
||
|ordermethod=size |
|||
|count=7 |
|count=7 |
||
}} |
}} |
||
Line 21: | Line 20: | ||
{{#dpl: |
{{#dpl: |
||
|category=Fruit examples |
|category=Fruit examples |
||
|randomcount= |
|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
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 }}