Jump to content

Examples/Parameter: format (example 1)

From DynamicPageList4 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]

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 format with the following statements (last example and result).
  • The format statement's Startall, End, and Endall arguments are empty, only Start is 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


Cookies help us deliver our services. By using our services, you agree to our use of cookies.