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

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
(Created page with "<noinclude>{{note|Please '''do not edit''' this page unless you're wanting to edit the manual itself, it is an example included in the manual.|error}}</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== This will select articles in Category:Fruit examples, it will incl...")
 
imported>FrozenPlum
(fix my wrong category)
Line 23: Line 23:
}}
}}
<noinclude>
<noinclude>
[[Category:Controlling output volume (examples)‎]]
[[Category:Include contents from the articles in the result set‎]]
[[Category:Uses category parameter]]
[[Category:Uses category parameter]]
[[Category:Uses include parameter]]
[[Category:Uses include parameter]]

Revision as of 04:51, 2 October 2022

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 will select articles in Category:Fruit examples, it will include the first thirty characters if the first and third page sections, selecting these sections based only on their position on result pages.

{{#dpl:
|category = Fruit examples
|include = %1[30],%3[30]
|count = 5
}}

Result

{{#dpl: |category = Fruit examples |include = %1[30],%3[30] |count = 5 }}