Extension:FrontBackMatterForcedWikilinks
This is the FrontBackMatterForcedWikilinks extension.
|
FrontBackMatterForcedWikilinks Release status: experimental |
|||
|---|---|---|---|
| Implementation | Hook | ||
| 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. | ||
| Author(s) | TisaneTalk | ||
| Last version | 1.0.0 | ||
| MediaWiki | 1.16+ | ||
| PHP | 5 | ||
| License | Creative Commons Attribution/Share-Alike License 3.0, GPL | ||
| Download |
Download snapshot (Git master)
Git [?]: repo summary • tree • code changes SVN [?]: checkout-url • tree • code changes |
||
|
|||
|
Check usage (experimental) |
|||
[edit] What can this extension do?
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<#
[edit] Installation
Add this line to LocalSettings.php:
require_once( "$IP/extensions/FrontBackMatterForcedWikilinks/FrontBackMatterForcedWikilinks.php" );
