Template:FindVersionedSubpage
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" or "LC:CONFIG_SMP"). Must always be provided.
- Version: The version to match (e.g., "v6.2").
Logic
The template follows these rules in order:
- It returns an exact match if a subpage with the given version exists.
- If not, it returns the closest older version.
- If there are no older versions, it returns the oldest available version.
This template requires the DPL3 extension.