Examples/Parameter: format (example 1)
Appearance
< Examples
Example
[edit source]These lists pages that titlematch the characters ntries anywhere in their title, and nottitlematch pages containing f in their titles. With includesubpages set to false, none are included. The results are restricted to a count of 3.
Notes:
- The 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
formatwith the following statements (last example and result). - The
formatstatement'sStartall,End, andEndallarguments are empty, onlyStartis used to manually define a bulleted list followed by the liked page name, which is then applied to each row of output.
- Code
{{#dpl:
|titlematch = %ntries%
|nottitlematch = %f%
|includesubpages = false
|count = 3
}}
- Result
- Code
{{#dpl:
|titlematch = %ntries%
|nottitlematch = %f%
|includesubpages = false
|format = ,\n* [[%PAGE%|%TITLE%]],,
|count = 3
}}
- Result