Examples/Parameter: categoriesminmax (example 2)

From DynamicPageList3 Manual
Revision as of 22:37, 31 March 2023 by imported>FrozenPlum (FrozenPlum moved page Criteria for page selection/Parameter: categoriesminmax (example 2) to Examples/Parameter: categoriesminmax (example 2): Simplifying how things are structured)
Please do not edit this page unless you're wanting to edit the manual itself, it is an example included in the manual.

Example

The list will list articles that belong to category Category:Countries in Europe and are only assigned to two other categories, for a maximum of three categories. The first categoriesminmax argument for minimum (or "min") is left blank, meaning no minimum will apply, and just the last (comma separated) argument specifying the maximum will be applied. Alternatively, both a "min" and a "max" value could be specified, if desired.

{{#dpl:
|category=Countries in Europe
|categoriesminmax=,3
}}

Result

{{#dpl: |category=Countries in Europe |categoriesminmax=,3 }}