Jump to content

Examples/Parameter: headingmode (example 2)

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 selects pages in the category Country examples, with ordermethod set to order by category, title. Setting headingmode to definition, puts category titles as headings in the output, in definition mode, which creates a description list using dl HTML tags. The mode set to ordered makes the pages listed below each header numbered, and the results are limited to a count of 3 (headings aren't included in that limit).

Code
{{#dpl:
|category    = Country examples
|ordermethod = category,title
|headingmode = definition
|mode        = ordered
|count       = 3
}}
Result
Countries in Africa
  1. Madagascar
Countries in Europe
  1. England
  2. Finland
Cookies help us deliver our services. By using our services, you agree to our use of cookies.