Translations:Manual:$wgTitle/17/en

As another example, if you're writing a Tag extension, the third argument to your callback function is the Parser. This is not a ContextSource, but it does have a $code method, hence the appropriate way to get the current title from such a callback is $parser.