Suggesting the page.startup module gets a method like OutputPage's setPageTitle and setPageTitleActionText.
The code to do it properly is fairly tedious, centralizing will make sure it's done right and without hassle.
It should use the message key 'pagetitle' (making sure to globally replace {{SITENAME}} with wgSiteName and pass the input as first message param).
If a prefixed action text is used, separation should be done with ' - '.
Version: unspecified
Severity: enhancement