User:Mike Dillon/Scripts/tabs.js: Difference between revisions

Content deleted Content added
m doesn't require User:Mike Dillon/Scripts/addlilink.js; uses addPortletLink
use i18n.js
Line 1:
// Requires: [[User:Mike Dillon/Scripts/i18n.js]]
 
/* <pre><nowiki> */
 
/* Messages */
wfMsg("en", "purgeTabLabel", "Purge");
wfMsg("en", "purgeTabTitle", "Purge this page from the server cache");
 
wfMsg("en", "lastDiffTabLabel", "Last");
wfMsg("en", "lastDiffTabTitle", "Show differences between this version and the previous revision");
 
// Duplicate link tab from the top to the bottom of the content area
Line 35 ⟶ 44:
 
addTab(x.replace(/action=history/, "action=purge"),
'purge'wfMsg("purgeTabLabel"), 'ca-purge', 'Purge the internal cache for this page'wfMsg("purgeTabTitle"));
addTab(x.replace(/action=history/, "diff=curprev&oldid=prev" + wgArticleId),
'last'wfMsg("lastDiffTabLabel"), 'ca-last', 'Show most recent diff'wfMsg("lastDiffTabTitle"));
});