MediaWiki talk:Gadget-QInominator.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search


Uploader/nominator[edit]

Hi, is it possible to mention the name of the uploader when they are different to the nominator of the picture? And thanks for this very useful gadget. I use it a lot when I review Wiki Loves Monuments pictures. Jastrow (Λέγετε) 11:12, 14 October 2012 (UTC)[reply]

Possible bug concerning time zones?[edit]

Hi, I today (or yesterday, depending on the definition) tried to nominate some images using this tool in the period between 00:00 and 02:00 local time, when the UTC date is different from my local date. That didn't work - when I edited the then still current "August 12" section, there was no green bar to let me insert my nomination. When the UTC day was once again the same as my local day, it worked again. I tried setting the time zone to UTC in my MediaWiki preferences but that didn't fix it either. darkweasel94 12:15, 13 August 2013 (UTC)[reply]

Which browser were you using? Did you get any JS error message by any chance? I'll try to reproduce this. --Dschwen (talk) 16:18, 13 August 2013 (UTC)[reply]
Yeah, I'll have to try this tonight, UTC is 6h ahead of my time, so It has to be in about 8h. --Dschwen (talk) 16:20, 13 August 2013 (UTC)[reply]
(Ich antworte auf Deutsch, da wir das ja beide besser sprechen.) Ich verwende FirefoxAurora 24.0a2 (2013-08-05) unter OS X 10.8.4. In die Fehlerkonsole habe ich leider nicht geschaut. darkweasel94 16:29, 13 August 2013 (UTC)[reply]
Ich hab grad nochmal den Quellcode ueberflogen, und ich kann mir ehrlich gesagt nicht erklaeren woher der bug kommen soll. Die Zeit kommt in dem script nicht vor und wird auch nicht benoetigt. Komisch. --Dschwen (talk) 16:35, 13 August 2013 (UTC)[reply]
Ich weiß auch nicht, ob das ein kausaler Zusammenhang ist. Das waren nur die Symptome, aber ich werde es diese Nacht noch einmal probieren. darkweasel94 17:10, 13 August 2013 (UTC)[reply]
Ok, danke, ich werds definitiv auch probieren. --Dschwen (talk) 17:16, 13 August 2013 (UTC)[reply]

Ok, gerade wieder probiert, inzwischen auf FF-Aurora 25.0a2 (2013-08-13). Es passiert offenbar nur dann, wenn sowohl das Auswählen der Bilder als auch das Einfügen in der kritischen Zeitspanne passiert - es hat funktioniert (bei den Bildern aus Brünn), als ich vor Mitternacht die Bilder ausgewählt habe und sie nach Mitternacht auf die QIC-Seite eingefügt habe, aber nicht jetzt bei meinen zwei neuesten Uploads, die ich auch erst nach Mitternacht eingefügt habe. In der JS-Konsole vom Firebug habe ich das bekommen:

[00:50:06.794] Use of getUserData() or setUserData() is deprecated.  Use WeakMap or element.dataset instead. @ resource://gre/modules/XPIProvider.jsm -> jar:file:///Users/$$$/Library/Application%20Support/Firefox/Profiles/w2lruklu.default/extensions/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D.xpi!/bootstrap.js -> jar:file:///Users/$$$/Library/Application%20Support/Firefox/Profiles/w2lruklu.default/extensions/%7Bd10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d%7D.xpi!/lib/requestNotifier.js:64
[00:50:07.628] Use of getPreventDefault() is deprecated.  Use defaultPrevented instead. @ https://bits.wikimedia.org/commons.wikimedia.org/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2CloadingSpinner%2CmwEmbedUtil%7Cmw.MwEmbedSupport&only=scripts&skin=vector&version=20130725T145045Z:48
[00:50:07.750] Use of getAttributeNode() is deprecated. Use getAttribute() instead. @ https://bits.wikimedia.org/commons.wikimedia.org/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2CloadingSpinner%2CmwEmbedUtil%7Cmw.MwEmbedSupport&only=scripts&skin=vector&version=20130725T145045Z:34
[00:50:07.750] Use of attributes' specified attribute is deprecated. It always returns true. @ https://bits.wikimedia.org/commons.wikimedia.org/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki%2CSpinner%7Cjquery.triggerQueueCallback%2CloadingSpinner%2CmwEmbedUtil%7Cmw.MwEmbedSupport&only=scripts&skin=vector&version=20130725T145045Z:34

Ich weiß nicht, wie hilfreich das ist - schaut eher weniger danach aus. Interessanterweise funktioniert es im Safari 6.0.5 (8536.30.1) ausgezeichnet. Andere Browser habe ich hier nicht installiert, kann ich also nicht ausprobieren. darkweasel94 22:57, 13 August 2013 (UTC)[reply]

Habs in Chrome probiert und keinen Fehler gefunden, probiere jetzt FF. --Dschwen (talk) 02:18, 14 August 2013 (UTC)[reply]
Mit FF23 unter Linux auch kein Fehler. Die "deprecated" Meldungen sind auch keine harten Fehler, und deuten auch eher auf andere JS Teile. --Dschwen (talk) 02:22, 14 August 2013 (UTC)[reply]
Du koenntest nochmal versuchen ein ?debug=true an die URLs zu haengen. Dann wird unminifiziertes JS geladen und die Fehlermeldungen siend vielleicht etwas klarer. --Dschwen (talk) 02:31, 14 August 2013 (UTC)[reply]
Werde ich heute Nacht probieren. Vielleicht ist es ein OS-X+Firefox-spezifisches Problem - wobei ich mich dann frage, was dort so anders ist. darkweasel94 08:25, 14 August 2013 (UTC)[reply]

Weitere höchst merkwürdige Beobachtung: Genau vor kurzem, kurz vor Mitternacht, sind die Bilder, die ich gestern ausgewählt habe und die da nicht funktioniert haben, wieder beim "Nominate this image for QI"-Menü erschienen, wo sie glaube ich den ganzen heutigen Tag sonst nicht waren (ist mir jedenfalls nicht aufgefallen). Wenn ich aber QIC bearbeite, kommt trotzdem kein grüner Balken, mit dem ich sie einfügen könnte (wobei ich sie gestern eben dann mit dem Safari nominiert habe). darkweasel94 21:57, 14 August 2013 (UTC)[reply]

Was den Vorschlag mit debug=true angeht - es kommt weder auf der QIC-Bearbeitungsseite noch wenn ich das Bild auswähle, irgendetwas Anderes als das, was ich oben gepostet habe. Wahrlich merkwürdig. darkweasel94 22:05, 14 August 2013 (UTC)[reply]
Ich bin mir inzwischen nicht mehr sicher, ob es irgendetwas mit der Uhrzeit zu tun hat. Jetzt gerade funktioniert es nämlich auch nicht - ich weiß dementsprechend wirklich nicht, womit das zu tun hat. darkweasel94 21:09, 15 August 2013 (UTC)[reply]
Meine Vermutung: Race condition die abhaengig von page load times auftritt. Wenn es das ist, wirds recht schwierig zu debuggen sein. Du sagst der gruene Balken wird nicht eingeblendet auf COM:QIC? Wieviel JS debugging kann ich Dir denn zumuten? ;-) --Dschwen (talk) 21:47, 15 August 2013 (UTC)[reply]
Ich kann zwar ein bisschen programmieren, mit JS habe ich aber keine Erfahrung. Aber ist eine gute Gelegenheit, es ein bisschen zu lernen. Ich kanns also einmal versuchen. darkweasel94 22:44, 15 August 2013 (UTC)[reply]
Wenn der gruene Balken nicht erscheint kannst Du im Firebug mal QInominator.install() eingeben. --Dschwen (talk) 23:21, 15 August 2013 (UTC)[reply]

Zwei Beobachtungen bzw. Verbesserungsvorschläge[edit]

Hallo User:Dschwen,

ich habe eben einen Klapps auf die Finger bekommen - da fehlen "angeblich" die Leerzeilen. Kann das der Gadget-QInominator.js beim Einfügen nicht automatisch machen? Das müsste doch nur eine minimale Änderung sein, oder?

Ein zweites kleines Problem ist, wenn ich bei einem Bild die Funktion "Nominate this image for QI" aufrufe (Beispiel: File:Wuppertal - Waldfriedhof Krummacherstraße 06 ies.jpg) kommt sehr häufig der Text (Nomination text) "Ich, der Urheberrechtsinhaber dieses Werkes, veröffentliche es hiermit unter der folgenden Lizenz:. By User:xyz". Das ist natürlich Mist, der eigentliche Beschreibungstext fehlt. Das beobachte ich bei rund 2/3 der ausgewählten Bilder.

--Atamari (talk) 20:45, 16 September 2015 (UTC)[reply]

Das verlinkte Bild benutzt kein Sprachtemplate wie etwa {{De}} oder {{En}}. Danach sucht der nominator. --Dschwen (talk) 14:54, 18 September 2015 (UTC)[reply]
Kann man die zwei Fehler nicht korrigieren? --Atamari (talk) 23:03, 25 September 2015 (UTC)[reply]
Auf die "fehlenden" Leerzeilen wurde ich auch aufmerksam gemacht. Offenbar stört das einige QI-Reviewer. Kann man die einfügen lassen? --MB-one (talk) 13:16, 5 May 2019 (UTC)[reply]

line breaks after each nomination?[edit]

When I add my stored nominations to QIC, it pastes them in, one after another, without skipping a line in between. I've several times seen people go in and insert an extra line break. Today, Michielverbeek requested it specifically. I have no problem with adding an extra line break if it helps, but is there a way to just have the script do this automatically? Thanks. — Rhododendrites talk15:49, 15 October 2017 (UTC).[reply]

I have recently give a positive comment to a photo but I promoted another image from the same nominator. If there would have been an enter between the nominations I probably would not have made this mistake. I am absolutely not angry but a line break works better (for me) --Michielverbeek (talk) 21:00, 16 October 2017 (UTC)[reply]

Fails to grab the description for mobile uploads.[edit]

Mobile uploads, e.g., Sunset over desert outside Santa Fe.jpg, don't have a language switch inside the description field. This is somewhat unusual, but still (so far as I know) valid. But when you click the nomination gadget, the suggested text is "I, the copyright holder of this work, hereby publish it under the following license:", rather than the existing description. I think this is due to not handling the bare description text properly. grendel|khan 05:20, 29 March 2018 (UTC)[reply]

This has been happening with all of my nominations (eg: File:Rock dove (Columba livia) standing on place de la Bourse, Brussels, Belgium (DSCF4429).jpg. I use Special:UploadWizard and the language field (en) is set. --Trougnouf (talk) 10:58, 3 June 2018 (UTC)[reply]


Problems nominating QIs[edit]

I have Qinominator enabled. When I click on the nominate button, this happens:

Great banded grayling (Brintesia circe), Bükk National Park, HungaryNOTE: This image is a focus stacked image consisting of multiple images that were merged using software. As a result, this image underwent digital manipulation which may have included blending, blurring, cloning, and colour and perspective adjustments. As a result of these adjustments, the image content may be slightly different than reality at the points where the images were combined. This manipulation is often required due to lens, perspective, and parallax distortions.I, the copyright holder of this work, hereby publish it under the following license:

Then when I go to QIC and click on the green tab, nothing happens. Anyone got an answer please? Charles (talk) 10:36, 3 September 2019 (UTC)[reply]

More than 5?[edit]

I don't think this tool is being maintained any longer, but just in case:

It would be helpful to allow for more than 5 stored nominations, with the paste function only adding the first 5 (leaving the rest in a queue). I think it's common to upload a bunch of photos at once which might be considered for QI, and it would be nice to be able to just go through them and tag them for QIC at the same time rather than sifting through them again a few days later or leaving them open. — Rhododendrites talk15:00, 11 February 2020 (UTC)[reply]

2017 wikitext editor[edit]

I think it would be great if this gadget supports the 2017 wikitext editor. pandakekok9 04:01, 15 January 2021 (UTC)[reply]

I, the copyright holder of this work, hereby publish it under the following license:[edit]

For a long time now, all nominations include the description field text plus "I, the copyright holder of this work, hereby publish it under the following license:", which I (or we, presumably) have to manually remove each time. Is there a way to fix this? Pinging Dschwen, who I think said recently he'd be around a bit more to maintain this stuff (Dscwhen, there are a few threads with open issues above, too, I think). Thanks! — Rhododendrites talk22:24, 24 February 2021 (UTC)[reply]

Doesn't work with syntax highlighting[edit]

This gadget appears to not function if you've turned syntax highlighting on. Could that be fixed? {{u|Sdkb}}talk 18:51, 24 September 2022 (UTC)[reply]