Kairosoft Wiki
Advertisement

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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/*
Any JavaScript here will be loaded for all users on every page load.
See MediaWiki:Wikia.js for scripts that only affect the oasis skin.
*/

/* Table of Contents
-----------------------
 * (X00) importArticle pre-script actions
 * * (X01) Less
 * * (X02) LastEdited
 * * (X03) Standard_Edit_Summary
 * (Y00) importArticles
*/

//##############################################################
/* ==importArticle pre-script actions== (X00)*/
// The code in this section is for a script imported below

//###########################################
/* ===Less=== (X01) */
window.lessOpts = window.lessOpts || [];
window.lessOpts.push( {
    // this is the page that has the compiled CSS
    target: 'MediaWiki:Common.css',
    // this is the page that lists the LESS files to compile
    source: 'MediaWiki:Common.less',
    // these are the pages that you want to be able to update the target page from
    // note, you should not have more than one update button per page
    load: [
        'MediaWiki:Common.css',
        'MediaWiki:Common.less'
    ]
} );
window.lessOpts.push( {
    // this is the page that has the compiled CSS
    target: 'MediaWiki:Handheld.css',
    // this is the page that lists the LESS files to compile
    source: 'MediaWiki:Handheld.less',
    // these are the pages that you want to be able to update the target page from
    // note, you should not have more than one update button per page
    load: [
        'MediaWiki:Handheld.css',
        'MediaWiki:Handheld.less'
    ]
} );

//###########################################
/* ===LastEdited=== (X02) */

window.lastEdited = {
	avatar: true,
	size: false,
	diff: true,
	comment: true,
	time: false
};

//###########################################
/* ===Standard_Edit_Summary=== (X03) */

window.dev = window.dev || {};
window.dev.editSummaries = {
	css: '#stdSummaries { ... }',
	select: 'MediaWiki:StandardEditSummary'
};

//##############################################################
/* ==importArticles== (Y00)*/
// Imports scripts from other pages/wikis.

importArticles({
	type: 'script',
	articles: [
		'MediaWiki:Common.js/cellTemplate.js',
		'w:dev:WallGreetingButton/code.js',
		'w:dev:Standard_Edit_Summary/code.js',
		'u:dev:LastEdited/code.js',
		'u:dev:Less/code.2.js',
	]
});
Advertisement