Content deleted Content added
-2.3 |
-2.6 |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1:
/// Gadget-pageLinkHelper.js
// Some minor link helpers
///
// ResourceLoader: compatible;
// dependencies: user, user.options,
Line 14:
( function ( mw, $ ) {
"use strict";
var Version = -2.
Sign = "pageLinkHelper",
Signature = "ext.gadget." + Sign,
Line 126:
// > Sign
// >< Env
//
var r, // = undefined
sequence, suitable, $anchor, $clear;
Line 145:
switch ( Env.skin ) {
case "cologneblue" :
suitable = "#firstHeading";
sequence = "after";
break;
case "modern" :
suitable = "#contentSub";
sequence = "before";
break;
case "monobook" :
case "vector" :
suitable = "
sequence = "prepend";
break;
} // switch Env.skin
$anchor = $(
}
if ( ! $anchor.length ) {
Line 440:
// mw.loader.using()
// (OPTS.fire)
//
var rls;
if ( mw.loader.getState( Signature ) !== "ready" ) {
rls[ Signature ] = "ready";
mw.loader.state( rls );
mw.loader.using( [ "mediawiki.api",
"mediawiki.user",
Line 478 ⟶ 481:
// QQmsg.flat()
// mw.hook()
//
var embed, i, linkUpdate, s;
Env = { skin: false,
Line 494 ⟶ 497:
case "Diff" :
Diff.flip();
break;
case "Mobile" :
break;
case "Whatlinkshere" :
Line 1,499 ⟶ 1,504:
fire();
}( window.mediaWiki, window.jQuery ) );
/// EOF </nowiki> pageLinkHelper/d.js
|