Select by category-related criteria (examples): Difference between revisions
Content added Content deleted
(improved formatting of examples) |
|||
Line 32: | Line 32: | ||
category = Chair |
category = Chair |
||
category = Wood | Metal |
category = Wood | Metal |
||
</DPL> |
|||
</nowiki></pre> |
|||
To sort results alphabetically: |
|||
<pre><nowiki> |
|||
<DPL> |
|||
category = Chair |
|||
ordermethod = titlewithoutnamespace |
|||
order = ascending |
|||
</DPL> |
</DPL> |
||
</nowiki></pre> |
</nowiki></pre> |
Revision as of 12:15, 17 September 2016
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>
To sort results alphabetically:
<DPL> category = Chair ordermethod = titlewithoutnamespace order = ascending </DPL>