Examples/Parameter: title (example 1): Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
m (forgot to remove the eliminate statement when I was done)
imported>FrozenPlum
(format/adjustments)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{noedit}}</noinclude><!--
<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
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,
the example working (at the bottom of the page). If you save this page,
Line 6: Line 6:
==Example==
==Example==


This example includes the contents of the {{tt|Notes}} section/heading of the [[Apple]] article, in the ''Main'' namespace.
This example will include the contents of the "Notes" section/heading of the [[Apple]] article, in the main namespace. If there is '''more than one section with the same name''', the contents of each are displayed one after the other. Note that when such content is formatted instead using <code>{{DPL|table}}</code>, each heading with the same name appears in a separate result row, as can be seen in [[Controlling output volume#include page sections|another example]].


<pre>
<pre>
Line 21: Line 21:
|include = #Notes
|include = #Notes
}}
}}

<noinclude>
<noinclude>
[[Category:Select by title-related criteria]]
[[Category:Select by title-related criteria]]

Latest revision as of 07:41, 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 example includes the contents of the Notes section/heading of the Apple article, in the Main namespace.

{{#dpl:
|title     = Apple
|include   = #Notes
}}

Result

{{#dpl: |title = Apple |include = #Notes }}