577
edits
Welcome to the Lylat Wiki, all about the Star Fox series! If you'd like to help out, please take a look at our community portal.
(Fixing.) |
|||
Line 225: | Line 225: | ||
return; // don't display link for special pages | return; // don't display link for special pages | ||
url = wgServer + " | url = wgServer + "/w/index.php?title=Special:Log&page=" + encodeURIComponent(wgPageName); | ||
addPortletLink("p-tb", url, "Page logs", "pt-logs"); | addPortletLink("p-tb", url, "Page logs", "pt-logs"); | ||
Line 242: | Line 242: | ||
var title = wgTitle; | var title = wgTitle; | ||
addPortletLink('p-tb', ' | addPortletLink('p-tb', '/w/index.php?title=Special:Userrights/'+title, | ||
'User rights', 't-userrights', 'User rights for "'+title+'"'); | 'User rights', 't-userrights', 'User rights for "'+title+'"'); | ||
Line 267: | Line 267: | ||
if(n.nodeType==1&&n.tagName.toLowerCase()=="a") //anchor | if(n.nodeType==1&&n.tagName.toLowerCase()=="a") //anchor | ||
{ | { | ||
if(n.href.indexOf(" | if(n.href.indexOf("/wiki/User:")!=-1) | ||
{ | { | ||
var u=n.href.split(" | var u=n.href.split("/wiki/User:")[1]; | ||
if(adminrights[u.split("_").join("%20")]==1) | if(adminrights[u.split("_").join("%20")]==1) | ||
{ | { | ||
Line 278: | Line 278: | ||
n=n.nextSibling; | n=n.nextSibling; | ||
} | } | ||
else if(n.href.indexOf(" | else if(n.href.indexOf("/wiki/User:")!=-1) | ||
{ | { | ||
var u=n.href.split(" | var u=n.href.split("/wiki/User:")[1]; | ||
if(adminrights[u.split("_").join("%20")]==1) | if(adminrights[u.split("_").join("%20")]==1) | ||
{ | { | ||
Line 324: | Line 324: | ||
if (document.URL.indexOf('&rcid=') > 0 && wgAction != 'markpatrolled') | if (document.URL.indexOf('&rcid=') > 0 && wgAction != 'markpatrolled') | ||
{ | { | ||
addPortletLink ('p-cactions', " | addPortletLink ('p-cactions', "/w/index.php?title=" + encodeURIComponent(wgPageName) + "&action=markpatrolled&rcid=" + document.location.toString().split('&rcid=')[1].split('&'), 'patrol', 'ca-patrol', 'Mark as patrolled', '1'); | ||
} | } | ||
else if (document.URL.indexOf('&rcid=') > 0 && wgAction == 'markpatrolled') | else if (document.URL.indexOf('&rcid=') > 0 && wgAction == 'markpatrolled') | ||
{ | { | ||
addPortletLink ('p-cactions', " | addPortletLink ('p-cactions', "/w/index.php?title=Special:RecentChanges&hidepatrolled=1", 'return', 'ca-return', 'Return to unpatrolled recent changes', '1'); | ||
} | } | ||
} | } | ||
Line 339: | Line 339: | ||
// -------------------------------------------------------- | // -------------------------------------------------------- | ||
function lastdiff() { | function lastdiff() { | ||
addPortletLink("p-cactions", wgServer + " | addPortletLink("p-cactions", wgServer + "/w/index.php?title=" + encodeURIComponent(wgPageName) + "&diff=cur&oldid=prev", | ||
"last", "ca-last", "Show most recent diff", '2'); | "last", "ca-last", "Show most recent diff", '2'); | ||
} | } |
edits