Template:Next

From DynamicPageList3 Manual
Revision as of 22:27, 1 October 2022 by imported>FrozenPlum (Created page with "<noinclude>Creates next navigation between items in a specified category. Is written to be embedded in another template to style as a navigation bar, and automatically generate next page links from whatever the current <code><nowiki>{{PAGENAME}}</nowiki></code> is.</noinclude><includeonly>{{#dpl: |category={{{category|}}} |notcategory={{{notcategory|}}} |namespace={{{namespace|Main}}} |titlegt={{#titleparts:{{PAGENAME}}}} |mode=inline |ordermethod=sortkey |order=descendi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Creates next navigation between items in a specified category. Is written to be embedded in another template to style as a navigation bar, and automatically generate next page links from whatever the current {{PAGENAME}} is.

Examples

{{next|category=Fruit examples}}

Result: {{#dpl: |category=Fruit examples |notcategory= |namespace=Main |titlegt=Next |mode=inline |ordermethod=sortkey |order=descending |count=1

|format=,

,

|debug=0 }}

Notes

The #titleparts section of the ParserFunctions page explains that Magic Words like {{PAGENAME}} occasionally return strings as needlessly HTML-encoded, this formerly caused DPL3 to not return results when page names contain ' and other special characters. Use of {{#titleparts:{{PAGENAME}}}} HTML-decodes, converting it to plain text.

See also