Examples/Parameter: ordermethod (example 1)

From DynamicPageList3 Manual
Revision as of 06:31, 25 April 2022 by imported>FrozenPlum (Highlight the fact that when only ordermethod is used, sort order still applies.)
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 selects articles from Category:Fruit examples ordering them by the method of size. addpagesize is set to true to also display the page size. Since order is not set, the default sort order of ascending is applied. The count is limited to three, so only the three smallest articles in the selected category are displayed.

{{#dpl:
|category    = Fruit examples
|ordermethod = size
|addpagesize = true
|count       = 3
}}

Result

{{#dpl: |category = Fruit examples |ordermethod = size |addpagesize = true |count = 3 }}