Examples/Parameter: titlemaxlength (example 1)

From DynamicPageList3 Manual
Revision as of 23:48, 31 March 2023 by imported>FrozenPlum (FrozenPlum moved page Controlling output format/Parameter: titlemaxlength (example 1) to Examples/Parameter: titlemaxlength (example 1): Simplifying how things are structured)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Please do not edit this page unless you're wanting to edit the manual itself, it is an example included in the manual.

Example

This will list articles in Category:Country examples that are not in the "Category" namespace. Each result link will be shortened to a maximum of 5 characters, and those that have more than 5 characters will display ... after it.

{{#dpl:
|category       = Country examples
|notnamespace   = Category
|titlemaxlength = 5
|count          = 3
}}

Result

{{#dpl: |category = Country examples |notnamespace = Category |titlemaxlength = 5 |count = 3 }}