Examples/Parameter: tablesortcol (example 1)
Appearance
< Examples
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 |