v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "User:Emi/monobook.js"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
Line 1: Line 1:
addPortletLink("p-cactions", wgServer + "/index.php/Main_page", "main page", "", "");
 
 
 
importScript('User:Emi/clock.js');
 
importScript('User:Emi/clock.js');
 
importScript('User:Emi/newpages.js');
 
importScript('User:Emi/newpages.js');
Line 7: Line 5:
  
  
addOnloadHook(function() {
+
addOnloadHook(function() {addPortletLink("p-personal", wgServer + "/index.php/Main_page", "main page", "", "");
  if (wgTitle.indexOf("/") != -1 || document.title.indexOf("- History -") != -1)  //no subpages or history
 
    return;
 
  if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") {
 
    var username = encodeURIComponent( wgTitle );
 
    addPortletLink("p-cactions", wgServer + "/wiki/Special:Contributions/" + username, "Contribs", "ca-contrib", "User contributions");
 
    addPortletLink("p-cactions","http://toolserver.org/~soxred93/count/index.php?name="+ username +"&lang=en&wiki=wikipedia" , "Edit count", "ca-editcount", "Edit count from X!'s Tool");
 
    addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:Log&type=move&user=" + username, "Page moves", "ca-pagemoves", "Page moves by this user");
 
    addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:Log&type=block&page=User:" + username, "Blocks received", "ca-blog", "Blocks received by this user");
 
    addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:Prefixindex&from=" + username + "&namespace=2", "Userspace", "", "List of pages in this user's userspace");
 
    addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:Log&type=block&user=" + username, "Blocks given", "", "Blocks by this user");
 
    addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:Log&type=protect&user=" + username, "Protections", "", "Protections by this user");
 
    addPortletLink("p-cactions", wgServer + "/w/index.php?title=Special:Log&type=delete&user=" + username, "Deletions", "", "Deletions by this user");
 
  }
 
 
});
 
});

Revision as of 02:32, 24 April 2010

importScript('User:Emi/clock.js');
importScript('User:Emi/newpages.js');
importScript('User:Emi/colorcontrib.js');
importScript('User:Briess/hideAnnouncements.js');


addOnloadHook(function() {addPortletLink("p-personal", wgServer + "/index.php/Main_page", "main page", "", "");
});