Jump to content

Examples/Parameter: format (example 4)

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

This lists pages in the namespace File, and applies the format of manually specified gallery code, using the Startall (before all) and Endall (after all) arguments of gallery syntax for the open and close tags. The Start and End arguments are applied to each result in between, in this case the file page names generated by the dpl3 statement, and puts each on a new line to complete the gallery statement. Results are limited to a count of 3.

Note: When DPL3 parser function syntax is used to create a gallery, the < and > characters must be replaced by « and » respectively (to escape them).

Code
{{#dpl:
|namespace = File
|format    = «gallery mode="packed" widths="80px" heights="80px"»,%PAGE%\n,,«/gallery»
|count     = 3
}}
Result
Cookies help us deliver our services. By using our services, you agree to our use of cookies.