Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
// DataTables CSS laden
mw.loader.load('https://cdn.datatables.net/1.13.6/css/jquery.dataTables.min.css', 'text/css');

// JS laden und initialisieren nach vollständigem Seitenaufbau
mw.loader.getScript('https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js')
  .then(function () {
    $(function () {
      var table = document.getElementById('illust-table');
      if (table) {
        console.log('Initialisiere DataTables für #illust-table …');
        $('#illust-table').DataTable();
      } else {
        console.warn('Tabelle mit ID "illust-table" nicht gefunden.');
      }
    });
  });