Jump to content

MediaWiki:Common.js: Difference between revisions

From Event Gates Wiki
No edit summary
No edit summary
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */
$(function () {
  if (mw.config.get('wgAction') !== 'view') return;
  mw.util.addPortlet(
    'p-custom-categorytree',
    '',
    'Wiki Navigation',
    'p-navigation'
  );
  $('<div>')
    .load('/wiki/SidebarMenu?action=render')
    .appendTo('#p-custom-categorytree .body');
});

Revision as of 16:58, 3 July 2025

/* Any JavaScript here will be loaded for all users on every page load. */
$(function () {
  if (mw.config.get('wgAction') !== 'view') return;

  mw.util.addPortlet(
    'p-custom-categorytree',
    '',
    'Wiki Navigation',
    'p-navigation'
  );

  $('<div>')
    .load('/wiki/SidebarMenu?action=render')
    .appendTo('#p-custom-categorytree .body');
});