Help:DPL/Example: Select by category

From AIOWiki
Jump to navigation Jump to search
Manual Examples Select by category

Basic example

The following example:

{{#dpl:
category=DPL
}}

Would produce all the articles in the DPL category.

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
}}

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
}}

To sort results alphabetically:

{{#dpl:
 category = Chair
|ordermethod = titlewithoutnamespace
|order = ascending
}}