Examples/Parameter: hitemattr (example 2): Difference between revisions
< Examples
Content added Content deleted
imported>FrozenPlum (fix my wrong category) |
imported>FrozenPlum (Simplify examples to match now that extra styles could be moved to Common.css) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
==Example== |
==Example== |
||
Since <code>headingmode</code> is set to |
Since <code>headingmode</code> is set to {{tt|unordered}} and <code>hitemattr</code> applies to '''all list item headings''', all items are colored pink/red by <code>hitemattr</code>. |
||
<pre> |
<pre> |
||
Line 14: | Line 14: | ||
|headingmode = unordered |
|headingmode = unordered |
||
|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 |
||
}} |
}} |
||
Line 27: | Line 27: | ||
|headingmode = unordered |
|headingmode = unordered |
||
|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
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 }}