Examples/Parameter: titlelt (example 2)

Example
This example creates navigation between pages in Category:Fruit examples, by combining three templates: previous, next, and navigation.

Previous Content
The previous template contains content similar to:

allows a category parameter value to be passed to DPL3 to select pages from a specific category, in the default (blank) namespace, whose title is before/previous (alphabetically) to the current page title (without Namespace). Inline formatting is used, ordered by title in descending order, displaying only 1 result, and using an arrow image with page title beside it, both linked to the previous page title.

Next Content
The previous template contains content similar to:

Functions the same as the previous template, only  fetches the page title after/next (alphabetically) to the current page title (without Namespace).

Navigation Content
The previous template contains content similar to:

This template formats a navigation bar, and calls the previous and next DPL3 templates in the first and last columns of a 3 column table. The  parameter passes the   value (see next section) to both the previous and next templates, which then feed it to the DPL3 statement in each template. The middle column is used to link to the specified category page.

Combined use on-page
The navigation template is used on a page and passes the Fruit examples category name as follows: