DPL Example 006

From FollowTheScore
Revision as of 07:09, 11 March 2009 by Gero (talk | contribs) (New page: {{Example|Create a list of articles belonging (or not belonging) to certain categories}} You can specify AND, OR and NOT conditions for categories: multiple specifications are treated as ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

back to list of examples

Create a list of articles belonging (or not belonging) to certain categories

You can specify AND, OR and NOT conditions for categories: multiple specifications are treated as AND, within one specification you can use the pipe symbol for OR.

Note that you must escape the pipe character when using DPL as a parser function. You can use ¦ insetad of | or you can define a template which produces a pipe character.

{{#dpl:
 |category=African Union member states
 |addcategories=yes
}}
{{#dpl:
 |category=African Union member states
 |notcategory=Engish-speaking countries
 |addcategories=yes
}}

The above DPL command produces the following output: