Content deleted Content added
Mike Dillon (talk | contribs) link to required js |
m Maintenance: Fixing deprecated call to addPortletLink (mw:ResourceLoader/Migration_guide_(users)#addPortletLink) |
||
(10 intermediate revisions by one other user not shown) | |||
Line 1:
// Requires: [[User:Mike Dillon/Scripts/
/* <pre><nowiki> */
/* Messages */
wfAddMsg("en", "purgeTabLabel", "Purge");
wfAddMsg("es", "purgeTabLabel", "Purgar");
wfAddMsg("en", "purgeTabTitle", "Purge this page from the server cache");
wfAddMsg("es", "purgeTabTitle", "Purgar esta página del cache de servidor");
wfAddMsg("en", "lastDiffTabLabel", "Last");
wfAddMsg("es", "lastDiffTabLabel", "Previa");
wfAddMsg("en", "lastDiffTabTitle", "Show differences between this revision and the previous");
wfAddMsg("es", "lastDiffTabTitle", "Mostrar las diferencias entre esta revisión y la previa");
// Add a new list item to the page tabs
function addTab(url, name, id, title, key) {
// Add tab to the top tabs
// Add tab to the bottom if the tabs have been cloned
▲ addlilink(bottomTabs, url, name, 'mytabs-' + id, title, key);
}
// Add a 'purge'
addTab(x.replace(/=history/, "=purge"), 'purge', 'ca-purge',▼
addOnloadHook(function () {
var x = document.getElementById('ca-history');
Line 52 ⟶ 31:
else x = x.childNodes[0].href;
addTab(x.replace(/action=history/, "
▲ addTab(x.replace(/action=history/, "diff=
wfMsg("lastDiffTabLabel"), 'ca-last', wfMsg("lastDiffTabTitle"));
});
|