MediaWiki:Common.js/welcomeModule.js

// Moduł "Witaj na wiki" // oryginał by Vuh

function hasGroup(group) { for (var i in wgUserGroups) { if (wgUserGroups[i] == group) return true; }   return false; }

function showUserMessage { if (hasGroup('user')) { $('.WikiaRail .WikiaSearch').after(           $(' ').css({'text-align':'center'}).addClass("module")            .append( $('Welcome on BlazBlue Wiki! ').css({'margin-bottom':'10px'}), $(' ')               .append(                    $('', {'href':'/wiki/BlazBlue Wiki:Rules'}).text('Terms of Use'),                    $(' • '),                    $('', {'href':'/wiki/BlazBlue Wiki:FAQ'}).text('FAQ'),                    $(' • '),                    $('', {'href':'/wiki/Category:Help'}).text('Help'),                    $(' • '),                    $(' '),                   $('', {'href':'/wiki/Special:RecentChanges'}).text('Recent Changes'),                    $(' • '),                    $('', {'href':'/wiki/BlazBlue Wiki:Sandbox'}).text('Sandbox'),                    $(' • '),                    $('', {'href':'/wiki/Special:Forum'}).text('Forum')                ), $('   '), $(' ', {'id':'WelcomeButtons'}) .append(                   $(' ')                    .append( $(' ')                       .append(                            $('', {'href':'/wiki/Special:Contributions','title':'Contributions'}).text('Contributions').addClass("wikia-button secondary").css({'font-size':'11px','margin':'8px 4px'})                        ), $(' ')                       .append(                            $('', {'href':'/wiki/Special:Following','title':'Following pages.','class':'wikia-button secondary'}).text('Following pages').css({'font-size':'11px','margin':'8px 4px'})                        ) )               )            )        );    }; } addOnloadHook(showUserMessage);