Examples/Parameter: include (example 7): Difference between revisions
< Examples
Content added Content deleted
imported>FrozenPlum (Interim save to see if the results will display at all after a save) |
imported>FrozenPlum m (FrozenPlum moved page Controlling output volume/Parameter: include (example 7) to Examples/Parameter: include (example 7): Simplifying how things are structured) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 6:
==Example==
This selects the [[Apple Pie]] article, and includes the content of its <code><nowiki><section begin="one" /><section end="one" /></nowiki></code> tags (seen using source edit), as well including the values for section tags "two" and "three". The <code>secseparators</code> statement formats places a space, two dashes, and then a space before each result.
<pre>
{{#dpl:
|title = Apple Pie
|include=one,two,three▼
|secseparators = &nbsp;--&nbsp;▼
▲|include=one,two
▲|secseparators= --
}}
</pre>
Line 32 ⟶ 18:
==Result==
{{#dpl:
|title = Apple Pie
|include = one,two,three▼
|secseparators = -- ▼
▲|include=one,two
▲|secseparators= --
}}
[[Category:Include contents from the articles in the result set]]
▲<noinclude><!--
[[Category:
▲[[Category:Uses category parameter]]
▲[[Category:Uses headingmode parameter]]
</noinclude>
|
Latest revision as of 01:13, 1 April 2023
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 = -- }}
Result
{{#dpl: |title = Apple Pie |include = one,two,three |secseparators = -- }}