Examples/Parameter: title (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

This will select the Apple article, which uses Template:Color on its page more than once. The include statement both includes all parameters available in Template:Color, and it passes their values to a surrogate template, Template:Color.templatevalues for formatting. The use of title is unique, it implicitly sets mode=userformat, which allows additional control over the output, and allows secseparators to be used. The first argument of secseparators sets nothing , to be displayed before each result, then its second argument sets a line break \n and four hyphens ---- (which create a horizontal rule/line). Another line break \n puts each result below that line. Without the secseparators statement, each result would appear side by side instead.

{{#dpl:
|title=Apple
|include={Color}.templatevalues
|secseparators=,\n----\n
}}

Result

{{#dpl: |title=Apple |include={Color}.templatevalues |secseparators=,\n----\n }}