Examples/Parameter: hitemattr (example 2): Difference between revisions
< Examples
Content added Content deleted
imported>FrozenPlum m (FrozenPlum moved page Controlling output format/Parameter: hitemattr (example 2) to Examples/Parameter: hitemattr (example 2): Simplifying how things are structured) |
imported>FrozenPlum m (formatting) |
||
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> |
Revision as of 05:56, 1 April 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" style="font-size:17px; border:1px solid orange; padding:3px;" |hitemattr = id="list-item-heading" style="background-color:pink; border:1px solid red; padding:3px;" |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" style="font-size:17px; border:1px solid orange; padding:3px;" |hitemattr = id="list-item-heading" style="background-color:pink; border:1px solid red; padding:3px;" |count = 3 }}