Examples/Parameter: ordermethod (example 1)

From DynamicPageList3 Manual
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 display the page size after the article name. 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 are displayed.

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

Result

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