Examples/Parameter: tablesortmethod (example 2)
Appearance
< Examples
Example
[edit source]This lists pages in the category Digit-related examples, located in the namespace Main, the table statement formats the results as a sortable table with headings. The include statement includes the page name (by default) and contents of the {{Generic-Infobox}} template, as well as the value of the first two parameters (which are unnamed or Anonymous parameters). The tablesortmethod set to natural displays the initial sort order in a more natural order, and the result count is restricted to 5.
- Code
{{#dpl:
|category = Digit-related examples
|namespace = Main
|table = class="wikitable sortable",Page, See Also, More
|include = {Generic-Infobox}:1:2
|tablesortmethod = natural
|count = 5
}}
- Result
| Page | See Also | More |
|---|---|---|
| 103 | 100 | 103-104 |
| 103-104 | 103 | 105 |
| 100 | 99 | 103 |
| 99 | 100 | |
| 105 | 103 | 99 |