"../../resources/mediawiki.api",
"../../resources/mediawiki.language",
"../../resources/jquery/jquery.arrowSteps.js",
+ "../../resources/jquery/jquery.autoEllipsis.js",
"../../resources/jquery/jquery.badge.js",
"../../resources/jquery/jquery.byteLimit.js",
"../../resources/jquery/jquery.localize.js",
* $( '#robin-hood-daffy' ).arrowSteps();
* </script>
*
+ * @return {jQuery}
* @chainable
*/
$.fn.arrowSteps = function () {
/**
- * Plugin that automatically truncates the plain text contents of an element
- * and adds an ellipsis.
+ * @class jQuery.plugin.autoEllipsis
*/
( function ( $ ) {
// Use a separate cache when match highlighting is enabled
matchTextCache = {};
+/**
+ * Automatically truncate the plain text contents of an element and add an ellipsis
+ *
+ * @param {Object} options
+ * @param {'center'|'left'|'right'} [options.position='center'] Where to remove text.
+ * @param {boolean} [options.tooltip=false] Whether to show a tooltip with the remainder
+ * of the text.
+ * @param {boolean} [options.restoreText=false] Whether to save the text for restoring
+ * later.
+ * @param {boolean} [options.hasSpan=false] Whether the element is already a container,
+ * or if the library should create a new container for it.
+ * @param {string|null} [options.matchText=null] Text to highlight, e.g. search terms.
+ * @return {jQuery}
+ * @chainable
+ */
$.fn.autoEllipsis = function ( options ) {
options = $.extend( {
position: 'center',
} );
};
+/**
+ * @class jQuery
+ * @mixins jQuery.plugin.autoEllipsis
+ */
+
}( jQuery ) );
* Appends something like this to the body...
* <p>You may not get there all in one piece.</p>
*
- * @method
* @param {Object} options Map of options to be used while localizing
* @param {string} options.prefix String to prepend to all message keys
* @param {Object} options.keys Message key aliases, used for remapping keys to a template
* @param {Object} options.params Lists of parameters to use with certain message keys
* @return {jQuery}
+ * @chainable
*/
$.fn.localize = function ( options ) {
var $target = this,
*
* @param {boolean} [instantToggle=false]
* @return {jQuery}
+ * @chainable
*/
$.fn.goIn = function ( instantToggle ) {
if ( instantToggle === true ) {
*
* @param {boolean} [instantToggle=false]
* @return jQuery
+ * @chainable
*/
$.fn.goOut = function ( instantToggle ) {
if ( instantToggle === true ) {