Jump to content

Examples/Parameter: tablesortcol (example 1)

From DynamicPageList3 Manual
Please do not edit this page unless you're wanting to edit the manual itself, it is an example included in the manual.

Example

[edit source]

This lists pages in category Fruit examples, and include includes the page name (automatic unless suppressed) and the "grows" parameter values. The result is set to display as a simple table with the ordermethod set to sort by Title and tablesortcol set to -1, which sorts the first column by reverse (descending) order. Results are limited to a count of 5.

Code
{{#dpl:
|category     = Fruit examples
|include      = {Fruit-Infobox}:grows
|table        = class="wikitable sortable",Page,Location
|ordermethod  = Title
|tablesortcol = -1
|count        = 5
}}
Result
Page Location
Plum
Orange On trees
Grape On vines
Banana On a tree-like plant
Apple On trees
Cookies help us deliver our services. By using our services, you agree to our use of cookies.