Jump to content

Examples/Parameter: include (example 7)

From DynamicPageList3 Manual
Please do not edit this page unless you're wanting to edit the manual itself, it is an example included in the manual.

Example

[edit source]

This lists pages whose title is Apple Pie (just that page), and uses include to include 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 uses a nested template {{sp}} to create a non-breaking space, followed by two dashes, and another space. As nested templates must use a special syntax, the {{sp}} template is called using ²{sp}².

Code
{{#dpl:
|title         = Apple Pie
|include       = one,two,three
|secseparators = ²{sp}²--²{sp}²
}}
Result

 -- one slice -- two slices -- three slices

Cookies help us deliver our services. By using our services, you agree to our use of cookies.