Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
       🚧 True to our name, we’re still a work in progress. 🚧
   
       You’re welcome to explore, but account registration is currently invite-only as we finalize the setup. 
       Join our forum or follow Mastodon for updates. 
       Full Wiki launch coming soon!
   

MediaWiki:Gadget-sitenav.js

MediaWiki interface page
Revision as of 05:07, 14 March 2026 by Anthony (talk | contribs) (Removed protection from "MediaWiki:Gadget-sitenav.js")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.
/* =============================================================================
   Gadget-sitenav.js
   Forum link — after the menu toggle, pill style.
   ============================================================================= */
$( function () {
    var $drawer = $( '.citizen-drawer' );
    if ( !$drawer.length ) return;

    var $link = $( '<a>' ).attr( {
        href   : 'https://forum.unfinishedprojects.net',
        target : '_blank',
        rel    : 'noopener noreferrer',
        title  : 'Forum',
        'class': 'citizen-cdx-button--size-large cdx-button cdx-button--fake-button '
               + 'cdx-button--fake-button--enabled cdx-button--icon-only '
               + 'cdx-button--weight-quiet citizen-forum-link'
    } ).append(
        $( '<span>' ).addClass( 'citizen-ui-icon mw-ui-icon-speechBubbles mw-ui-icon-wikimedia-speechBubbles' ),
        $( '<span>' ).text( 'Forum' )
    );

    $drawer.after( $link );
} );