Skip to content

GitHub mirror of the mediawiki/extensions/PageMagit Gerrit repository. Our code is hosted with https://gerrit.wikimedia.org; please see https://www.mediawiki.org/wiki/Developer_account if you wish to contribute

License

Notifications You must be signed in to change notification settings

wikimedia/mediawiki-extensions-PageMagic

Repository files navigation

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

Requirements:

  • MediaWiki 1.35+

Usage

Get page NAME by a page ID

{{FULLPAGENAMEFROMID:12345}} -> Namespace:Pagename

Get page ID by revision ID

{{PAGEIDFROMREVISIONID:3456}} -> 12345

Get page NAME by a revision ID

{{FULLPAGENAMEFROMREVISIONID:3456}} -> Namespace:Pagename

Note: you can also use MediaWiki built-in magic {{PAGEID:page_name}} to get page ID from a page name, eg:

{{PAGEID:Namespace:Pagename}} -> 12345

About

GitHub mirror of the mediawiki/extensions/PageMagit Gerrit repository. Our code is hosted with https://gerrit.wikimedia.org; please see https://www.mediawiki.org/wiki/Developer_account if you wish to contribute

Resources

License

Code of conduct

Stars

Watchers

Forks

Contributors 8