Examples/Parameter: include (example 2)
Appearance
< Examples
Example
[edit source]This lists pages whose titlematch is Grape (only that page), and uses include to includes the content of the page section (indicated by #) named "about" OR "About" (since include is not case-sensitive). The table statement styles the result as a simple table, and specifies column headers. When using table format, if more than one section has the same name, each section is listed in a separate row. If the table statement is removed, the title appears only once, followed by each section's contents, one after the other.
- Code
{{#dpl:
|titlematch = Grape
|include = #about
|table = class="wikitable sortable", Page, Section content
}}
- Result
| Page | Section content |
|---|---|
| Grape |
A grape is a fruit type, it grows in clusters or bunches. |
| Grape |
Some grapes appear to be yellow, orange, green, and pink, though others can be dark red, near black, or even deep blue. |