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.

Difference between revisions of "MediaWiki:Common.js"

From Lylat Wiki, your source on Star Fox information. By Fans, for Fans.
Jump to navigationJump to search
no edit summary
Line 355: Line 355:
//
//


// -------------------------------------------------------- // addPurge // adds a "purge" tab (after "watch") // -------------------------------------------------------- addOnloadHook(function () {    if (wgAction != 'edit' && wgCanonicalNamespace != 'Special' && wgAction != 'history' && wgAction != 'delete' && wgAction != 'watch' && wgAction      != 'unwatch' && wgAction != 'protect' && wgAction != 'markpatrolled' && wgAction != 'rollback' && document.URL.indexOf('diff=') <= 0    && document.URL.indexOf('oldid=') <=0)    { var hist; var url;    if (!(hist = document.getElementById('ca-history') )) return;    if (!(url = hist.getElementsByTagName('a')[0] )) return;    if (!(url = url.href )) return;    addPortletLink('p-cactions', url.replace(/([?&]action=)history([&#]|$)/, '$1purge$2'),                    'purge', 'ca-purge', 'Purge server cache for this page', '0'); } });
// --------------------------------------------------------  
// addPurge  
// adds a "purge" tab (after "watch")  
// --------------------------------------------------------  
addOnloadHook(function () {    if (wgAction != 'edit' && wgCanonicalNamespace != 'Special' && wgAction != 'history' && wgAction != 'delete' && wgAction != 'watch' && wgAction      != 'unwatch' && wgAction != 'protect' && wgAction != 'markpatrolled' && wgAction != 'rollback' && document.URL.indexOf('diff=') <= 0    && document.URL.indexOf('oldid=') <=0)    { var hist; var url;    if (!(hist = document.getElementById('ca-history') )) return;    if (!(url = hist.getElementsByTagName('a')[0] )) return;    if (!(url = url.href )) return;    addPortletLink('p-cactions', url.replace(/([?&]action=)history([&#]|$)/, '$1purge$2'),                    'purge', 'ca-purge', 'Purge server cache for this page', '0'); } });
577

edits

Navigation menu