Examples/Parameter: hlistattr (example 1)
Appearance
< Examples
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