Examples/Parameter: offset (example 1): Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
m (make a bit clearer)
imported>FrozenPlum
m (Flesh out example more, add ordermethod/order to make it make better sense for the offset.)
 
(One intermediate revision by the same user not shown)
Line 6:
==Example==
 
This will listlists articles from [[:Category:Fruit examples]], offset by three (starting at the thirdfourth in the list, which is determined alphabetically) and limited to a count of three. This means this will displaydisplays articles #34, to#5, and #6 from [[:Category:Fruit examples]]. Next, <code>{{DPL|ordermethod}}</code> canis be setused to changeorder offset/displayby ordertitle, ascending/alphabetically.
 
<pre>
Line 13:
|offset = 3
|count = 3
|ordermethod = title
|order = ascending
}}
</pre>
Line 22 ⟶ 24:
|offset = 3
|count = 3
|ordermethod = title
|order = ascending
}}
 
Line 29 ⟶ 33:
[[Category:Uses offset parameter]]
[[Category:Uses count parameter]]
[[Category:Uses ordermethod parameter]]
[[Category:Uses order parameter]]
</noinclude>

Latest revision as of 07:39, 21 April 2023

Please do not edit this page unless you're wanting to edit the manual itself, it is an example included in the manual.

Example

This lists articles from Category:Fruit examples, offset by three (starting at the fourth in the list) and limited to a count of three. This means this displays articles #4, #5, and #6 from Category:Fruit examples. Next, ordermethod is used to order by title, ascending/alphabetically.

{{#dpl:
|category=Fruit examples
|offset = 3
|count  = 3
|ordermethod = title
|order = ascending
}}

Result

{{#dpl: |category=Fruit examples |offset = 3 |count = 3 |ordermethod = title |order = ascending }}