This is the FrontBackMatterForcedWikilinks extension.
Release status: experimental
|Description||Automatically transcludes front matter and back matter pages to the page being rendered, and causes the first instance of a word to be wikified if it is listed in the page of "forced wikilinks" corresponding the page being rendered.|
|License||Creative Commons Attribution/Share-Alike License 3.0, GPL|
|Translate the FrontBackMatterForcedWikilinks extension if it is available at translatewiki.net|
|Check usage and version matrix.|
What can this extension do?Edit
This extension automatically transcludes front matter and back matter pages to the page being rendered, and causes the first instance of a word to be wikified if it is listed in the page of "forced wikilinks" corresponding to the page being rendered. E.g., the page goat might have corresponding pages goat (front matter), goat (back matter), and goat (forced wikilinks).
This extension is useful for situations in which you have a MediaWiki installation that mirrors certain pages from another website by means of a bot that frequently updates the page to keep it in sync with the other wbebsite. Suppose the users of the wiki want to alter the content of that page. It would be pointless for them to edit the page, since their edits will be reverted the next time the bot updates the page. This extension allows those users to instead edit other pages that will transclude to the page in question.
Please note that the way the extension is currently coded, it will not work after you edit the page; however, caches will clear and it will work after you edit the pages that are transcluded to it. This may be changed in a later version.
Forced wikilinks pages use a format such as the following:
>John Schmidt<John J. Jingleheimer Schmidt (DOB 1979-04-20)# >Space Science Enterprises<#
Add this line to LocalSettings.php:
require_once( "$IP/extensions/FrontBackMatterForcedWikilinks/FrontBackMatterForcedWikilinks.php" );