Unlisted special page just to redirect the user to the translated version of a page, if it exists. More...
Public Member Functions | |
__construct () | |
execute ($par) | |
Only takes arguments from $par. | |
Static Public Member Functions | |
static | linkfix ($dummy, $target, &$html, &$customAttribs, &$query, &$options, &$ret) |
Make Special:MyLanguage links red if the target page doesn't exists. | |
Protected Member Functions | |
findTitle ($par) | |
Assuming the user's interface language is fi. |
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 20 of file SpecialMyLanguage.php.
SpecialMyLanguage::__construct | ( | ) |
Definition at line 21 of file SpecialMyLanguage.php.
SpecialMyLanguage::execute | ( | $ | par | ) |
Only takes arguments from $par.
Definition at line 26 of file SpecialMyLanguage.php.
SpecialMyLanguage::findTitle | ( | $ | par | ) | [protected] |
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.
$par |
Definition at line 44 of file SpecialMyLanguage.php.
Referenced by execute().
static SpecialMyLanguage::linkfix | ( | $ | dummy, | |
$ | target, | |||
&$ | html, | |||
&$ | customAttribs, | |||
&$ | query, | |||
&$ | options, | |||
&$ | ret | |||
) | [static] |
Make Special:MyLanguage links red if the target page doesn't exists.
A bit hacky because the core code is not so flexible.
$dummy | ||
$target | Title | |
$html | ||
$customAttribs | ||
$query | ||
$options | ||
$ret |
Definition at line 87 of file SpecialMyLanguage.php.