No edit summary Tag: sourceedit |
(LastEdited is a personal-only script.) Tag: sourceedit |
||
Line 50: | Line 50: | ||
header: 'MediaWiki:Custom-css-header/handheld' |
header: 'MediaWiki:Custom-css-header/handheld' |
||
} ); |
} ); |
||
− | |||
− | //########################################### |
||
− | /* ===LastEdited=== (X02) */ |
||
− | |||
− | window.lastEdited = { |
||
− | avatar: true, |
||
− | size: false, |
||
− | diff: true, |
||
− | comment: true, |
||
− | time: false |
||
− | }; |
||
//########################################### |
//########################################### |
||
Line 79: | Line 68: | ||
articles: [ |
articles: [ |
||
'MediaWiki:Common.js/cellTemplate.js', |
'MediaWiki:Common.js/cellTemplate.js', |
||
⚫ | |||
⚫ | |||
− | 'u:dev:MediaWiki:LastEdited/code.js', |
||
'u:dev:MediaWiki:Less/code.2.js', |
'u:dev:MediaWiki:Less/code.2.js', |
||
⚫ | |||
⚫ | |||
] |
] |
||
}); |
}); |
Revision as of 20:20, 21 August 2017
/*
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'
} );
//###########################################
/* ===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',
'u:dev:MediaWiki:Less/code.2.js',
'u:dev:MediaWiki:Standard_Edit_Summary/code.js',
'u:dev:MediaWiki:WallGreetingButton/code.js'
]
});