MediaWiki:Common.js

// ===================================== //       Variables for functions // ===================================== // Ajax auto-refresh ajaxPages = ['Special:RecentChanges', 'Special:WikiActivity', 'Special:Watchlist', 'Special:Log', 'Special:Contributions', 'Special:NewFiles', 'Special:AbuseLog']; AjaxRCRefreshText = 'Refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page';

//ArchiveTool var ArchiveToolConfig = { archiveListTemplate: 'Archived Talk Tabs', archivePageTemplate: 'Archived Talk Tabs', archiveSubpage: 'Archive', userLang: true };

// Expand All var expandAllFlag = 0; var $expandAll = $('.expandAll a'); $('.expandAll a').click(function{   if (expandAllFlag == 0){        $('.mw-collapsible .mw-collapsible-toggle-collapsed').click;        expandAllFlag = 1;        $expandAll.text('Collapse All');    } else {        $('.mw-collapsible .mw-collapsible-toggle-expanded').click;        expandAllFlag = 0;        $expandAll.text('Expand All');    } }); //End of Expand All

// ===================================== //               Imports // =====================================

// See MediaWiki:ImportJS