Examples/Parameter: order (example 1): Difference between revisions
< Examples
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:
<pre>
{{#dpl:
|category = Dessert examples
|ordermethod = title
|order = descending
|count = 3
}}
</pre>
Line 19 ⟶ 20:
{{#dpl:
|category = Dessert examples
|ordermethod = title
|order = descending
|count = 3
}}
<noinclude>
Line 28 ⟶ 30:
[[Category:Uses ordermethod parameter]]
[[Category:Uses order parameter]]
[[Category:Uses count parameter]]
</noinclude>
|
Revision as of 08:57, 25 April 2022
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 }}