MediaWiki
1.23.2
|
Helper tools for dealing with other locally-hosted wikis. More...
Static Public Member Functions | |
static | foreignUserLink ( $wikiID, $user, $text=null) |
Convenience to get a link to a user page on a foreign wiki. More... | |
static | getForeignURL ( $wikiID, $page) |
Convenience to get a url to a page on a foreign wiki. More... | |
static | getWiki ( $wikiID) |
Get a WikiReference object for $wikiID. More... | |
static | getWikiName ( $wikiID) |
Convenience to get the wiki's display name. More... | |
static | makeForeignLink ( $wikiID, $page, $text=null) |
Convenience to get a link to a page on a foreign wiki. More... | |
Helper tools for dealing with other locally-hosted wikis.
Definition at line 26 of file WikiMap.php.
|
static |
Convenience to get a link to a user page on a foreign wiki.
string | $wikiID | wiki'd id (generally database name) |
string | $user | user name (must be normalised before calling this function!) |
string | $text | link's text; optional, default to "User:$user" |
Definition at line 81 of file WikiMap.php.
References makeForeignLink().
Referenced by RightsLogFormatter\makePageLink().
|
static |
Convenience to get a url to a page on a foreign wiki.
string | $wikiID | wiki'd id (generally database name) |
string | $page | page name (must be normalised before calling this function!) |
Definition at line 113 of file WikiMap.php.
References getWiki().
Referenced by makeForeignLink().
|
static |
Get a WikiReference object for $wikiID.
string | $wikiID | wiki'd id (generally database name) |
Definition at line 34 of file WikiMap.php.
References $path, array(), global, and list.
Referenced by getForeignURL(), and getWikiName().
|
static |
Convenience to get the wiki's display name.
string | $wikiID | wiki'd id (generally database name) |
Definition at line 64 of file WikiMap.php.
References getWiki().
|
static |
Convenience to get a link to a page on a foreign wiki.
string | $wikiID | wiki'd id (generally database name) |
string | $page | page name (must be normalised before calling this function!) |
string | $text | link's text; optional, default to $page |
Definition at line 93 of file WikiMap.php.
References getForeignURL(), and Linker\makeExternalLink().
Referenced by foreignUserLink().