I am writing a custom extension. What is the best way in PHP to get the current page's/article title in PHP? I've seen that Title::getText() will work but I've also seen something called MagicWord with a PAGENAME attribute ... Something that will work even when doing a 'preview'. Thanks, Jc