Anonymous user
Examples/Parameter: scroll (example 2): Difference between revisions
Examples/Parameter: scroll (example 2) (view source)
Revision as of 06:38, 28 April 2022
, 2 years agono edit summary
imported>FrozenPlum m (FrozenPlum moved page Criteria for page selection/Parameter: scroll (example 1) to Criteria for page selection/Parameter: scroll (example 2)) |
imported>FrozenPlum mNo edit summary |
||
Line 6:
==Example==
This selects pages from [[:Category:Fruit examples]] and sets display count to the first 3 articles. The <code>scroll</code> parameter enables scrolling and URL variables. The <code>resultsheader</code> argument uses a helper template ([[Template:Extension DPL scroll]]) to create the scrolling navigation. A [[mw:Help:Magic_words#Statistics|magic word]] (<code><nowiki>{{PAGESINCATEGORY:Category}}</nowiki></code>) and some parameters are fed to that template, so it can determine the total number of pages and the amount to show and offset for the navigation display. Setting <code>allowcachedresults=''false''</code> prevents caching, so result changes are immediately seen without the need to manually purge the cache.
<pre>
|