Select by category-related criteria (examples): Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
No edit summary
(added examples)
Line 1: Line 1:
{{DPL Manual|section=Examples|subsection=Select by Category}}
{{DPL Manual|section=Examples|subsection=Select by Category}}

== Basic example ==


The following example:
The following example:
Line 7: Line 9:
}}</nowiki></pre>
}}</nowiki></pre>


Would produce all the articles in the DPL category:
Would produce all the articles in the DPL category.


{{#dpl:
{{#dpl:
category=DPL
category=DPL
}}
}}

== Further examples of syntax ==

To find all articles that feature two category names, an example would be:

<nowiki>
<DPL>
category = Chair
category = Wood
</DPL>
</nowiki>

Or to find all articles that contain one category name, and then another category name from two possible options, would be:

<nowiki>
<DPL>
category = Chair
category = Wood | Metal
</DPL>
</nowiki>

Revision as of 11:53, 17 September 2016

Template:DPL Manual

Basic example

The following example:

{{#dpl:
category=DPL
}}

Would produce all the articles in the DPL category.

{{#dpl: category=DPL }}

Further examples of syntax

To find all articles that feature two category names, an example would be:

<DPL> category = Chair category = Wood </DPL>

Or to find all articles that contain one category name, and then another category name from two possible options, would be:

<DPL> category = Chair category = Wood | Metal </DPL>