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

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
(Created page with "<noinclude>{{noedit}}</noinclude><!-- This is the example preloaded for testing, press "Show Preview" to see the example working (at the bottom of the page). If you save this page, it saves as a new section at the bottom of your '''User:Username/Sandbox''' --> ==Example== Since <code>headingmode</code> is set to ''unordered'' and <code>hitemattr</code> applies to '''all list item headings''', all items are colored pink/red by <code>hitemattr</code>. <pre> {{#dpl: |cat...")
 
imported>FrozenPlum
(Simplify examples to match now that extra styles could be moved to Common.css)
 
(4 intermediate revisions by the same user not shown)
Line 6: Line 6:
==Example==
==Example==


Since <code>headingmode</code> is set to ''unordered'' and <code>hitemattr</code> applies to '''all list item headings''', all items are colored pink/red by <code>hitemattr</code>.
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" style="font-size:17px; border:1px solid orange; padding:3px;"
|hlistattr = id="dl-example" class="dpl-orange-background"
|hitemattr = id="list-item-heading" style="background-color:pink; border:1px solid red; padding:3px;"
|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" style="font-size:17px; border:1px solid orange; padding:3px;"
|hlistattr = id="dl-example" class="dpl-orange-background"
|hitemattr = id="list-item-heading" style="background-color:pink; border:1px solid red; padding:3px;"
|hitemattr = id="list-item-heading" class="list-item-heading"
|count = 3
|count = 3
}}
}}
<noinclude>
<noinclude>
[[Category:Controlling output format (examples)‎]]
[[Category:Heading mode]]
[[Category:Uses category parameter]]
[[Category:Uses category parameter]]
[[Category:Uses ordermethod parameter]]
[[Category:Uses ordermethod parameter]]

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