Jump to content

Examples/Parameter: include (example 2)

From DynamicPageList4 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 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.

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