Examples/Parameter: hitemattr (example 2)
Appearance
< Examples
Example
[edit source]This selects pages in category Countries in Africa OR Countries in Europe, with an ordermethod of category,pagetouched. The headingmode set to unordered causes category headings to be bulleted and mode set to ordered makes the pages under them be numbered. The hlistattr parameter applies CSS to the heading content wrapping it in orange, where the hitemattr parameter sets CSS to wrap list items in red/pink. Results are limited to a count of 3.
- Code
{{#dpl:
|category = Countries in Africa¦Countries in Europe
|ordermethod = category,pagetouched
|headingmode = unordered
|mode = ordered
|hlistattr = id="dl-example" class="dpl-orange-background"
|hitemattr = id="list-item-heading" class="list-item-heading"
|count = 3
}}
- Result