Select by category-related criteria (examples): Difference between revisions
Content added Content deleted
(added examples) |
(improved formatting of examples) |
||
Line 19: | Line 19: | ||
To find all articles that feature two category names, an example would be: |
To find all articles that feature two category names, an example would be: |
||
<nowiki> |
<pre><nowiki> |
||
<DPL> |
<DPL> |
||
category = Chair |
category = Chair |
||
category = Wood |
category = Wood |
||
</DPL> |
</DPL> |
||
</nowiki> |
</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, would be: |
||
<nowiki> |
<pre><nowiki> |
||
<DPL> |
<DPL> |
||
category = Chair |
category = Chair |
||
category = Wood | Metal |
category = Wood | Metal |
||
</DPL> |
</DPL> |
||
</nowiki> |
</nowiki></pre> |
Revision as of 11:54, 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>