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

From DynamicPageList3 Manual
Content added Content deleted
m (clarification)
Line 17: Line 17:
== Further examples of syntax ==
== Further examples of syntax ==


To find all articles that feature two category names, an example would be:
To find all articles that feature two category names, such as all wooden chairs, an example would be:


<pre><nowiki>
<pre><nowiki>
Line 26: Line 26:
</nowiki></pre>
</nowiki></pre>


Or to find all articles that contain one category name, and then another category name from two possible options, would be:
Or to find all articles that contain one category name, and then another category name from two possible options, such as listing all the chairs that are made of wood as well as all the chairs that are made of metal, would be:


<pre><nowiki>
<pre><nowiki>

Revision as of 18:33, 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, such as all wooden chairs, 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, such as listing all the chairs that are made of wood as well as all the chairs that are made of metal, would be:

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

To sort results alphabetically:

<DPL>
  category = Chair
  ordermethod = titlewithoutnamespace
  order = ascending
</DPL>