Examples/Parameter: offset (example 1): Difference between revisions
< Examples
Content added Content deleted
imported>FrozenPlum (Created page with "<noinclude>{{note|Please '''do not edit''' this page unless you're wanting to edit the manual itself, it is an example included in the manual.|error}}</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 will list articles #3 to #6 of Category:Fruit examples; order...") |
imported>FrozenPlum m (Flesh out example more, add ordermethod/order to make it make better sense for the offset.) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
==Example== |
==Example== |
||
This lists articles from [[:Category:Fruit examples]], offset by three (starting at the fourth in the list) and limited to a count of three. This means this displays articles #4, #5, and #6 from [[:Category:Fruit examples]]. Next, <code>{{DPL|ordermethod}}</code> is used to order by title, ascending/alphabetically. |
|||
This will list articles #3 to #6 of [[:Category:Fruit examples]]; order is determined by alphabet as we did not give any specific ordermethod. |
|||
<pre> |
<pre> |
||
Line 13: | Line 13: | ||
|offset = 3 |
|offset = 3 |
||
|count = 3 |
|count = 3 |
||
|ordermethod = title |
|||
|order = ascending |
|||
}} |
}} |
||
</pre> |
</pre> |
||
Line 22: | Line 24: | ||
|offset = 3 |
|offset = 3 |
||
|count = 3 |
|count = 3 |
||
|ordermethod = title |
|||
|order = ascending |
|||
}} |
}} |
||
Line 29: | Line 33: | ||
[[Category:Uses offset parameter]] |
[[Category:Uses offset parameter]] |
||
[[Category:Uses count parameter]] |
[[Category:Uses count parameter]] |
||
[[Category:Uses ordermethod parameter]] |
|||
[[Category:Uses order parameter]] |
|||
</noinclude> |
</noinclude> |
Latest revision as of 07:39, 21 April 2023
Example
This lists articles from Category:Fruit examples, offset by three (starting at the fourth in the list) and limited to a count of three. This means this displays articles #4, #5, and #6 from Category:Fruit examples. Next, ordermethod
is used to order by title, ascending/alphabetically.
{{#dpl: |category=Fruit examples |offset = 3 |count = 3 |ordermethod = title |order = ascending }}
Result
{{#dpl: |category=Fruit examples |offset = 3 |count = 3 |ordermethod = title |order = ascending }}