Content deleted Content added
-1.0 |
-1.1 |
||
Line 2:
// Minor link helpers
// ResourceLoader: compatible; dependencies: user, mediawiki.util
/// 2014-12-
/// 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.
Env, PLH;
Line 24 ⟶ 26:
// mw.util.getParamValue()
// mw.config.get()
// 2014-12-
var sign = "pageLinkHelperDifflink",
$div = $( "#" + sign ),
Line 54 ⟶ 56:
}
}
show = "[["▼
+ ":Diff/" + id1▼
+ "]]";▼
$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
|