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

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
(Created page with "<noinclude>{{noedit}}</noinclude><!-- This is the example preloaded for testing, press "Show Preview" to see the example working (at the bottom of the page). If you save this page, it saves as a new section at the bottom of your '''User:Username/Sandbox''' --> ==Example== This selects articles in Category:Dessert examples and orders them by title, sorted in ''descending'' order. <pre> {{#dpl: |category = Dessert examples |ordermethod = title |order = descending...")
 
imported>FrozenPlum
m (forgot to appropriately count limit to prevent future result set creep if users create other pages in the category (hopefully not, because I'm planning on adding a notice to all example categories to please create new categories for testing only))
Line 10: Line 10:
<pre>
<pre>
{{#dpl:
{{#dpl:
|category = Dessert examples
|category = Dessert examples
|ordermethod = title
|ordermethod = title
|order = descending
|order = descending
|count = 3
}}
}}
</pre>
</pre>
Line 19: Line 20:


{{#dpl:
{{#dpl:
|category = Dessert examples
|category = Dessert examples
|ordermethod = title
|ordermethod = title
|order = descending
|order = descending
|count = 3
}}
}}
<noinclude>
<noinclude>
Line 28: Line 30:
[[Category:Uses ordermethod parameter]]
[[Category:Uses ordermethod parameter]]
[[Category:Uses order parameter]]
[[Category:Uses order parameter]]
[[Category:Uses count parameter]]
</noinclude>
</noinclude>

Revision as of 08:57, 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 in Category:Dessert examples and orders them by title, sorted in descending order.

{{#dpl:
|category    = Dessert examples
|ordermethod = title
|order       = descending
|count       = 3
}}

Result

{{#dpl: |category = Dessert examples |ordermethod = title |order = descending |count = 3 }}