Jump to content

Examples/Parameter: distinct (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 any page with a titlematch of Apple, that uses Template:Color, and then include ensures the page name (automatic) and 1 (first parameter value) of the template is displayed in the output. The table statement formats the results as a simple table. The distinct parameter when set to true typically ensures each page is only displayed once in the output. The result count is restricted to 5 results.

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:
|titlematch   = Apple
|uses         = Template:Color
|include      = {color}:1
|table        = class="wikitable", Page, Color
|distinct     = true
|count        = 5
}}
Result
Page Color
Apple red
Apple green
Cookies help us deliver our services. By using our services, you agree to our use of cookies.