Examples/Parameter: include (example 7)
Appearance
< Examples
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