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

m
FrozenPlum moved page Controlling output volume/Parameter: include (example 7) to Examples/Parameter: include (example 7): Simplifying how things are structured
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.
'''The section text:'''
<pre>
<section begin="one" />* Section one content<section end="one" />
<section begin="two" />* Section two content<section end="two" />
<section begin="three" />* Section three content<section end="three" />
</pre>
 
'''The section result:'''
<section begin=one/>* Section '''1''' content<section end=one/>
<section begin=two/>* Section '''2''' content<section end=two/>
<section begin=three/>* Section '''3''' content<section end=three/>
 
 
'''The DPL statement:'''
<pre>
{{#dpl:
|title = Apple Pie
|titlematch=Controlling output volume/Parameter: include (example 7)
|include=one,two,three
|skipthispage=no
|secseparators = &amp;nbsp;--&amp;nbsp;
|include=one,two
|secseparators=&nbsp;--&nbsp;
|multisecseparators=&nbsp;##&nbsp;
}}
</pre>
Line 32 ⟶ 18:
==Result==
{{#dpl:
|title = Apple Pie
|titlematch=Controlling output volume/Parameter: include (example 7)
|include = one,two,three
|skipthispage=no
|secseparators = &nbsp;--&nbsp;
|include=one,two
|secseparators=&nbsp;--&nbsp;
|multisecseparators=&nbsp;##&nbsp;
}}
<noinclude><!--
<!-- to test with this:
[[Category:Include contents from the articles in the result set‎]]
|format=,\n %SECTION%
[[Category:Uses categorytitle parameter]]
-->
[[Category:Uses headingmodeinclude parameter]]
<noinclude><!--
[[Category:ControllingUses outputsecseparators volume (examples)‎parameter]]
[[Category:Uses category parameter]]
[[Category:Uses headingmode parameter]]
[[Category:Uses headingmode parameter]]
[[Category:Uses magic word]]
-->
[[Category:Issues]]
</noinclude>
Anonymous user