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