Jump to content

Examples/Parameter: tablesortmethod (example 2)

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 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.

In DPL3 (versions older than 4.0.0), a blank namespace meant the Main namespace, in DPL4 the value of "namespace = Main" is required.
This example is currently non-working, it may be replaced or removed at a later date to improve the clarity of this manual. As this needs to be done at a deliberate pace, the Gamepedia DPL3 Manual can be used in the interim, keeping in mind some functions may have changed.


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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.