Jump to content

Examples/Parameter: include (example 6)

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 selects pages with the title Examples (one page), and uses include to include all DPL3 parser function calls {{#dpl:}} used, and the parameter values of each. The {{Dpl.examples}} surrogate template specified ends in the chosen ".examples" suffix, resulting in: Template:dpl.examples; that surrogate only makes use of the {{{category|}}} and {{{ordermethod|}}} parameters, to pass those parameter's values to the output.

The table statement's first argument (left empty) defaults to class="wikitable"), and the second and third arguments set the column headers. Since {{#dpl:}} was used more than once on the Examples page, one line of output for each instance appears (and table separates these per line with a repeating title, where other formats may list the title once and all values thereafter).

Code
{{#dpl:
|title   = Examples
|include = {#dpl}.examples
|table   = ,Page,<code>category</code> parameter value, <code>ordermethod</code> parameter value
}}
Result
Page category parameter value ordermethod parameter value
Examples Criteria for page selection (examples) title
Examples Controlling output format (examples) title
Examples Controlling output order (examples) title
Examples Examples by module use title
Examples Examples by parameter use title
Examples Miscellaneous examples
Examples Criteria for page selection (examples)
Examples Demo output pages
Examples Example templates
Examples Surrogate (phantom) templates
Cookies help us deliver our services. By using our services, you agree to our use of cookies.