User talk:Greenpickle: Difference between revisions

Line 222: Line 222:


I found a code that will redirect users from the old Pikipedia on wikia to here.  
I found a code that will redirect users from the old Pikipedia on wikia to here.  
<code>
<code>
if ( wgUserGroups === null || typeof( wgUserGroups ) != null && wgUserGroups.join(' ').indexOf( 'staff' ) == -1 && wgUserGroups.join(' ').indexOf( 'helper' ) == -1 && wgUserGroups.join(' ').indexOf( 'vstf' ) == -1 && wgUserGroups.join(' ').indexOf( 'sysop' ) == -1 && wgUserGroups.join(' ').indexOf( 'bureaucrat' ) == -1 ) { window.location = 'http://pikminwiki.com/wiki/' + wgPageName;  
:if ( wgUserGroups === null || typeof( wgUserGroups ) != null && wgUserGroups.join(' ').indexOf( 'staff' ) == -1 && wgUserGroups.join(' ').indexOf( 'helper' ) == -1 && wgUserGroups.join(' ').indexOf( 'vstf' ) == -1 && wgUserGroups.join(' ').indexOf( 'sysop' ) == -1 && wgUserGroups.join(' ').indexOf( 'bureaucrat' ) == -1 ) { window.location = 'http://pikminwiki.com/wiki/' + wgPageName;  
}
}
</code>
</code>
:Put it in Pikmin Wikia's Common.JS and you'll be good to go. {{User:Peanut64/sig}}
:Put it in Pikmin Wikia's Common.JS and you'll be good to go. {{User:Peanut64/sig}}
222

edits