User talk:MarkTraceur/editDescriptions.js

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

Please leave feature requests and bug reports here!

Bug: contents erased[edit]

Hi Mark,

On Category:Wikimania 2014, editing the description opens an empty textbox.

Thanks for the tool :)

Cheers, Jean-Fred (talk) 12:44, 3 September 2014 (UTC)[reply]

Ah, because it's an English description, but not part of an image metadata description. Got it. Fixing! --MarkTraceur (talk) 13:48, 3 September 2014 (UTC)[reply]
I believe this was ✓ Done by disabling description editing on non-image pages. --MarkTraceur (talk) 16:09, 14 November 2016 (UTC)[reply]

adding missing language information[edit]

✓ Done — Preceding unsigned comment added by MarkTraceur (talk • contribs) 16:09, 14 November 2016 (UTC)[reply]

Hi, thanks for the script, looks like this might be really useful. One thing I have noticed: Currently, this works only for descriptions that are within a language template like {{En}}. Occasionally, I come across files that have a description in one single language and no language template at all. When I recognise the language, I would like to add the appropriate language template. In short: would it be possible to tweak your script to do stuff like this in one or two clicks? --El Grafo (talk) 13:28, 9 September 2014 (UTC)[reply]

This is something I want, too! I'll see if I can't hack it out tonight. --MarkTraceur (talk) 14:06, 9 September 2014 (UTC)[reply]
@El Grafo: Well, that took longer than expected, due to some busy days, but I finally got it worked out. See my first edit with the tool and enjoy :) --MarkTraceur (talk) 16:20, 20 September 2014 (UTC)[reply]
Sweet, works like a charm. Thanks! --El Grafo (talk) 21:50, 20 September 2014 (UTC)[reply]
I concur! This is very nice :) Jean-Fred (talk) 19:03, 1 October 2014 (UTC)[reply]

Bug: no content in field[edit]

✓ Done

Hi MarkTraceur, I encountered a bug. Steps to reproduce:

  • Go to File:Emeric_Vallespi.jpg
  • Try edit the en description: an empty text box pops out.
  • (comparatively, editing the French description works fine).

Cheers, Jean-Fred (talk) 09:00, 13 October 2014 (UTC)[reply]

I guess because of the line break. I'll see if I can't fix it sometime this week. --MarkTraceur (talk) 21:29, 14 October 2014 (UTC)[reply]
@MarkTraceur This bug is still present and this is absolutely not an rare case. So the whole tool is only a gambling at end. User: Perhelion 22:36, 12 April 2016 (UTC)[reply]
@Perhelion: , @Jean-Frédéric: : Yeah, this is bound to have issues, based on how it was created (parsing wikitext on the frontend...) and the fact that I don't have much time to maintain it. As our technology evolves, I hope to offer you a more comprehensive tool for this sort of editing, but that is not today. Soon, perhaps! --MarkTraceur (talk) 16:40, 14 April 2016 (UTC)[reply]
Sorry to everyone who waited so patiently for this fix, but it is now ✓ Done. More to come! --MarkTraceur (talk) 16:23, 14 November 2016 (UTC)[reply]

bug: incorrect template insertion[edit]

✓ Done

Hi,

As noticed by Jkadavoor: this edit was broken.

Cheers, Jean-Fred (talk) 11:46, 27 November 2014 (UTC)[reply]

I believe I've fixed this by adding link context handling to the hacky parser thing. If you see more broken edits like this, feel free to re-report. --MarkTraceur (talk) 16:35, 14 November 2016 (UTC)[reply]

Bug: With included templates[edit]

✓ Done

See this edit :-)

Jean-Fred (talk) 16:09, 12 December 2014 (UTC)[reply]

Script now adds braces back in when the language is unset. --MarkTraceur (talk) 16:42, 14 November 2016 (UTC)[reply]

Does not work in a template[edit]

✓ Done

Hi :-). A really cool tool, this is. It works in many cases, but not for File:BASA-237K-1-351-188-Vasil Levski monument in Karlovo.jpg, where the descriptions are in a template. Would it be possible to change it so, that it works in this case, too? By the way, you could also participate at Archives Challenge if you like old pictures. You'll find some hidden gems there. --Лорд Бъмбъри (talk) 10:28, 15 November 2015 (UTC)[reply]

@MarkTraceur: Dear Mark, I come with the same request as above. Can you please check if something can be done in order to have your nice script working for the Template:BASA-image. Thank you very much in advance on the behalf of 10+ eager users :) Spiritia 16:00, 24 November 2015 (UTC)[reply]

@Лорд Бъмбъри and Spiritia: Hi, thanks for this. First, I should note, my initial instinct was to blame Language Select, which is a default-on gadget that hides languages you don't recognize. Turns out I was wrong, but it may still be good to manually turn that gadget off, because I don't know if it will play nice with mine. However, the issue was indeed that {{Artwork}} doesn't use exactly the same format as {{Information}}, so I just fiddled with how it works, and now we seem to be hunky-dory. Let me know if other templates seem to be failing. ✓ Done --MarkTraceur (talk) 17:05, 14 November 2016 (UTC)[reply]
Thanks! This comes right on time for this year's edition! --Lord Bumbury (talk) 17:08, 14 November 2016 (UTC)[reply]

Bug: interwiki-link (bad edit, first try)[edit]

✓ Done

Hello Mark, thank you for the script. My very first try is a bug: Special:Diff/181332031/181332038 Instead I previously used simple Wikieditor-buttons for languages (so I don't need this script really). PS: Maybe you can add also support in-edit-modus!?User: Perhelion (Commons: = crap?)  09:04, 8 December 2015 (UTC)[reply]

== Bad edit ===

Example of bad edit credited to this tool--Jarekt (talk) 04:00, 25 December 2015 (UTC)[reply]

It's the same as one above, which you self edited with the comment "Please check and correct your edits when experimenting with new tools". So my answer is, "Before starting a new discussion ensure there is not already an existing section on the same topic. …" (Very basic talk-page rules) GreetingsUser: Perhelion (Commons: = crap?)  12:57, 25 December 2015 (UTC)[reply]
Yes, I concur, and the above was fixed. --MarkTraceur (talk) 17:06, 14 November 2016 (UTC)[reply]

Default language[edit]

✓ Done

Wouldn't it be better if the default language in the drop-down would be mw.config.get('wgUserLanguage')? At least when adding a new description, it makes sense that the user will try to add one in his own language.--Strainu (talk) 14:44, 28 September 2016 (UTC)[reply]

Good idea, fixed. --MarkTraceur (talk) 17:09, 14 November 2016 (UTC)[reply]

Interaction with Template:MLD[edit]

Hello - today I have experienced that there is a conflict issue with the {{MLD}}. It returns a blank space instead. Please have a look. -- MaxxL - talk 13:12, 7 November 2016 (UTC)[reply]