Created page with "<includeonly>{{#ifexist: {{{1}}}/{{{2}}} | {{{1}}}/{{{2}}}| {{#dpl:| titlematch = {{{1}}}/% | titlelt = {{{1}}}/{{{2}}} | ordermethod = title | order = descending | count = 1 | format = %PAGE% | noresultsfooter = {{#dpl:| titlematch = {{{1}}}/% | ordermethod = title | order = ascending | count = 1 | format = %PAGE% |..."
(No difference)

Revision as of 14:26, 21 August 2025

Documentation

This template finds the best-matching versioned subpage based on a given page name and version string.

Usage

{{FindVersionedSubpage|PageName|Version}}
  • PageName: The base name of the page (e.g., "Kernel Documentation").
  • Version: The version to match (e.g., "v6.2").

Logic

The template follows these rules in order:

  1. It returns an exact match if a subpage with the given version exists.
  2. If not, it returns the closest older version.
  3. If there are no older versions, it returns the oldest available version.

This template requires the DPL3 extension.