Examples/Parameter: include (example 7): Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
(Fix the example, it was having unexpected results when trying to test its use on the same page the sections themselves resided on)
imported>FrozenPlum
m (FrozenPlum moved page Controlling output volume/Parameter: include (example 7) to Examples/Parameter: include (example 7): Simplifying how things are structured)
 
(One intermediate revision by the same user not shown)
Line 23: Line 23:
}}
}}
<noinclude>
<noinclude>
[[Category:Controlling output volume (examples)‎]]
[[Category:Include contents from the articles in the result set‎]]
[[Category:Uses title parameter]]
[[Category:Uses title parameter]]
[[Category:Uses include parameter]]
[[Category:Uses include parameter]]

Latest revision as of 01:13, 1 April 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

This selects the Apple Pie article, and includes the content of its <section begin="one" /><section end="one" /> tags (seen using source edit), as well including the values for section tags "two" and "three". The secseparators statement formats places a space, two dashes, and then a space before each result.

{{#dpl:
|title = Apple Pie
|include=one,two,three
|secseparators = &nbsp;--&nbsp;
}}

Result

{{#dpl: |title = Apple Pie |include = one,two,three |secseparators =  --  }}