Jump to content

User:FrozenPlum/Sandbox

From DynamicPageList3 Manual

Last Edits Example

[edit | edit source]
Namespace Script Last By Size
Main Page 2025-11-22 18:08:52 Mr. Starfleet Command 9206
Examples/Parameter: include (example 7) 2025-11-09 02:48:19 Aadenboy 1371
Criteria for page selection 2025-11-06 16:47:19 PetraMagna 54508
User User:Rosaura0178 2025-11-04 09:55:03 Rosaura0178 230
Controlling output format 2025-09-14 07:38:16 PetraMagna 64466
Template Template:Anc 2025-09-14 07:37:25 PetraMagna 181
User User:PetraMagna/sandbox 2025-09-14 07:07:32 PetraMagna 46
Template Template:DPL Code 2025-09-14 07:01:18 PetraMagna 399
MediaWiki MediaWiki:Common.css 2025-09-12 02:06:57 FrozenPlum 2241
Template Template:ViewTest/styles.css 2025-09-12 02:06:33 FrozenPlum 1007

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.