Jump to content

Examples/Parameter: notnamespace (example 1)

From DynamicPageList4 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]
In versions before 4.0.0, namespaces with spaces in their name (such as "Help talk") requires replacing the space with an underscore — e.g. "Help_talk". If you use a space instead, inclusions and exclusions won't work as expected, and pages like Help talk:Three are not included/excluded. This is due to MediaWiki namespaces internally using underscores.

This is not an issue in version 4.0.0 and later, where spaces in namespace names are handled correctly.

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.