Extension:ParentPageLink

From mediawiki.org
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) Jesse B. Dooley (Jdooleytalk)
Latest version 0.057 (2016-09-25)
MediaWiki 1.30.0+
PHP 5.4.7+
Database changes No
License GPL
Download

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[edit]

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[edit]

  1. Go to SourceForge.net[1] 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");