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

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
m (FrozenPlum moved page Example: Select by category to Select by category (example) without leaving a redirect: will update corresponding pages also)
imported>FrozenPlum
m (Categorize as appropriately now that category exists)
Line 1: Line 1:
==Category parameter==
{{DPL manual|section=Examples|subsection=Select by category}}
{{#lsth:Parameter:_category_(examples)|Selecting articles using 'category' parameter}}<!-- this content is included/transcluded from another page. [[See Parameter:_category_(examples)#Selecting articles using 'category' parameter]] -->


[[Category:Criteria for page selection (examples)]]
==Basic example==
The following example:

<pre>{{#dpl:
category=DPL3
}}</pre>

Would produce all the articles in the DPL3 category.

{{#dpl:
category=DPL3
}}

==Further examples of syntax==
To find all articles that feature two category names, such as all wooden chairs, an example would be:

<pre>
<DPL>
category = Chair
category = Wood
</DPL>
</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>
<DPL>
category = Chair
category = Wood | Metal
</DPL>
</pre>

To sort results alphabetically:

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

<!-- Extension prefix in other languages:

[[de:Erweiterung:{{subst:BASEPAGENAME}}]]
[[es:Extensión:{{subst:BASEPAGENAME}}]]
[[fr:Extension:{{subst:BASEPAGENAME}}]]
[[it:Estensione:{{subst:BASEPAGENAME}}]]
[[nl:Uitbreiding:{{subst:BASEPAGENAME}}]]
[[pl:Rozszerzenie:{{subst:BASEPAGENAME}}]]
[[pt:Extensão:{{subst:BASEPAGENAME}}]]
[[ru:Расширение:{{subst:BASEPAGENAME}}]]
[[zh:扩展:{{subst:BASEPAGENAME}}]]
-->

Revision as of 05:09, 3 April 2022

Category parameter

{{#lsth:Parameter:_category_(examples)|Selecting articles using 'category' parameter}}