Jump to content

User:FrozenPlum/Sandbox

From DynamicPageList4 Manual

Last Edits Example

[edit | edit source]
Namespace Script Last By Size
User User:PetraMagna/sandbox 2026-05-03 22:31:29 PetraMagna 0
Main Page 2026-02-18 19:49:18 Universal Omega 9541
Criteria for page selection 2026-02-18 19:42:44 Universal Omega 54143
Compatibility 2026-02-18 19:39:22 Universal Omega 5756
User_talk User talk:Universal Omega 2026-02-09 04:55:45 Universal Omega 5103
Select by category-related criteria (examples) 2026-02-07 21:50:45 PetraMagna 6840
Examples/Parameter: execandexit (example 1) 2026-01-17 23:54:31 Universal Omega 2063
Template Template:DPL4 scroll 2026-01-17 23:44:53 Universal Omega 1618
Other parameters 2026-01-09 05:08:31 Universal Omega 13139
Controlling output volume 2026-01-09 05:07:57 Universal Omega 31912

Example

[edit | edit source]
<dpl>
category=Countries in Africa|Countries in United Kingdom
category=Part of NATO
</dpl>

 or

{{#dpl:
|category=Countries in Africa¦Countries in United Kingdom
|category=Part of NATO
}}

 or

{{#dpl:
|category=Countries in Africa{{!}}Countries in United Kingdom
|category=Part of NATO
}}

Result

[edit | edit source]

format

[edit | edit source]

Example

[edit | edit source]

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. 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.

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

Result

[edit | edit source]

randomcount

[edit | edit source]

Example

[edit | edit source]

This will list from Category:Fruit examples, three random articles ordered by size. Each time the page is previewed or refreshed, the results may randomly change.

{{#dpl:
|category=Fruit examples
|randomcount=3
|ordermethod=size
|count=7
}}

Result

[edit | edit source]
Cookies help us deliver our services. By using our services, you agree to our use of cookies.