User:PerfektesChaos/js/pageLinkHelper/d.js: Difference between revisions

Content deleted Content added
-1.0
 
-1.1
Line 2:
// Minor link helpers
// ResourceLoader: compatible; dependencies: user, mediawiki.util
/// 2014-12-0506 PerfektesChaos@de.wikipedia
/// Fingerprint: #0#0#
/// <nowiki>
/*jshint bitwise:true, curly:true, eqeqeq:true, forin:false,
latedef:true, laxbreak:true, strict:true, trailing:true,
Line 9 ⟶ 11:
( function ( mw, $ ) {
"use strict";
var VERSION = -1.01,
Env, PLH;
 
Line 24 ⟶ 26:
// mw.util.getParamValue()
// mw.config.get()
// 2014-12-0506 PerfektesChaos@de.wikipedia
var sign = "pageLinkHelperDifflink",
$div = $( "#" + sign ),
Line 54 ⟶ 56:
}
}
show = "[["
+ + mw.config.get( "wgFormattedNamespaces" )[ "-1" ]
+ ":Diff/" + id1
+ + ( id2 ? "/" + id2 : "" )
+ "]]";
$span = $( "<code>" );
$span.text( show );
$div = $( "<div>" );
$div.attr( { "id": sign } );
$div.css( { "float": "right" } );
$div.append( $span );
$container.append( $div );
}
show = "[["
+ mw.config.get( "wgFormattedNamespaces" )[ "-1" ]
+ ":Diff/" + id1
+ ( id2 ? "/" + id2 : "" )
+ "]]";
$span = $( "<code>" );
$span.text( show );
$div = $( "<div>" );
$div.attr( { "id": sign } );
$div.css( { "float": "right" } );
$div.append( $span );
$container.append( $div );
}
}
Line 234 ⟶ 236:
}
}( window.mediaWiki, window.jQuery ) );
/// EOF </nowiki> pageLinkHelper.js