Examples/Parameter: scroll (example 1): Difference between revisions
Content added Content deleted
imported>FrozenPlum m (FrozenPlum moved page Criteria for page selection/Parameter: scroll (example 1) to Examples/Parameter: scroll (example 1): Simplifying how things are structured) |
imported>FrozenPlum m (Update categories and example text slightly) |
||
Line 6: | Line 6: | ||
==Example== |
==Example== |
||
This selects pages from [[:Category:Fruit examples]]. The <code>{{DPL|count}}</code> displays the first article using |
This selects pages from [[:Category:Fruit examples]]. The <code>{{DPL|count}}</code> displays the first article using {{DPL|URL parameters}}, and an empty <code>{{DPL|offset}}</code> also using that syntax; setting both using scroll/url syntax, allows their query values to be overwritten by URL. The <code>{{DPL|scroll}}</code> parameter fills the scroll/url parameter values. The <code>{{DPL|resultsheader}}</code> displays header text to show the count and current result start number. Setting <code>{{DPL|allowcachedresults}}=''false''</code> prevents caching, so result changes are immediately seen when the URL is changed, without the need to manually purge the MediaWiki cache. |
||
Line 37: | Line 37: | ||
<noinclude> |
<noinclude> |
||
[[Category:Select by category-related criteria]] |
[[Category:Select by category-related criteria]] |
||
[[Category:Uses execandexit parameter]] |
|||
[[Category:Uses category parameter]] |
[[Category:Uses category parameter]] |
||
[[Category:Uses count |
[[Category:Uses count parameter]] |
||
[[Category:Uses offset |
[[Category:Uses offset parameter]] |
||
[[Category:Uses scroll parameter]] |
[[Category:Uses scroll parameter]] |
||
[[Category:Uses resultsheader parameter]] |
[[Category:Uses resultsheader parameter]] |
||
[[Category:Uses URL parameter]] |
|||
[[Category:Uses resultsfooter parameter]] |
|||
[[Category:Uses allowcachedresults parameter]] |
[[Category:Uses allowcachedresults parameter]] |
||
</noinclude> |
</noinclude> |