Examples/Parameter: format (example 1)

From DynamicPageList3 Manual
Revision as of 05:47, 23 April 2022 by imported>FrozenPlum
Please do not edit this page unless you're wanting to edit the manual itself, it is an example included in the manual.

Example

The classical default output of DPL, an unordered (bulleted) list, can be produced by using a default statement (first example and result). It can also be created using format with the following statements (last example and result). This selects pages that have "ntries" in the title, it excludes pages that have "f" in the title, and it also excludes subpages. Both outputs appear the same.

{{#dpl:
|titlematch	     = %ntries%
|nottitlematch	 = %f%
|includesubpages = false
|count           = 3
}}
{{#dpl:
|titlematch	     = %ntries%
|nottitlematch	 = %f%
|includesubpages = false
|format	         = ,\n* [[%PAGE%]],,
|count           = 3
}}

Result

{{#dpl: |titlematch = %ntries% |nottitlematch = %f% |includesubpages = false |count = 3 }}


{{#dpl: |titlematch = %ntries% |nottitlematch = %f% |includesubpages = false |format = ,\n* %PAGE%,, |count = 3 }}