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

Content deleted Content added
imported>FrozenPlum
mNo edit summary
imported>FrozenPlum
No, the example provided doesn't work regardless of params, so seems the template is required
Line 10:
Adding <code>&DPL_offset=3</code> to the end of the ([[mw:Manual:Parameters_to_index.php|index.php]]-style) URL seen below, causes the contents of the DPL3 query displayed on-page to change; the next 3 results in the result set are displayed.
 
<code><nowiki>https://dpl3.miraheze.org/w/index.php?title=Criteria_for_page_selection/Parameter:_scroll_(example_1)&DPL_count=3&DPL_offset=3</nowiki></code>
 
<pre>
{{#dpl:execandexit=geturlargs}}
{{#dpl:
|category = Fruit examples
Line 18 ⟶ 19:
|offset = {%DPL_offset:0%}
|scroll = yes
|resultsheader = ²{Extension DPL scroll¦total={{formatnum:{{PAGESINCATEGORY:{{{category|Fruit examples}}} }}¦R}}¦offset={%DPL_offset:0%}¦count={%DPL_count:100%}¦page={{FULLPAGENAME}}}²\n
|resultsheader = Showing {%DPL_count:3%} pages starting from page ²{#expr:{%DPL_offset%} + 1}²:\n
}}
</pre>
Line 30 ⟶ 31:
|offset = {%DPL_offset:0%}
|scroll = yes
|resultsheader = ²{Extension DPL scroll¦total={{formatnum:{{PAGESINCATEGORY:{{{category|Fruit examples}}} }}¦R}}¦offset={%DPL_offset:0%}¦count={%DPL_count:100%}¦page={{FULLPAGENAME}}}²\n
|resultsheader = Showing {%DPL_count:3%} pages starting from page ²{#expr:{%DPL_offset%} + 1}²:\n
}}
<noinclude>