Examples/Parameter: categoriesminmax (example 2): Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
(Created page with "<noinclude>{{note|Please '''do not edit''' this page unless you're wanting to edit the manual itself, it is an example included in the manual.|error}}</noinclude><!-- This preloads the example for testing, press "Show Preview" to see the example working (at the bottom of the page). If you save this page, it saves as a new section at the bottom of your '''User:Username/Sandbox''' page, and if you enter a "subject" it becomes the section heading. --> ==Example== The list...")
 
imported>FrozenPlum
m (formatting)
 
(5 intermediate revisions by the same user not shown)
Line 7: Line 7:
==Example==
==Example==


The list will list articles that belong to category '''[[:Category:Countries in Europe]]''' '''and''' are '''only''' assigned to '''two''' other categories (for '''a total of three''' categories).
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 <code>categoriesminmax</code> argument for minimum (or {{tt|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 {{tt|min}} and a {{tt|max}} value could be specified if desired.


<pre>
<pre>
Line 24: Line 24:


<noinclude>
<noinclude>
[[Category:Select by category-related criteria‎]]
[[Category:Uses category parameter]]
[[Category:Uses category parameter]]
[[Category:Uses categoriesminmax parameter]]
[[Category:Uses categoriesminmax parameter]]

Latest revision as of 07:12, 1 April 2023

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 }}