Extension:PageMagic

This extension is professionally maintained by the WikiTeq team.
WikiTeq provides official support for MediaWiki LTS releases only. It may work with other MediaWiki releases.
Category:Extensions by WikiTeq Category:Extensions without an imageCategory:Extensions with invalid or missing typeCategory:GPL licensed extensions
MediaWiki extensions manual
PageMagic
Release status: stableCategory:Stable extensions
Description The extension adds a few parser functions to retrieve page id by name and vice versa.
Author(s) Vedmaka (vedmakatalk)
Maintainer(s) WikiTeq team
Compatibility policy For every MediaWiki release that is a Long Term Support release there is a corresponding branch in the extension.Category:Extensions with long-term support release branches compatibility policy
MediaWiki 1.31+Category:Extensions with manual MediaWiki version
License GNU General Public License 2.0 or later
Download Category:Extensions in Wikimedia version control
README
Quarterly downloads 0
Translate the PageMagic extension if it is available at translatewiki.net
Issues Open tasks · Report a bug
Category:All extensions

The PageMagic extension adds a few parser functions to retrieve page id by name and vice versa.

This extension was created for WikiWorks.

Installation

  • Download and move the extracted PageMagic folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/PageMagic
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'PageMagic' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Usage

The following magic words are introduced:

  • FULLPAGENAMEFROMID - converts provided page id into a full page name
  • PAGEIDFROMREVISIONID - converts provided revision id into a page id
  • FULLPAGENAMEFROMREVISIONID - converts provided revision id into a full page name

Examples:

{{FULLPAGENAMEFROMID:12345}} -> Namespace:Pagename
{{PAGEIDFROMREVISIONID:3456}} -> 12345
{{FULLPAGENAMEFROMREVISIONID:3456}} -> Namespace:Pagename

Also, see the README

Category:All extensions Category:Extensions by WikiTeq Category:Extensions in Wikimedia version control Category:Extensions with invalid or missing type Category:Extensions with long-term support release branches compatibility policy Category:Extensions with manual MediaWiki version Category:Extensions without an image Category:GPL licensed extensions Category:ParserFirstCallInit extensions Category:Stable extensions