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

m
no edit summary
m (→‎Further examples of syntax: clean up, replaced: [[zh:Extension::{{subst:BASEPAGENAME}}]] → [[zh:扩展:{{subst:BASEPAGENAME}}]])
mNo edit summary
Line 4:
The following example:
 
<pre><nowiki>{{#dpl:
category=DPL3
}}</nowiki></pre>
 
Would produce all the articles in the DPL3 category.
Line 17:
To find all articles that feature two category names, such as all wooden chairs, an example would be:
 
<pre><nowiki>
<DPL>
category = Chair
category = Wood
</DPL>
</nowiki></pre>
 
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>
<DPL>
category = Chair
category = Wood | Metal
</DPL>
</nowiki></pre>
 
To sort results alphabetically:
 
<pre><nowiki>
<DPL>
category = Chair
Line 41:
order = ascending
</DPL>
</nowiki></pre>
 
<!-- Extension prefix in other languages: