Translations:Manual:$wgArticle/6/en

Use the Context object to get what you need. Since 1.19, Context objects have a  to access the corresponding $wiki-pg object. Where you get this context object from depends on where your code is running. Many major classes extend $context-src, which means you can just do  to get the context and   for the   object. As of this writing that includes,  ,  ,  ,  ,  ,  ,  ,  ,  , and. Some other classes support  which don't have   as a parent class, such as   (So if you're writing a , you can often do   to get the context).