User:Rein Of Terror/MyWikiLinks

From Guild Wars Wiki
Jump to navigationJump to search



MyWikiLinks

Notice

I have not had many chances to update or work on this program. This program is not very simple, and would be much easier to use if you already knew javascript, although it is possible to do by just following along in my instructions. This program is probably best for people experienced with javascript, to use as a starting point, and modify it to how you want it, like AT did. In the future I plan to work on it more and simplfy this a lot more. Thanks —Rein Of Terror 21:30, 6 August 2008 (UTC)

About It

MyWikiLinks is a program allowing you to put your most commenly used links on the side of your page.

MyWikiLinks: Installation

/**** MyWikiLinks
 * (c) Rein Of Terror
 */
 function addBar() {
 document.getElementById('p-navigation').innerHTML += 
 '</div><br />'+
 '<div id=p-my wiki links=portlet>'+
   '<h5>my wiki links</h5>'+
   '<div class=pBody><ul>'+
   '--My Links--'+
   '<li id=\><a href=\"/wiki/(Location of link)\">(Name of link)</a></li>'+
   '<li id=\><a href=\"/wiki/(Location of link)\">(Name of link)</a></li>'+
   '<li id=\><a href=\"/wiki/(Location of link)\">(Name of link)</a></li>'+
   '---'+
   '<li id=\><a href=\"/wiki/User:Rein_Of_Terror/MyWikiLinks\"><small>Home</small></a></li>'+
   '<li id=\><a href=\"/wiki/User_talk:Rein_Of_Terror\"><small>Help</small></a></li>'+
   '<li id=\><a href=\"/wiki/Special:Mypage/monobook.js\"><small>Add a link</small></a></li>'+
 '</ul></div></div>';
 } //Close addBar()
 addOnloadHook(addBar); //Call addBar() on load


  • Now, where you see (Location of link), and (Name of link), in each of the lines, is where you can edit what links you want in your bar.

This is a picture showing where to look: User Rein Of Terror MyWikiLinks 6.JPG

Please Note: If you edit anything besides what is stated, this will not work!

For more links
  • Copy the text below and paste it below the link above it. Just make sure its in between the '--MyWikiLinks--'+ and the '---'+.


  '<li id=\><a href=\"/wiki/(Location of link)\">(Name of link)</a></li>'+

Once you have the links you want, click save, and perform a hard refresh. To hard refresh your browser, hold down 'Ctrl', then press 'F5' or click the 'Refresh' button.

Examples

Examples of (Location of link)
  • User:Rein_Of_Terror
  • User_talk:Rein_Of_Terror
  • Anything past the wiki/ in your bar
Examples of (Name of link)
  • My User Page
  • My Talk Page
Example

If this was what I put:

/**** MyWikiLinks
 * (c) Rein Of Terror
 */
 function addBar() {
 document.getElementById('p-navigation').innerHTML += 
 '</div><br />'+
 '<div id=p-my wiki links=portlet>'+
   '<h5>my wiki links</h5>'+
   '<div class=pBody><ul>'+
   '--My Links--'+
   '<li id=\><a href=\"/wiki/User:Rein_Of_Terror\">My User Page</a></li>'+
   '<li id=\><a href=\"/wiki/User_talk:Rein_Of_Terror\">My Talk Page</a></li>'+
   '---'+
   '<li id=\><a href=\"/wiki/User:Rein_Of_Terror/MyWikiLinks\"><small>Home</small></a></li>'+
   '<li id=\><a href=\"/wiki/User_talk:Rein_Of_Terror\"><small>Help</small></a></li>'+
   '<li id=\><a href=\"/wiki/Special:Mypage/monobook.js\"><small>Add a link</small></a></li>'+
 '</ul></div></div>';
 } //Close addBar()
 addOnloadHook(addBar); //Call addBar() on load

It would look like this on my bar:

User Rein Of Terror MyWikiLinks 5.JPG

Latest Changes

  • 8/6/08 - It has been just over a year since the original release, and there has not been very many change in this time. I apoligize for those who use the program for this. I am now sitting this program at a standstill. It is best to be used by experienced javasripters. Please see my notice.
  • 8/1/07 - Layout change, header change - changed Home, Help, and Add A Link.
  • 8/1/07 - Added 'Add a link option'.
  • 7/31/07 - Layout change, added 'MyWikiLinks Home', and 'MyWikiLinks Talk'. Also added headers.
  • 7/31/07 - Fixed bugs, and problems.
  • 7/31/07 - Original Release.
  • 7/31/07 - Testing Program, fixing any bugs before release.
  • 7/30/07 - Started working on program, testing how to set it up.

Upcoming Features

  • I am currently working on a feature allowing you to add the wiki page you are currently on, to your 'my wiki links' box, by just a click. That is, if this is possible.

Notes

  • You can have any amount of links. Just copy and paste the text.
  • MyWikiLinks is new, so please let me know of any problems you have.
  • If you have any suggestions, please let me know here.
  • This program does work with programs like GuildWatch or GuildWarsWikiTools.

Help

  • For any help using this please leave a message on my talk page.

Special Thanks

  • Special Thanks to AT for helping me fix the original version of the program.