MediaWiki extensions manual
ParentPageLink
Release status: unmaintained
Implementation User interface, Page action
Description On new page edit inserts a page-link pointing to the parent page.
Author(s) (Jdooleytalk)
Latest version 0.057 (2016-09-25)
MediaWiki 1.30.0+
PHP 5.4.7+
Database changes No
License GPL
Download

GitHub:

Note:
No localisation updates are
provided by translatewiki.net .

Hooks used
  • EditPage::showEditForm:initial

The ParentPageLink extension add a boilerplate page-link to the parent page upon editing a new page.

For example, creating a new article on the Main_Page will produce the following code at the bottom.

=Internal Links=
<i>Parent Article:</i> [[Main Page]]<br />


Articles created in the new article will have the new article as the parent and so on down. This allows traceability from any article to the Main_Page (root) and provides some context for the article's creation.

Changes

Version 0.051 supports namespaces and subpages. Talk Pages are ignored.
Version 0.052 removed '_' from page titles.
Version 0.053 Bug fix with 'Main Page'.
Version 0.054 Bug fix with wfGetDB.
Version 0.055 Bug fix with LINUX error message.
Version 0.056 Bug fix with 1.27.1 detecting a blank article.
Fixed getContent() bug in 1.30.0

Installation

  1. Go to SourceForge.net and download the latest version.
  2. Save the file as "ParentPageLink.php" in the extensions folder.
  3. Add these lines to LocalSettings.php

# ParentPageLink Extension
require_once( "{$IP}/extensions/ParentPageLink.php");

This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.