MediaWiki
REL1_24
|
Unlisted special page just to redirect the user to the translated version of a page, if it exists. More...
Public Member Functions | |
__construct () | |
findTitle ($par) | |
Assuming the user's interface language is fi. | |
getRedirect ($par) | |
If the special page is a redirect, then get the Title object it redirects to. |
Unlisted special page just to redirect the user to the translated version of a page, if it exists.
Usage: [[Special:MyLanguage/Page name|link text]]
Definition at line 35 of file SpecialMyLanguage.php.
Definition at line 36 of file SpecialMyLanguage.php.
SpecialMyLanguage::findTitle | ( | $ | par | ) |
Assuming the user's interface language is fi.
Given input Page, it returns Page/fi if it exists, otherwise Page. Given input Page/de, it returns Page/fi if it exists, otherwise Page/de if it exists, otherwise Page.
string | $par |
Definition at line 65 of file SpecialMyLanguage.php.
References SpecialPage\getConfig(), SpecialPage\getLanguage(), Language\isKnownLanguageTag(), and Title\newFromText().
Referenced by getRedirect().
SpecialMyLanguage::getRedirect | ( | $ | par | ) |
If the special page is a redirect, then get the Title object it redirects to.
False otherwise.
string | $par | Subpage string |
Reimplemented from RedirectSpecialPage.
Definition at line 47 of file SpecialMyLanguage.php.
References $title, findTitle(), and Title\newMainPage().