' ).text( titleText ).prop( 'href', titleUrl ),
bylines = this.getBylines( info.author, info.source );
creditFormat = 't';
creditParams = [ this.getOuterHtml( $title ) ];
if ( bylines.html ) {
creditFormat += 'b';
creditParams.push( bylines.html );
}
if ( info.license && info.license.plain.length ) {
creditFormat += 'l';
creditParams.push( info.license.plain );
}
if ( info.siteName ) {
creditFormat += 's';
creditParams.push( info.siteName );
}
creditParams.unshift( 'multimediaviewer-html-embed-credit-text-' + creditFormat );
creditText = mw.message.apply( mw, creditParams ).plain();
return creditText;
};
/**
* Generates the HTML embed code for the image.
*
* @param {mw.mmv.model.EmbedFileInfo} info
* @param {string} imgUrl URL to the file itself.
* @param {number} [width] Width to put into the image element.
* @param {number} [height] Height to put into the image element.
* @return {string} Embed code.
*/
AFP.getThumbnailHtml = function ( info, imgUrl, width, height ) {
return $( '