Examples/Parameter: hitemattr (example 2): Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
(Simplify examples to match now that extra styles could be moved to Common.css)
imported>FrozenPlum
(Simplify examples to match now that extra styles could be moved to Common.css)
 
Line 15: Line 15:
|mode = ordered
|mode = ordered
|hlistattr = id="dl-example" class="dpl-orange-background"
|hlistattr = id="dl-example" class="dpl-orange-background"
|hitemattr = id="list-item-heading"
|hitemattr = id="list-item-heading" class="list-item-heading"
|count = 3
|count = 3
}}
}}

Latest revision as of 19:34, 15 June 2023

Please do not edit this page unless you're wanting to edit the manual itself, it is an example included in the manual.

Example

Since headingmode is set to unordered and hitemattr applies to all list item headings, all items are colored pink/red by hitemattr.

{{#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

{{#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 }}