Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.js: Difference between revisions

MediaWiki interface page
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 5: Line 5:


     function addIcon(id, icon) {
     function addIcon(id, icon) {
         $(`#n-${id} a:first-child`).prepend(`<i class="icon-${icon}"></i> `);
         $(`#n-${id} a:first-child`).prepend(`<i class="icon-${icon}" style="font-size: 125%;"></i> `);
     }
     }


     addIcon("About-This-Wiki", "info");
     addIcon("About-This-Wiki", "info");
});
});

Revision as of 11:42, 23 October 2025

/* Any JavaScript here will be loaded for all users on every page load. */

$(document).ready(function() {
    // Sidebar Menu Icons

    function addIcon(id, icon) {
        $(`#n-${id} a:first-child`).prepend(`<i class="icon-${icon}" style="font-size: 125%;"></i> `);
    }

    addIcon("About-This-Wiki", "info");
});