MediaWiki talk:Gadget-CommonsMedia.js

From Wikidata
Jump to navigation Jump to search

Thumb[edit]

Thanks for the gadget ; but it loads the full resolution of the distant file. Any chance you could grabe a thumb instead ?

Jean-Fred (talk) 19:58, 4 April 2013 (UTC)[reply]

✓ Done thanks for the notice --Bene* talk 13:06, 5 April 2013 (UTC)[reply]
Perfect, thanks. Jean-Fred (talk) 16:22, 5 April 2013 (UTC)[reply]

new version[edit]

I created a new version: User:Fomafix/MediaWiki:Gadget-CommonsMedia.js (diff) --Fomafix (talk) 19:15, 10 April 2013 (UTC)[reply]

Spanish and Galician[edit]

	case 'es':
		mw.messages.set( 'commons-preview-tooltip', 'Mostrar previsualización de esta imagen' );
		break;
	case 'gl':
		mw.messages.set( 'commons-preview-tooltip', 'Mostrar previsualización desta imaxe' );
		break;

Please add these translations --Vivaelcelta (talk) 08:44, 13 May 2013 (UTC)[reply]

Translations for id & min[edit]

{{edit protected}} Please add this translatians.

        case 'id':
                mw.messages.set( 'commons-preview-tooltip', 'Lihat pratayang gambar ini' );
                break;
        case 'min':
                mw.messages.set( 'commons-preview-tooltip', 'Caliak pratonton gambar iko' );
                break;

Thanks in advance,  Ę-oиė  >>> 07:38, 20 July 2013 (UTC)[reply]

✓ Done. --Stryn (talk) 10:52, 20 July 2013 (UTC)[reply]

Fix[edit]

{{Edit request}} Please fix Galician (gl) translation:

Mostrar a vista previa da imaxe

Thanks! --Toliño (talk) 15:32, 19 September 2013 (UTC)[reply]

✓ Done Thanks for the correction. The Anonymouse (talk) 16:39, 19 September 2013 (UTC)[reply]

Refactorings[edit]

{{edit request|MediaWiki:Gadget-CommonsMedia.js}} Please change commonsmediatype to CommonsMediaType since it was changed here in 0.2 (2014-01-29). --Thiemo Mättig (WMDE) 14:55, 12 February 2014 (UTC)[reply]

At the moment there is still the CSS class valueview-expert-commonsmediatype in the items. When is this change live? --Fomafix (talk) 15:12, 12 February 2014 (UTC)[reply]
Oh, I should have checked this. Sorry. The change should become live in about two weeks. --Thiemo Mättig (WMDE) 16:28, 12 February 2014 (UTC)[reply]

Gadgets can't rely on widgets any more[edit]

We recently changed the interface to not initialize all widgets on page load (see bugzilla:54098). Unfortunately several gadgets relied on this (see bugzilla:64842). To fix this gadget please replace the code as follows.

$content.find( '.valueview-expert-CommonsMediaType' ).each( function () {
	var $a = $( this ).find( 'a' );

--Thiemo Mättig (WMDE) 12:06, 14 May 2014 (UTC)[reply]

✓ Done John F. Lewis (talk) 15:46, 14 May 2014 (UTC)[reply]

I was sure I tested the change above but managed to mess it up somehow. Sorry. Please replace as follows.

$content.find( '.valueview' ).each( function() {
	var $valueview = $( this );
	var data = $valueview.data && $valueview.data();
	var dataTypeId = data && data.valueview && data.valueview.options && data.valueview.options.dataTypeId;
	if ( dataTypeId !== 'commonsMedia' ) {
		return;
	}
	var $a = $valueview.find( 'a' );

--Thiemo Mättig (WMDE) 15:15, 16 May 2014 (UTC)[reply]

✓ Done per IRC poke John F. Lewis (talk) 15:50, 16 May 2014 (UTC)[reply]

CSS class name changed[edit]

{{Edit request}} Thanks for this fix. Unfortunately this new class name is a bug and will be reverted. To avoid breaking this gadget again please change the bit to '.valueview, .valueview-valueview' so it will work with both the intended and the broken class name. This fix can be reverted to '.valueview' 30 days after the bug was fixed and deployed. This time is needed to purge all entity pages. Thanks. --Thiemo Mättig (WMDE) 17:09, 20 June 2014 (UTC)[reply]

✓ Done (diff) --Fomafix (talk) 03:13, 21 June 2014 (UTC)[reply]

MediaViewer[edit]

There is a nice version by User:Hoo man over at User:Hoo man/MMV.js that uses the native MediaViewer instead. Changing this over to use that one instead would be a nice upgrade. /Lokal Profil (talk) 11:59, 30 June 2016 (UTC)[reply]

Macedonian (mk) version[edit]

{{Editprotected}} Hello. Can someone put this mk version on the page? Thanks. --B. Jankuloski (talk) 20:34, 18 July 2016 (UTC)[reply]

case 'mk':
	default:
		mw.messages.set( 'commons-preview-tooltip', 'Преглед на сликата' );
		break;
✓ Done Matěj Suchánek (talk) 14:43, 7 August 2016 (UTC)[reply]


Greek (el)[edit]

{{Editprotected}} Hi! Please add this translation for greek.

	case 'el':
		mw.messages.set( 'commons-preview-tooltip', 'Προεπισκόπηση αυτής της εικόνας' );
		break;

Thanks. -Geraki (talk) 11:45, 28 August 2016 (UTC)[reply]

✓ Done Matěj Suchánek (talk) 15:21, 28 August 2016 (UTC)[reply]