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

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
m (Cross link the examples that show different outcomes for different output formatting of nearly the same statement (the behaviour is different enough that it warrants explaining).)
imported>FrozenPlum
m (forgot to remove the eliminate statement when I was done)
Line 6: Line 6:
==Example==
==Example==


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|this example]].
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 12: Line 12:
|title = Apple
|title = Apple
|include = #Notes
|include = #Notes
|eliminate = categories
}}
}}
</pre>
</pre>
Line 21: Line 20:
|title = Apple
|title = Apple
|include = #Notes
|include = #Notes
|eliminate = categories
}}
}}



Revision as of 06:56, 22 April 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 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 table, each heading with the same name appears in a separate result row, as can be seen in another example.

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

Result

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