Template:Previous: Difference between revisions
Content added Content deleted
imported>FrozenPlum No edit summary |
imported>FrozenPlum mNo edit summary |
||
Line 12: | Line 12: | ||
}}</includeonly><noinclude> |
}}</includeonly><noinclude> |
||
==Examples== |
==Examples== |
||
<pre>{{ |
<pre>{{previous|category=Fruit examples}}</pre> |
||
'''Result:''' {{ |
'''Result:''' {{previous|category=Fruit examples}} |
||
==Notes== |
==Notes== |
Revision as of 22:27, 1 October 2022
Creates previous navigation between items in a specified category. Is written to be embedded in another template to style as a navigation bar, and automatically generate previous page links from whatever the current {{PAGENAME}}
is.
Examples
{{previous|category=Fruit examples}}
Result: {{#dpl: |category=Fruit examples |notcategory= |namespace=Main |titlelt=Previous |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.