Examples/Parameter: ordermethod (example 1): Difference between revisions
< Examples
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 |
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
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 }}