Content deleted Content added
-1.26 |
-2.0 |
||
Line 1:
/// User:PerfektesChaos/js/citoidWikitext/core.js
// Execute core functionality for citoid on wikitext source editing
/// 2016-
// ResourceLoader: compatible;
// dependencies: --
Line 17:
( function ( mw, $ ) {
"use strict";
var VERSION = -
MW_LIB = "citoidWikitext",
APIC = { },
BOOK = { },
Line 31 ⟶ 32:
TASK = { },
UTIL = { },
CITWT
Line 44 ⟶ 45:
CITWT.vsn = "";
}
CITWT.vsn
CITWT.type
CITWT.
CITWT
}
CITWT.core.sites = "|dewiki|";
function facilitated() {
// Mark sub-module as ready
// Uses:
// > Sub
// > .type
// < .signature
// mw.loader.getState()
// mw.loader.state()
// mw.hook()
// 2016-01-02 PerfektesChaos@de.wikipedia
var sub = "/" + Sub,
signature;
CITWT.signature = "ext.gadget." + CITWT.type;
signature = CITWT.signature + sub;
if ( mw.loader.getState( signature ) !== "ready" ) {
mw.loader.state( signature, "ready" );
mw.hook( CITWT.type + sub + ".ready" ).fire();
}
} // facilitated()
Line 2,235 ⟶ 2,256:
mode;
TASK.template = PROJ.fire( result );
switch ( typeof TASK.template ) {
case "object":
mode = ( TASK.template[ 0 ][ 2 ] ? 4 : 3 );
break;
Line 2,643 ⟶ 2,662:
// Start regular workflow in edit mode, if appropriate
// Uses:
▲ // > SIG
// > VERSION
// > .signature
Line 2,649 ⟶ 2,667:
// >< .bibRecord
// < .core.site
//
// mw.config.get()
// UTIL.feed()
Line 2,656 ⟶ 2,674:
// mw.loader.using()
// (TASK.fire)
// 2016-
var suitable = "|edit|submit|",
env;
if ( typeof CITWT.core.loaded !== "boolean" ) {
CITWT.core.loaded = true;
|