Kairosoft Wiki
No edit summary
Tag: sourceedit
No edit summary
Tag: sourceedit
Line 24: Line 24:
 
target: 'MediaWiki:Common.css',
 
target: 'MediaWiki:Common.css',
 
// this is the page that lists the LESS files to compile
 
// this is the page that lists the LESS files to compile
source: 'MediaWiki:Custom-Common.less',
+
source: 'MediaWiki:Custom-common.less',
 
// these are the pages that you want to be able to update the target page from
 
// 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
 
// note, you should not have more than one update button per page
 
load: [
 
load: [
 
'MediaWiki:Common.css',
 
'MediaWiki:Common.css',
'MediaWiki:Custom-Common.less'
+
'MediaWiki:Custom-common.less'
 
],
 
],
 
// this is the page that contains the comment header for the target page
 
// this is the page that contains the comment header for the target page
Line 39: Line 39:
 
target: 'MediaWiki:Handheld.css',
 
target: 'MediaWiki:Handheld.css',
 
// this is the page that lists the LESS files to compile
 
// this is the page that lists the LESS files to compile
source: 'MediaWiki:Custom-Handheld.less',
+
source: 'MediaWiki:Custom-handheld.less',
 
// these are the pages that you want to be able to update the target page from
 
// 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
 
// note, you should not have more than one update button per page
 
load: [
 
load: [
 
'MediaWiki:Handheld.css',
 
'MediaWiki:Handheld.css',
'MediaWiki:Custom-Handheld.less'
+
'MediaWiki:Custom-handheld.less'
 
],
 
],
 
// this is the page that contains the comment header for the target page
 
// this is the page that contains the comment header for the target page

Revision as of 00:03, 30 January 2016

/*
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:Custom-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:Custom-common.less'
    ],
    // this is the page that contains the comment header for the target page
    // all other comments are stripped during compilation
    header: 'MediaWiki:Custom-css-header/common'
} );
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:Custom-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:Custom-handheld.less'
    ],
    // this is the page that contains the comment header for the target page
    // all other comments are stripped during compilation
    header: 'MediaWiki:Custom-css-header/handheld'
} );

//###########################################
/* ===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',
	]
});