Jump to content

Examples/Parameter: tablesortmethod (example 1)

From DynamicPageList4 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 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 standard displays initial sort order to a normal order (the default), and the result count is restricted to 5.

In versions before 4.0.0, a blank namespace was the only way to indicate the main namespace. In later versions, the value of "namespace = main" is supported (unless there is an actual separate namespace using that name), and any namespace ID may be used as well.


Code
{{#dpl:
|category        = Digit-related examples
|namespace       = Main
|table           = class="wikitable sortable",Page, See Also, More
|include         = {Generic-Infobox}:1:2
|tablesortmethod = standard
|count           = 5
}}
Result
Page See Also More
100 99 103
103 100 103-104
103-104 103 105
105 103 99
99 100
Cookies help us deliver our services. By using our services, you agree to our use of cookies.