Wiktenauer logo.png

MediaWiki talk:Gadget-Gallerypreview.js

From Wiktenauer
Revision as of 01:37, 14 October 2012 by Michael Chidester (talk | contribs) (34 revisions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Yellow=category,green=gallery.

Bugs / Feature requests

nontrivial Categories

  • Question: Why is this always telling me, that i have no nontrivial Categories? I am using it on MW 1.12 in German with the latest GadgetExtension? --Bisato (talk) 12:02, 26 June 2008 (UTC)
    • I am a little bit stupid... Sorry! All Links and so on are hard-mapped to Wikimedia. At this time I changed them and trying to replace the usage of query.php with api.php--Bisato (talk) 09:04, 27 June 2008 (UTC)

Problem?

It's not working right now :( Just keeps on stating "Loading" and does nothing else. Patrícia msg 16:57, 27 August 2008 (UTC)

It's likely died because query.php has died. It will need to be ported to use api.php . I'm taking a look now. --Jeremyb (talk) 17:03, 27 August 2008 (UTC)
so will Gadget-Check-usage.js --Dschwen (talk) 18:02, 27 August 2008 (UTC)
User:Jeremyb/Gadget-Gallerypreview.js seems to be working fine for me. Please test. --Jeremyb (talk) 19:42, 27 August 2008 (UTC)
{{worksforme}}, thank you! Patrícia msg 19:44, 27 August 2008 (UTC)

Problem

Open File:Warsaw Uprising - Stolica 006.jpg and click on category Images from "Powstanie Warszawskie w Ilustracji" in Gallerypreview. You get a message: Category:Images from: This page does not currently exist... --Jarekt (talk) 01:16, 22 June 2009 (UTC)

in general, categories with double quotes in the name do not work, names are truncated at the first double quote. As a workaround you can use single quotes. --Herzi Pinki (talk) 21:14, 3 April 2011 (UTC)

Upcoming Changes

As some of you may know, the Usability Initiative has been running a beta over the past several months. Over 570,000 users across all the Wikimedia projects have tried the beta, with about 80% of users keeping the beta after trying. Approximately 7,500 Commons users have tried the beta with 86% of these users still using the beta. Some data about the beta is available here.

Given these encouraging results, we are planning on making the new usability features the default experience for Commons users during the second week of April. We wanted to make users of the most heavily used gadgets aware of this change. We appreciate that many gadgets rely on custom user scripts and site-specific JavaScript; Our changes are not especially related to multimedia usability, but we need your help to make sure the most used tools are compatible with the new interface. If you encounter issues using the beta, please share your feedback on the dedicated page.

A similar message has been placed on the Admin Noticeboard. Also, you may find more information about the Usability Initiative here.

Thanks in advance. Howief (talk) 04:58, 2 April 2010 (UTC)

Problem and feature

I love this gadget! Two small remarks though :

Jean-Fred (talk) 11:23, 30 July 2010 (UTC)

Gallerypreview gadget doesnt count all files in catetory

I have noticed that when enabled gadget:gallerypreview on Wikimeda Commons in some hidden categories it is not counting all files within. E.g. it counted 498 and 499 files, while at the time I write this there are 2026 and 618 respectively.--Juan de Vojníkov (talk) 09:56, 27 December 2010 (UTC)

Don't show "small text categories"

It would be nice if this gadget didn't preview the irrelevant categories displayed in small text at the bottom of the image page, eg "retouched pictures". Are there more people interested in this? Richardprins (talk) 17:26, 6 August 2011 (UTC)

Several bugs

  • Doesn't work properly on secure.wikimedia.org nor on https://commons.wikimedia.org due to cross-domain restrictions
  • Sometimes a "No galleries found" message is displayed eventhough the image is in fact used on a gallery. Caused by the API query in gp_get_category_list(), it should include "iunamespace=0" (where 0 is the namespace id for "Gallery")
  • There is no block scope in javascript. Don't declare the same var twice in the same scope, instead declare it once and reset.

Krinkletalk 17:17, 18 September 2011 (UTC)

script messes up the link to images which have a " in their name

... like File:"We are what we repeatedly do.Excellence, then, is not an act, but a habit.".jpg. The thumb image displays correctly but it links to http://commons.wikimedia.org/wiki/File: --Saibo (Δ) 18:50, 3 October 2011 (UTC)

Looks like special chars aren't properly escaped. If they would use jQuery to create DOM-elements ($('<a>', { href: yourVariable })), they wouldn't have this problem. -- RE rillke questions? 14:30, 12 November 2011 (UTC)

Copied from my talk page to here:

  1. activate Gallerypreview
  2. visit File:Burning_eyes_smileygree2tra2.png. Hover over the security test file. It is just the file's name. -- RE rillke questions? 10:13, 18 November 2011 (UTC)
Consequently I have disabled the script now. You can fire it up manually for testing by executing this via console:
$(document).ready( init_gallery_preview );
Cheers --Saibo (Δ) 15:06, 18 November 2011 (UTC)

First aid fix done by Rillke. Active again. Maybe it occurs at other places, too. --Saibo (Δ) 16:05, 18 November 2011 (UTC)

The whole script should be rewritten using consequently jQuery and new methods from the mw - object. -- RE rillke questions? 17:47, 18 November 2011 (UTC)

"file_div is null" on file pages without images (minor - just to note)

Open https://commons.wikimedia.org/w/index.php?title=File:Foobartest_no_image_here4445ffg.jpg

In FF 3.6

Fehler: file_div is null
Quelldatei: https://commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-Gallerypreview.js&action=raw&ctype=text/javascript&62966471
Zeile: 429

Probably some checks are missing. Nothing important nor suprising. ;-) --Saibo (Δ) 02:52, 4 January 2012 (UTC)

Should not occur in future. -- RE rillke questions? 15:08, 1 March 2012 (UTC)
I think that this discussion is resolved and can be archived. If you disagree, don't hesitate to replace this template with your comment. RE rillke questions? 15:08, 1 March 2012 (UTC)