×
Create a new article
Write your page title here:
We currently have 87 articles on Nova Online Wiki. Type your article name above or click on one of the titles below and start writing!



Nova Online Wiki

MediaWiki:Common.js: Difference between revisions

mNo edit summary
mNo edit summary
Line 11: Line 11:
});
});


/** Show username ********************************************************
importArticles({
* The annoying hack used by [[Template:USERNAME]]!
    type: "script",
* Inserts user name into <span class='insertusername'></span>
    articles: [
* Originally by [[wikia:User:Splarka|Splarka]], [[User:Spang]]
        "https://dev.fandom.com/wiki/MediaWiki:InputUsername/code.js"
* New version by [[User:Bizzeebeever]]
    ]
*/
});
$j( function() {
var name = mw.config.get( 'wgUserName' );
if ( !window.disableUsernameReplace && name ) {
$j( 'span.insertusername' ).text( name );
}
 
} );

Revision as of 00:15, 17 July 2024

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

mw.loader.load("https://commons.wiki.gg/wiki/MediaWiki:DiscordIntegrator.js?action=raw\u0026ctype=text/javascript");

$(document).ready(function() { 
    var footerIcon = document.createElement('div');
    footerIcon.id = 'customFooterIcon';
    footerIcon.innerHTML = '<a href="https://herdcowproject.xyz/" title="Hosted by HCP"><img src="https://novaonline.wiki/resources/assets/HerdCowProject.png" alt=""></a>';
 
    $('#footer-places').append(footerIcon);
});

importArticles({
    type: "script",
    articles: [
        "https://dev.fandom.com/wiki/MediaWiki:InputUsername/code.js"
    ]
});