Examples/Parameter: scroll (example 2): Difference between revisions

m
Update category links and a few other things
imported>FrozenPlum
m (Minor update)
imported>FrozenPlum
m (Update category links and a few other things)
 
Line 6:
==Example==
 
The <code>{{DPL|count}}</code> and empty <code>{{DPL|offset}}</code> displays the first 3 articles from [[:Category:Fruit examples]] using [[General usage and invocation syntax#Scroll/URL syntax|Scroll/URL syntax]], and <code>scroll</code> fills the scroll/url parameter values. The <code>{{DPL|resultsheader}}</code>/footer usesuse a helper template ([[Template:DPL3 scroll]]) to create scroll navigation, composed of [[mw:Help:Magic_words#Statistics|magic word]] (<code><nowiki>{{PAGESINCATEGORY:Category}}</nowiki>''Category''}}</code>) and some parameters are fed to that template, so it can determine total pages, count, and amount of offset. <code>{{DPL|allowcachedresults}}</code> prevents caching, to prevent the need for manual purge.
 
<pre>
Line 35:
<noinclude>
[[Category:Select by category-related criteria‎]]
[[Category:Uses execandexit parameter]]
[[Category:Uses category parameter]]
[[Category:Uses count parameter]]
[[Category:Uses offset parameter]]
[[Category:Uses scroll parameter]]
[[Category:Uses resultsheader parameter]]
[[Category:Uses URL parameter]]
[[Category:Uses resultsfooter parameter]]
[[Category:Uses allowcachedresults parameter]]
</noinclude>
Anonymous user