Extension:BrowserHistoryLink

The BrowserHistoryLink extension adds a &lt;historylink&gt; tag to create a link with a JavaScript event that takes the client forward or back in the browser history.

Installation
You must have PHP 5.2.3 or above for this extension to work correctly!
 * 1) Create the directory "BrowserHistoryLink" in your extensions directory.
 * 2) Download and extract the files to this new directory.
 * 3) Add the following line to  :
 * 4) To run this extension on MW 1.27+ see Known Bugs for a fix.
 * 5) Check Special:Version to make sure the extension was registered correctly.

Basic
To add the link, add a  with type parameter set to   or   on a wiki page. Example: This outputs the default link text "&#171; Go Back".

Custom Text
For custom link text, use this code (link text can be anything): This outputs the link text "Go Back 1 Page", or whatever is between the opening and closing tags.

The "go" Parameter
Use this code to go back 3 pages, or whatever "go" is set to: Note: The "go" parameter can not be less than 1!

CSS Styles
The tag also has a "style" parameter that can contain CSS style information. Example: This will output a link that looks like &#171; Go Back.

Going Forward
To go forward instead of back, use this code: It will output the link text "Go Forward &#187;".

Note: All above parameters are also supported on "forward", including custom link text!

Note 2: Default link text may be different depending on your language.

Translations
New translations of the messages are welcome! If you make a new translation, please post the source code for the new translation on the talk page. Here's the list of current translations:
 * en - English (by Techjar )
 * es - Spanish (by Techjar )
 * fr - French (by Crainquebille)
 * de - German (by Scooty)
 * zh-hans - simplified Chinese (by pajoke)

Known Bugs

 * Extension is using deprecated  and   (since MW 1.21) and need to be fixed to run on MW 1.27+. See Manual:Messages API. To fix this problem edit the following lines in  :
 * Replace  with  in Lines 26, 27, 39, 65, 85, 109, 129, 155, 175, 199 and 219.
 * Delete Line 15
 * Error messages about undefined classes "go" and "style" in MW 1.29. -> This Error messages shows up when there is no go back site avaible.