Extension:PageTools
Appearance
A request to archive this extension has been made on Phabricator. See T408339 for the archival request and the rationale for the request, and to leave comments about the request. |
This extension is incompatible with the current stable MediaWiki 1.45 release!
|
This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. If you are interested in taking on the task of developing and maintaining this extension, you can request repository ownership. As a courtesy, you may want to contact the author. You should also remove this template and list yourself as maintaining the extension in the page's {{Extension}} infobox. |
Release status: unmaintained |
|
|---|---|
| Implementation | Parser function |
| Description | Provides parser functions to retrieve/set page information |
| Author(s) | Jean-Lou Dupont Stephan Gambke |
| Latest version | 2.2.0-alpha |
| Compatibility policy | Master maintains backward compatibility. |
| MediaWiki | 1.29-1.43 |
| Database changes | No |
| License | GNU General Public License 3.0 or later |
| Download | |
| Translate the PageTools extension if it is available at translatewiki.net | |
The PageTools extension provides parser functions to retrieve/set page information.
Usage
[edit]{{#pageincategory: 'category' }}
- returns 'true' if the current page is categorised with 'category'
{{#pagenumcategories:}}
- returns the number of categories found for the current page.
{{#pagecategory: 'index' }}
- returns the full name of the category at the given index number from the list of categories of the current page. Indexes start at 0.
{{#pagetitle: new title name }}
- changes the displayed page title
Note: This does NOT change the title under which the page is stored in the wiki, you will have to move the page for that.
{{#pagetitleadd: text to be added to the title name }}
- adds the given text to the displayed page title
{{#pagesubtitle: text to be added to the page's subtitle }}
- adds the given text to the displayed subtitle (the area where e.g. relocation information is usually displayed)
Installation
[edit]- Download and move the extracted
PageToolsfolder to yourextensions/directory.
Developers and code contributors should install the extension from Git instead, using:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/PageTools
- Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'PageTools' );
Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
