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

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
m (Highlight the fact that when only ordermethod is used, sort order still applies.)
imported>FrozenPlum
mNo edit summary
Line 6: Line 6:
==Example==
==Example==


This selects articles from [[:Category:Fruit examples]] ordering them by the method of ''size''. <code>addpagesize</code> is set to ''true'' to also display the page size. Since <code>{{DPL|order}}</code> is not set, '''the default sort order of ''ascending'' is applied'''. The <code>{{DPL|count}}</code> is limited to three, so only the three ''smallest'' articles in the selected category are displayed.
This selects articles from [[:Category:Fruit examples]] ordering them by the method of ''size''. <code>addpagesize</code> is set to ''true'' to display the page size after the article name. Since <code>{{DPL|order}}</code> is not set, '''the default sort order of ''ascending'' is applied'''. The <code>{{DPL|count}}</code> is limited to three, so only the three ''smallest'' articles are displayed.


<pre>
<pre>

Revision as of 08:08, 25 April 2022

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 }}