MediaWiki:Wikia.js: Difference between revisions

m Added link to policies
m Fixed link
 
(7 intermediate revisions by the same user not shown)
Line 39: Line 39:
                                 $( '<a>' )
                                 $( '<a>' )
                                     .addClass( 'subnav-2a' )
                                     .addClass( 'subnav-2a' )
                                     .attr( 'href', mw.util.wikiGetlink( 'Elite Dangerous:Policies' ) )
                                     .attr( 'href', mw.util.wikiGetlink( 'Elite Dangerous Wiki:Policies' ) )
                                     .text( 'Policies' )
                                     .text( 'Policies' )
                             )
                             )
Line 68: Line 68:
   
   
                         // bot
                         // bot
                         'Kyouko Bot':  'BOT'
                         'Kyouko Bot':  'BOT',
   
   
                         // bureaucrat
                         // bureaucrat
                       
                        // Frontier staff
                        'BrettC Frontier':  'FRONTIER'
                     },
                     },
                     $masthead;
                     $masthead;
Line 82: Line 85:
                     $masthead = $( '.UserProfileMasthead' );
                     $masthead = $( '.UserProfileMasthead' );
   
   
                     // remove old rights
                     // remove old rights if not from Frontier
                     $masthead
                     if(rights[ title ] !== 'FRONTIER'){
                        .find( '.tag' )
                        $masthead
                        .remove();
                            .find( '.tag' )
                            .remove();
                    }
                     // add new rights
                     // add new rights
                     $masthead
                     $masthead
Line 99: Line 103:
         },
         },
          
          
        /**
        * Ratings sidebar module (oasis)
        */
        /**ratings: {
            conditional: (
                conf.wgAction === 'view' &&
                conf.wgNamespaceNumber === 0
            ),
            scripts: 'MediaWiki:Wikia.js/ratings.js'
        },*/
     };
     };