Jump to content

Examples/Parameter: notnamespace (example 1)

From DynamicPageList3 Manual
Please do not edit this page unless you're wanting to edit the manual itself, it is an example included in the manual.

Example

[edit source]
Namespaces have underscores in their proper names. In DPL3 (versions older than 4.0.0), when excluding a namespace that contains a space (such as Help talk), you must replace the space with an underscore — e.g. Help_talk. Using a space instead causes different results and the exclusion will not behave as expected.

This is fixed in DPL4 4.0.0 and later, where spaces in namespace names are handled correctly for exclusions.

This lists pages from the category Number examples that are neither in the Talk namespace nor the Help talk namespace (by listing each using notnamespace). The results are limited to a count of 3.

Code
{{#dpl:
|category     = Number examples
|notnamespace = Talk
|notnamespace = Help talk
|count        = 3
}}
Result
Cookies help us deliver our services. By using our services, you agree to our use of cookies.