Jump to content

Examples/Parameter: hitemattr (example 1)

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 category Countries in Africa OR Countries in Europe and sets the ordermethod to sort by category,pagetouched. The headingmode as definition puts the category as headers in the output using dl HTML tags. mode being set to ordered causes pages listed under categories to be numbered. The hlistattr line specifies CSS formatting at the heading/top level, enclosing all other items and being orange. The hitemattr parameter adds styles for pink/red formatting for all list items).

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