Examples/Parameter: titlemaxlength (example 1): Difference between revisions

From DynamicPageList3 Manual
Content added Content deleted
imported>FrozenPlum
(Created page with "<noinclude>{{noedit}}</noinclude><!-- This is the example preloaded 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''' --> ==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 cha...")
 
imported>FrozenPlum
(fix my wrong category)
Line 26: Line 26:
}}
}}
<noinclude>
<noinclude>
[[Category:Controlling output format (examples)‎]]
[[Category:Control the way article names are displayed]]
[[Category:Uses category parameter]]
[[Category:Uses category parameter]]
[[Category:Uses notnamespace parameter]]
[[Category:Uses notnamespace parameter]]

Revision as of 04:12, 2 October 2022

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