Jump to content

Examples/Parameter: hlistattr (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]

This lists pages in category Countries in Africa OR Countries in Europe and sets the ordermethod to category,pagetouched which adds a category header and sorts results by pagetouched. The headingmode set to definition defines list items using dl HTML tags. The mode set to ordered causes the pages listed under categories to be numbered. The hlistattr parameter adds formatting at the heading/top level, which encloses all other items; a CSS class ID and class are given, to set the color orange, and a border and padding. The result count is limited to 2.

Code
{{#dpl:
|category    = Countries in Africa¦Countries in Europe
|ordermethod = category,pagetouched
|headingmode = definition
|mode        = ordered
|hlistattr   = id="dl-example" class="dpl-orange-background"
|count       = 2
}}
Result
Countries in Africa
  1. Madagascar
Countries in Europe
  1. England
Cookies help us deliver our services. By using our services, you agree to our use of cookies.