Extension:TitlesAndTargets
This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. |
TitlesAndTargets Release status: unmaintained |
|
---|---|
Implementation | Parser function |
Description | Adds two parser functions to identify page titles |
Author(s) | Werner G. Kaukerat (Wgkderdicketalk) |
Latest version | 1.0.0 |
MediaWiki | |
License | GNU General Public License 2.0 or later |
Download | GitHub: Note: |
The TitlesAndTargets extension adds two parser functions about the page name. The first function returns the title of a page to a given page ID. The second function returns the target page name to a given name of a redirect page.
Installation
[edit]- Download from Github and place the file(s) in a directory called
TitlesAndTargets
in yourextensions/
folder. - Add the following code at the bottom of your LocalSettings.php file:
require_once "$IP/extensions/TitlesAndTargets/TitlesAndTargets.php";
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Usage
[edit]{{#idTitle:pageid}}
Returns the full page title including the namespace addressed by the page ID. An integer value greater than zero is expected as the parameter. Otherwise, an error will occur.
{{#rdTarget:redirect}}
Returns the full page title including the namespace of the target page of a redirect. The name of an existing redirect is expected as the parameter. Otherwise, an error will occur.