Template:Pageid to title/doc

Returns the title (including namespace) of a page specified by its Page ID. Unlike the title, the Page ID does not change when a page is moved, which makes it a stable reference.

Usage
{{Pageid to title|Page ID}}