Page-dependent magic words will affect or return data about the ''current'' page, even if the word is added through a transcluded template or included system message.
There is a <nowiki>{{CURRENTUSER}}</nowiki>, even if you can't find documentation about it. (Or any reference says don't use it.)
==Behaviour switches==