User talk:Magog the Ogre/cleanup.js/Archive 1

From Wikimedia Commons, the free media repository
Jump to: navigation, search
Archive This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page.

Feature requests and bug reports

I have the following feature requests and bug reports:

  1. Instead of replacing the edit summary e.g. generated by HotCat with “cleanup”, “+ cleanup” should be appended to it.
  2. Categories should be moved to the bottom of the page.
  3. IMHO when clicking {{own}}, everything there should be replaced by {{own}} (especially Transferred from de.wikipedia; transferred to Commons by User:Boteas using CommonsHelper. for transfers from de.wikipedia. Appending “ (author)” is unnecessary.
  4. For transfers from de.wikipedia adding |migration=relicense to {{GFDL}} is always correct (if it is not together with {{Bild-GFDL-Neu}}).
  5. In some cases (e.g. here) there is the following error: regular expression too complex (line 113).
  6. {{int:license}} might be replaced by {{int:license-header}}.
  7. In some cases, there is no empty line after the license template.
  8. (added on June 16) If there is no license section heading on the page, no filedesc section heading should be added. Otherwise, everything is within the filedesc section (example file).

--Leyo 11:24, 11 June 2011 (UTC)

Regarding #3: I'm thinking a lot of people might become upset if we remove their "transferred to Commons" note. Some people might want attribution. Thoughts? Or did you just want me to forget about Boteas and/or anonymous transfers?
Regarding #4: Please explain. Has de.wp not allowed uploads since before November 1, 2008?
Regarding #5: It works fine for me on Chrome, but it failed on Firefox when I tried that. How often do you experience the problem, and have you noticed any patterns?
Regarding #6: Okay, although they look substantially the same to me.
Regarding #7: I'll fix it ASAP; but for now, just hit the cleanup button twice and it accomplishes the purpose. Face-wink.svg Magog the Ogre (talk) 19:40, 16 June 2011 (UTC)

@ #3: Just in case the user is Boteas (see de.wikipedia move to Commons by bot project). The last sentence, however, is independent of the user.
@ #4: In case of a transfer of images uploaded to de.wikipedia after that date, the file description page on Commons looks like this.
@ #5: I use Firefox. It only happened few times.
@ #6: For background information, see COM:VP#int:license or int:license-header.
@ #7: I discovered the hitting twice trick just recently. :-) --Leyo 20:00, 16 June 2011 (UTC)

I think I've finished several. I'll mark them off as I do:
  1. ✓ Done 02:11, 17 June 2011 (UTC)
  2. ✓ Done 04:17, 17 June 2011 (UTC)
  3. a)✓ Done 03:10, 17 June 2011 (UTC)
    b)✓ Done (grudgingly, as I think it was a good feature Magog the Ogre (talk) 05:31, 29 June 2011 (UTC))
  4. ✓ Done 05:41, 29 June 2011 (UTC)
  5.  Not done
  6. ✓ Done 02:11, 17 June 2011 (UTC)
  7. ✓ Done 02:11, 17 June 2011 (UTC)
  8. ✓ Done 02:56, 17 June 2011 (UTC)
Magog the Ogre (talk) 02:11, 17 June 2011 (UTC)
I've done #2 with a caveat: if there are any comments next to the categories, they will get eaten up and tossed out. For example:
text
[[Category:test]] <!-- we need this category on this file or else it will all fail! -->
[[Category:test2]] <!-- I like this second comment -->

becomes

text
 <!-- we need this category on this file or else it will all fail! -->
 <!-- I like this second comment -->

[[Category:test]]
[[Category:test2]]
I can work to make this a bit more user friendly later, although it will never be careful (the placement of the comments can be ambiguous). But for now, please just keep on eye on it. Magog the Ogre (talk) 04:17, 17 June 2011 (UTC)

Thanks a lot. It seems to work fine.

Source is emptied completely in some cases (check e.g. here), which is not ideal.

For #6 I suggest also converting existing {{int:license}} into {{int:license-header}}. --Leyo 10:23, 18 June 2011 (UTC)

✓ Done I think I got what you wanted me to here! Magog the Ogre (talk) 09:23, 25 June 2011 (UTC)
✓ Done 09:13, 25 June 2011 (UTC)
Magog the Ogre (talk) 03:59, 25 June 2011 (UTC)

More

  1. Show cleanup above {{own}} in the toolbox; only show {{own}} in the edit mode.
  2. “author=” is added to license template without a value. Clicking cleanup twice leads to a double insertion (check e.g. here).

--Leyo 10:23, 18 June 2011 (UTC)

  1. a)✓ Done 03:54, 25 June 2011 (UTC)
    b)✓ Done 08:52, 25 June 2011 (UTC)
  2. ✓ Done 09:59, 25 June 2011 (UTC)
Adding done/not done templates above to give update on the status. Magog the Ogre (talk) 03:54, 25 June 2011 (UTC)
Re your last edit: I am unable to read programmer's language. In case this was a question to German users: Our widely known grammar publication, the Duden, says: ph in all words of greek origin photo can generally be substituted by f (that is: Foto). Second part of the word: -graphie vs. -grafie: Both alternatives are valid. I'd prefer -grafie to have consistent spelling in the word Fotografie. --Schwäbin (talk) 09:54, 25 June 2011 (UTC)

Actually, some people have written eigen photo (grammar?), so photographie is entirely plausible. And it wasn't a question, per se, more of a tongue-in-cheek expression of frustration.Face-tongue.svg But in actuality, I was a bit curious, so thank you.Face-smile.svg Magog the Ogre (talk) 10:13, 25 June 2011 (UTC)

Ah okay, sorry, I thought this was a programmer's way to ask for translator's help <g>. Until some years ago, Photographie, short: Photo was written with ‘ph’ in German. But grammar rules changed and so does the language. However, there are still quite a lot of people sticking to the old way of writing. Eigenes Photo ist therefore still acceptable, but not really up to date ;-) --Schwäbin (talk) 11:59, 25 June 2011 (UTC)
Could you add „Eigene Bilder“ to „//own template (internationalization/standardization)“? --Brackenheim (talk) 20:42, 27 June 2011 (UTC)
✓ Done Magog the Ogre (talk) 21:49, 27 June 2011 (UTC)
Thank you! --Brackenheim (talk) 06:36, 28 June 2011 (UTC)
Hi Magog, a user had uploaded this file with commonshelper. I tried to use your script on it, but it wouldn't work. Any idea, where the problem may be? (I guess it is not your script, but the loooong description; tried to do the cleanup manually and failed, too) — Preceding unsigned comment added by Schwäbin (talk • contribs) 18:30, 28 June 2011 (UTC)
It's probably related to request #5 listed above by Leyo; in the meantime, I've fixed it up because I use Chrome which isn't experiencing that problem. Magog the Ogre (talk) 00:07, 29 June 2011 (UTC)
Thank you! Have a big hug, --Schwäbin (talk) 09:20, 29 June 2011 (UTC)
+1. This is a great tool. NNW (talk) 13:57, 29 June 2011 (UTC)
Thanks again for this invaluable script! It should be integral part of the commonshelper. I know you have put a function into the script that handles the license migration. But I am observing difficulties with it, e.g. File:Ratskeller_Güstrow.JPG (I put the |migration=relicense in manually). Any idea? I am working with Firefox 5.0. TIA --Schwäbin (talk) 09:31, 4 July 2011 (UTC)
You have to hit the cleanup button twice Face-blush.svg. I'll have to fix it so that the script does this automatically. Magog the Ogre (talk) 12:22, 4 July 2011 (UTC)
Thank you. And good morning. --Schwäbin (talk) 12:41, 4 July 2011 (UTC)
A bit late, but good morning, and you're welcome for the tool. Face-smile.svg Magog the Ogre (talk) 08:07, 5 July 2011 (UTC)

IE8

Hi, does anybody use this script with IE8? IE patch level 8.0.6001.18702 results in a crash - 100% cpu load. Happen on different (maybe all) files, like File:LeakyBucket.png or File:Anoden allgemein.svg. I guess some regexp troubles, but i'm not able to debug it in more detail. :( - Same cleanup done with Opera (9.x and 10.x) and firefox (different versions) work great. (very nice tool)--Wdwd (talk) 07:33, 4 July 2011 (UTC)

I'll boot into Windows and attempt this on IE8 and IE9 soon and I'll let you know what I come up with. Magog the Ogre (talk) 12:23, 4 July 2011 (UTC)
Alright, after doing some extensive testing, it's become clear to me that IE8 has some major bugs when it comes to regular expression parsing. They're only somewhat related to the size of the regular expression and the text (e.g., for some example, on some regular expressions it can only handle up to 4 letters in a row before it goes caput). I might be able to work on it in the future, but for now, I'm going to have to ask if you could use a less (*ahem*) buggy browser, namely Firefox or Chrome. Magog the Ogre (talk) 15:52, 4 July 2011 (UTC)

Thank you for the test and verification - it's no problem for me, i can use opera or firefox too. A warning in the header would be fine--Wdwd (talk) 18:51, 4 July 2011 (UTC)

✓ Done Magog the Ogre (talk) 08:05, 5 July 2011 (UTC)

Script down?

Cleanup isn't working at the moment - are you tinkering on it? --Schwäbin (talk) 22:06, 15 July 2011 (UTC)

Haven't touched it in days [1]. Are you not running IE? Have you force reloaded the page? If so, any more info you have will help. Magog the Ogre (talk) 04:51, 16 July 2011 (UTC)
It's running again. Maybe a temporary issue. And no: I'd not even touch IE if you paid me ;-) ✓ Done --Schwäbin (talk) 10:04, 16 July 2011 (UTC) is on Firefox

Attribution in the license template

IMHO an attribution like

Real Name ([[:de:User:User name|User name]] at [http://de.wikipedia.org de.wikipedia])

(real example here) in the license template(s) is too long and probably not what the author would choose. What about

Real Name / [[:de:User:User name|User name]]

or even

[[:de:User:User name|Real Name]]

? IMHO it might be sufficient to have

Real Name ([[:de:User:User name|User name]] at [http://de.wikipedia.org de.wikipedia])

in the author field of the information template. What is the opinion of other users of this script? --Leyo 09:05, 16 July 2011 (UTC)

It depents :) If the original uploader only used Real Name I normaly change it to [[:de:User:User name|Real Name]] because just the real name is the way the uploader likes to get attributed and the link (back) to the de: user page is a service for others to make things clearer. --JuTa (talk) 11:40, 16 July 2011 (UTC)
As I said here User_talk:Magog_the_Ogre#Botmovecheck (please read) - I think we should be careful with inserting a specific attribution. Cheers --Saibo (Δ) 14:24, 16 July 2011 (UTC)
The script only adds the {{self}} template if the own function is called - either by the user pressing the link, or by it reading something it recognizes in the source. What would everyone propose is the best way to handle this issue? Leave out the {{self}} altogether and go with Real Name / [[:de:User:User name|User name]]? Magog the Ogre (talk) 22:54, 16 July 2011 (UTC)
Sorry, I do not know what you mean. Can you make wiki code examples? I suggest to leave away any attribution parameter. And fill the author field like it was filled at the source wiki (if there was the username or real name but not linked: then link it to the user page). Cheers --Saibo (Δ) 03:08, 17 July 2011 (UTC)
Hi Magog, came across a funny issue: File:Rathaus_meckenbeuren.jpg. License now says Attribution: The original uploader, but in the original file description, uploader put eigen into the Author box (which is stupid, but well, if he want's to be named that way...). --Schwäbin (talk) 21:44, 31 August 2011 (UTC)
✓ Done - I threw together a fix for now. It's not perfect, but it will catch most of the errors in that circumstance. Magog the Ogre (talk) 06:23, 2 September 2011 (UTC)
Thanks, but the result is wrong in my opinion. It should read eigen in the license template. This is what the uploader put into the author field and what he wants to be referred as (even though it is stupid, but well...). At the moment, it says username at de.wikipedia, which is what the Commonshelper added when transferring, not what the original uploader named himself. --Schwäbin (talk) 07:50, 2 September 2011 (UTC)
IMO it is correct, because de.wp read "I, the author of this work", and we are simply changing "I" to "this user". We are not quoting him, we are telling the reader at Commons who he is. The author field still reads what the original author input. Do you still disagree? Magog the Ogre (talk) 23:09, 2 September 2011 (UTC)
Somehow I don't seem to understand, sorry. Probably my poor English. If I lookup File:Rathaus_meckenbeuren.jpg, the original uploader provided the name of the author as “eigen”. But in the license template, it is shown as Mecka1 at de.wikipedia, der Urheberrechtsinhaber dieses Werkes, veröffentlicht es hiermit unter der folgenden Lizenz. Namensnennung: Mecka1 at de.wikipedia. (This is the text shown to people who have chosen German as their language). There is no I nor Ich, there is no eigen. But there is Mecka1 at de.wikipedia, a text that was not given by the original uploader, but “invented” by the Commonshelper. --Schwäbin (talk) 09:02, 3 September 2011 (UTC)
You may not have understood because I was lazy and didn't proofread, and I used some improper grammar. Sorry. In any case, why must we use the text used by the uploader at the time? The original template read Ich, der Urheberrechtsinhaber dieses Werkes, veröffentliche es hiermit unter der folgenden Lizenz:, and the uploader didn't choose that wording either (i.e., it was machine generated after s/he chose the option indicating that s/he was the author). Thus it is not a stretch IMHO to change Ich to Mecka1 at de.wikipedia - we are simply rewording the original template because Ich would be silly (I in fact am not the original uploader; I am only the uploader at commons). Do you understand? Magog the Ogre (talk) 18:17, 4 September 2011 (UTC)

author=unbekannt

It would be great, if |author=unbekannt could be replaced by |author={{unknown|author}}. It occurs in logos (that do not meet the threshold of originality) and very old images (where the author is unknown, but he/she has to be dead for more than 70 years) transferred from de.wikipedia. --Leyo 06:48, 22 July 2011 (UTC)

✓ Done Magog the Ogre (talk) 07:39, 22 July 2011 (UTC)
That was quick, thank you. --Leyo 07:48, 22 July 2011 (UTC)

Want more example files?

Hi Magog, I was wondering if you'd like to have some more input to pimp your tool even a little more?

1) I came across File:Ugarit_01.jpg and hit the cleanup button. I found that the picture is missing headers for description and licence. Your tool does change a header from {{int:license}} to {{int:license-header}}, but maybe it does not “invent” the headers if there a none yet. Could be a nice feature, but I don't know if it is technically feasible. Do I expect too much? (unfortunately a frequent mistake of mine)

2) File:Mifu01.jpg The date given in this file will produce a wrong cleanup (turning it into October 1097) --Schwäbin (talk) 08:12, 28 July 2011 (UTC)

1) I looked at that file and made a change [2], and it created no headers. Did you want it to create a header?
2) ✓ Done Magog the Ogre (talk) 23:16, 28 July 2011 (UTC)

Yes, indeed, I thought it would be useful to have headers as it is the rule nowadays with newly uploaded pictures. But tell me if that is just cosmetic reasons, I am not sure how important the headers are to automated technical processes. And thank you <curtsy> for no. 2 :-) --Schwäbin (talk) 08:08, 29 July 2011 (UTC)

I appreciate your humility, but there's no need to walk on eggshells around me Face-smile.svg. In any case, the script would have to intelligently detect the first instance of a license under the {{Information}} template; that shouldn't be overly hard, although it would probably miss some.
The other thing it might do is move the license templates from the |permission= field down below; this wouldn't be any more difficult than what I described above, but it might be more controversial (I've been reverted at least once for doing that by hand... some users seem to prefer brevity). But if you think it should go in, I'm not picky, I'll just put it in and blame any controversy on you Face-wink.svg. Magog the Ogre (talk) 05:40, 30 July 2011 (UTC)

(With a fresh <hehe> to your last sentence) Thank you for explaining the pros and cons. I'd like to hear some more opinions to the possible side effects. Hello out there! --Schwäbin (talk) 07:03, 30 July 2011 (UTC)

FYI, it would be difficult for images like this: File:Top Gun (Layout).JPG. If this page didn't have the license-header section, the script wouldn't know whether to put the license-header above "The only requirement of this license" or after it; as such, it will not always work, because I'll only be able to program it in when it's unambiguous. Magog the Ogre (talk) 01:34, 31 July 2011 (UTC)
Please don't "move the license templates from the |permission= field down below". If there is only a short license I move it up inside the perm. fiel, when I make a cleanup. ;) Heading are so awfully non-semantic. I think we should even extend the info template to cover all cases of file description pages - so that everything can be moved into. Would enable easy restyling/reordering or even collapsing on user's preference.
If you just want to insert a heading on a page where the lic. tmpl. is below the info template: no problem - why not? I also do it manually. Cheers --Saibo (Δ) 02:56, 31 July 2011 (UTC)

Thank you for your opinion, even if contrary to mine ;-) I thought that filling in headings would make files even more semantic; this being the reason why I asked for this feature. You say, they get even non-semantic? --Schwäbin (talk) 16:01, 31 July 2011 (UTC) likes to have everything nice and clean...

✓ Done (I had been working on it already when you typed that up). If you experience any bugs or frustrations, let me know. Magog the Ogre (talk) 03:29, 31 July 2011 (UTC)
Hello Magog, the automatic edit summary should be applied only when something has changed. -- πϵρήλιο 03:48, 31 July 2011 (UTC)
Oh, by the way: I do not use it. ;) --Saibo (Δ) 04:58, 31 July 2011 (UTC)

? Didn't get that one. Changes by Magog's script will only work when someone hits the cleanup button. Or what was your concern? --Schwäbin (talk) 16:01, 31 July 2011 (UTC)

I use some other scripts, they do also add automatically a comment in the “edit summary”, but only if there “really” is something. -- πϵρήλιο 19:27, 31 July 2011 (UTC)
✓ Done πϵρήλιο's request. Magog the Ogre (talk) 20:15, 31 July 2011 (UTC)
Works, tnks! -- πϵρήλιο 15:37, 12 August 2011 (UTC)

re@Saibo's comment above: It seems that we have the opposite oppinion here. In my opinion, the only template that should be after |permission= is the OTRS ticket. Everything else should be below the information template. --Leyo 11:05, 2 August 2011 (UTC)

Well, then make a license= parameter. ;) even better - as I said - I would like the whole file page to be free from manual headlines and layout (not possible as of now). ... If you do not put anything inside "permission" it displays "see below" - so why not move the stuff below up? And why is beneath the permission field a link to Commons:Reuse? Anywy, here is definitely the wrong place to discuss this. :) Viele Grüße --Saibo (Δ) 01:38, 3 August 2011 (UTC)
Hello (and thanks for this good support here :)) another suggestion, I see offten <!--{{ImageUpload|full}}--> which also can be removed ({{ImageUpload|...}}). Greetings -- πϵρήλιο 15:37, 12 August 2011 (UTC)
Wait, so do you want me to remove the text only when it's inside a comment tag, or always remove the template? Magog the Ogre (talk) 05:18, 13 August 2011 (UTC)
Remove it anyway (see Template:ImageUpload). --Leyo 12:19, 13 August 2011 (UTC)
Right; but it would be helpful if I had some examples of how it's normally commented out (if it is), just so I can get the proper spacing. It's not critical, but it would be helpful. Magog the Ogre (talk) 12:35, 13 August 2011 (UTC)
I came across that a few times: File:Nudelsalat klassisch.JPG, File:Einbände.jpg, File:2008-09-14 Osterley GardenHouse.jpg. --Schwäbin (talk) 16:24, 13 August 2011 (UTC)

New {{own}} functionality

I've updated the {{own}} button to place information within the (Original caption:...) text. If you didn't want certain text to sit inside of clause, then cut it, press the own button, and then paste it. If anyone really dislikes the new functionality (and can explain why) or has any bugs, let me know. Magog the Ogre (talk) 05:17, 13 August 2011 (UTC)

The {{own}} button did not result in any changes in all cases I tried to use it in the last couple of days. --Leyo 15:44, 17 August 2011 (UTC)

Click on this link, and if you click {{own}}, you'll notice it envelops the text, instead of just placing {{own}} before it. Magog the Ogre (talk) 11:33, 25 August 2011 (UTC)

It does not do anything. I get the error message “text.replace is not a function” in the console. --Leyo 12:47, 25 August 2011 (UTC)
Just to make it easier to find the problem: It works for me with Firefox/Windows. --Schwäbin (talk) 13:06, 25 August 2011 (UTC)

Leyo - which browser and operating system are you using? Please include the version number of both if possible. Magog the Ogre (talk) 13:50, 25 August 2011 (UTC)
Also, did you refresh your cache? That might be a problem. Magog the Ogre (talk) 13:50, 25 August 2011 (UTC)

On this computer, I have the old Firefox 3.5.7 and Win XP. Hitting cleanup works by the way. --Leyo 14:55, 25 August 2011 (UTC)

Could you please press ctrl-shift-j when you get the message, and scroll to the bottom of the error dialogue, and copy/paste exactly what you see? Thanks. Magog the Ogre (talk) 15:51, 25 August 2011 (UTC)

Fehler: text.replace is not a function
Quelldatei: http://commons.wikimedia.org/w/index.php?title=User:Magog_the_Ogre/cleanup.js&action=raw&ctype=text/javascript
Zeile: 140
The three German terms are error, source file and line. --Leyo 15:59, 25 August 2011 (UTC)
✓ Done - it was an error sitting in everyone's code but mine. Hence the reason I didn't notice it. I hate it when that happens. Face-blush.svgMagog the Ogre (talk) 08:54, 14 September 2011 (UTC)

is uploader the same as the author?

"is uploader the same as the author?" in your last edit comment of the script page. I hope I understand your question correctly. - The author is equal with the uploader if the uploader uploaded his own work of which he is the author. Otherwise not. If I upload someone else's work the uploader is not the author. Cheers --Saibo (Δ) 19:50, 24 August 2011 (UTC)

Of course. I just rearranged the script to try to figure it out based off the licensing. If it's PD-old or PD-USgov, etc., then it's almost certainly not self created. If the script doesn't think the author is the uploader, then it will erase the author and upload date field, as they're irrelevant. It will have an occasional false positive, however (e.g., File:Bombay-n-moira.png), which is why it's always good to keep an eye on it. If someone gets a false positive, they can always start from the beginning, remove the licensing template, hit cleanup, then readd the licensing template. Magog the Ogre (talk) 11:36, 25 August 2011 (UTC)

"Between" dates

Request conversion of dates using the "between" format to {{other date}}. For example "between 1863 and 1869" would convert to "{{other date|between|1863|1869}}". Kelly (talk) 16:26, 15 September 2011 (UTC)

✓ Done. As always, a caveat: it's not perfect (in fact, I haven't seen any examples in the wild yet, so I don't know how effecive it is). Magog the Ogre (talk) 06:48, 16 September 2011 (UTC)
Nevermind I found one: [3]. Magog the Ogre (talk) 08:11, 16 September 2011 (UTC)

//useless other_versions messages

cleanup = cleanup.replace(/(\|\s*other_versions\s*\=\s*)(?:no|none|nein|yes)\s*\.?\s*\n(\s*(?:\||\}\}))/i, "$1\n$2");

please add 'keine' and '-*' --Akkakk (talk) 09:36, 19 September 2011 (UTC)

What do you mean by -* ? Magog the Ogre (talk) 00:02, 21 September 2011 (UTC)
I think Akkakk just means a hyphen, as you can see in File:Logo Reno.svg: „|other_versions=-“ --Brackenheim (talk) 04:42, 21 September 2011 (UTC)

and multiple hyphens, as "--" or "---" (all seen when moving from de to commons) --Akkakk (talk) 12:57, 22 September 2011 (UTC)

✓ Done Magog the Ogre (talk) 07:32, 23 September 2011 (UTC)

Is it possible to do the same with "|Permission=-" like here? --Brackenheim (talk) 18:05, 19 December 2011 (UTC)

✓ Done Magog the Ogre (talk) 20:56, 19 December 2011 (UTC)
Wow, you're really quick! Thank you! --Brackenheim (talk) 21:23, 19 December 2011 (UTC)

Self-photographed

If the picture is "selbst fotografiert" the script should change it into self-photographed instead of Template:own. Is it possible? --Brackenheim (talk) 14:46, 19 September 2011 (UTC)

Yes; I will work on this. Magog the Ogre (talk) 00:02, 21 September 2011 (UTC)
✓ Done - not well tested; as always, let me know if you encounter bugs. Magog the Ogre (talk) 07:31, 23 September 2011 (UTC)
Thank you! I'm sorry, but I think I've already found a bug: File:Ratekau Langbett-Langenrehm Schild-2.JPG. „Template:own“ is still used there. --Brackenheim (talk) 10:15, 23 September 2011 (UTC)
Great! Now it works! --Brackenheim (talk) 18:58, 23 September 2011 (UTC)
I would prefer if (Original caption: “selbst fotografiert”) was removed (redundant IMHO). --Leyo 06:36, 24 September 2011 (UTC)

On a side note: I asked for internationalization. --Leyo 11:30, 23 September 2011 (UTC)

One more request: Is it possible to remove a text like „<br/> {{#ifeq: {{LOCALTIME}} | 21:00 | | {{NC}} {{Bild-LogoSH}} }}“ you can find on some tranferred logos from de.wiki? --Brackenheim (talk) 19:05, 23 September 2011 (UTC)

I would suggest to wait in this matter. There is an ongoing discussion on de:WD:LFB that might result in altering the template {{Bild-LogoSH}}. --Leyo 06:36, 24 September 2011 (UTC)
Re: Leyo: your question about removing original caption (I hate responding inline): I'd prefer leave it in for the time being, because I may add functionality in the future, and for copyright/legal reasons I'd prefer leave it intact as much as possible. Magog the Ogre (talk) 13:32, 27 September 2011 (UTC)

Could you add „selbst aufgenommen“ to change it into self-photographed? --Brackenheim (talk) 19:41, 24 November 2011 (UTC)

...and „selbst geknipst“? --Brackenheim (talk) 14:51, 25 November 2011 (UTC)
✓ Done Magog the Ogre (talk) 04:45, 26 November 2011 (UTC)

en Wikipedia "user" template

I've noticed that when the en Wikipedia uploader uses the "user" template in the "author" field, the details are not transferring correctly. I think the problem is with Magnus' script but don't know whether it's fixable by yours. Kelly (talk) 03:40, 13 November 2011 (UTC)

Maybe; do you have some examples? Magog the Ogre (talk) 08:13, 13 November 2011 (UTC)

Code Notes

// The following regex seems to miss a \ (or has too many)? But I am not an expert.
var regex = /\|(\s*[Dd]ate\s*\=.*\s*)(\d{4})\s*([\\\\\\/\.\s])\s*(\d{1,2})\s*\3\s*(\d{2})(?!\d)/mg;
 
var regex = /\|(\s*[Dd]ate\s*\=.*\s*)(\d{4})\s*([\\\\\\\/\.\s])\s*(\d{1,2})\s*\3\s*(\d{2})(?!\d)/mg;

But who the hell uses such a date-format? -- RE rillke questions? 18:20, 5 December 2011 (UTC)

It looks like a poorly crafted piece of code that's been sitting there since near the beginning of the script, that I had entirely missed. Just think of it as junk DNA Face-smile.svg. In all seriousness, I'll fix it as some point soon. Magog the Ogre (talk) 09:43, 6 December 2011 (UTC)

Bug with own

In cases where the information in Source of transferred files is not useful, I remove it entirely and click {{own}}. This action, however, destroys the following line (Date). Could this be fixed. --Leyo 11:01, 6 December 2011 (UTC)

✓ Done Magog the Ogre (talk) 05:27, 7 December 2011 (UTC)
If a blank is remaining, the result is as follows: |Source={{own}} ({{original text|1= |nobold=1}})<br/>
The same applies for {{self-photographed}}.
Another really minor thing: =={{int:license-header}}== is added without blanks, whereas == {{int:filedesc}} == does have them. --Leyo 18:11, 1 February 2012 (UTC)
✓ Done and ✓ Done. Magog the Ogre (talk) 18:33, 1 February 2012 (UTC)
Thank you. If we want to be picky: The blank(s) now remain there, to the right of the added template. --Leyo 18:49, 1 February 2012 (UTC)
Wow. That is pretty picky Face-wink.svg. I think there are enough other bugs (of larger importance) that I can fix it when I address another issue. Magog the Ogre (talk) 19:15, 1 February 2012 (UTC)

Logos

Is it possible to remove {{Bild-LogoSH|Commons=ja}} like here? --Brackenheim (talk) 22:27, 10 December 2011 (UTC)

✓ Done Magog the Ogre (talk) 03:01, 11 December 2011 (UTC)
Is it only removed if {{PD-textlogo}} and {{Trademarked}} are present? --Leyo 11:46, 11 December 2011 (UTC)
Yes; you've read that correctly. I did that because it transcludes both templates, so removing it without both would cause content to be lost. Is there a problem there? If so, I'm sure I can put together a quick fix to address it. Magog the Ogre (talk) 05:43, 13 December 2011 (UTC)
No, then it's fine. I just wanted to be sure that we don't end with no (logo specific) license template. --Leyo 08:46, 13 December 2011 (UTC)

New line

The script is adding a new line at the end after running cleanup script. I think you should add a trim statement on the entire text once the cleanup is done. Not anything important, but still might be handy. --Sreejith K (talk) 07:28, 1 February 2012 (UTC)

The software ignores new lines at the end after saving. Try adding a new line onto an existing page, and you'll see it doesn't make any changes. Magog the Ogre (talk) 17:30, 1 February 2012 (UTC)
That's good to know. Thanks. --Sreejith K (talk) 18:43, 1 February 2012 (UTC)

Removal of Add Category Comment

Some of the files I have run the script on has a comment <!--Remove this line once you have added categories--> even when there are categories added to the file. It would be nice if the script removes that if there are categories. See this diff --Sreejith K (talk) 17:57, 3 February 2012 (UTC)

✓ Done. Magog the Ogre (talk) 20:20, 4 February 2012 (UTC)

A few small suggestions

Your script seems not to like uploads by flickr2commons. As you might verify with this example, it does the following “not so ideal” changes:

  • |Date=2008-03-08 15:14 → |Date={{Date|2008|03|08}} 15:14
  • * Uploaded by [[User:User of Tool|User of Tool]] → * [[User:User of Tool|User of Tool]]

I have a few more small suggestions you may decide to consider or not:

  • If the statement in the source field is exactly a translation of {{own}} or {{self-photographed}}, I think that the addition of e.g. ({{original caption|1=selbst fotografiert|nobold=1}}) is redundant. It is IMO sufficient to have it in the original upload log and in the history.
  • {{PD-ineligible|Commons=Ja}} → {{PD-ineligible}}
  • Delete also BILD-GFDL-NEU in the permissions field (example).
  • If a user chose to be attributed with a name that is different from his user name, e.g. [[User:User name|Real Name]], this fact is ignored by the script (example).

--Leyo 22:56, 10 January 2012 (UTC)

  • ✓ Done
  •  Not done - will not be able to fix this until I fix the problem you brought up above
  • Pictogram voting delete.svg Won't fix - it's still useful IMHO, because often times users or bots will improperly add the {{own}} template when it should not be added.
  • ✓ Done
  • ✓ Done
  •  Not done - not yet.
Magog the Ogre (talk) 23:19, 15 January 2012 (UTC)

Thanks. Another suggestion concerning the original upload log:

The original description page is/was [http://de.wikipedia.org/…

might be shortened (and made independent of normal or secure) to

The original description page was [//de.wikipedia.org/…

--Leyo 13:09, 10 February 2012 (UTC)

  • ✓ Done - actually I just made a template out of it. Magog the Ogre (talk) 01:50, 11 February 2012 (UTC)
How about making an internationalized template for Transferred from en.wikipedia to Commons by User:$$$ using CommonsHelper. as well? --Sreejith K (talk) 04:20, 11 February 2012 (UTC)
I made the template: {{Transferred from}}, but it will take a bit to integrate it into the code. Magog the Ogre (talk) 05:39, 11 February 2012 (UTC)
Thanks. Please add “Image” since this term was used instead of “File” a few years ago.
I normally remove the sentence mentioned by Sreejith anyway. IMO it is sufficient to have this information in the history. --Leyo 23:41, 11 February 2012 (UTC)
Add image to what? Magog the Ogre (talk) 00:50, 12 February 2012 (UTC)
As an alternative for “File” to the regexp string. --Leyo 01:05, 12 February 2012 (UTC)
Tested the new change with a few files. Most of them had "Image" instead of "File" and so the template was not replaced with the said text. --Sreejith K (talk) 17:34, 12 February 2012 (UTC)
✓ Done Magog the Ogre (talk) 04:42, 13 February 2012 (UTC)
→ Subdiscussion moved to Template talk:Original description. --Leyo 18:41, 21 February 2012 (UTC)

Is it possible to make changes like that with your script? --Brackenheim (talk) 13:28, 21 February 2012 (UTC)

it should be catching that already, but apparently there is a coding bug; I will work on it. Magog the Ogre (talk) 16:45, 21 February 2012 (UTC)
✓ Done. I've fixed it, but it's a very narrow fix: it ignores only endashes in front of the signature. Magog the Ogre (talk) 00:40, 25 February 2012 (UTC)
Thank you! It works... ;-) --Brackenheim (talk) 16:34, 26 February 2012 (UTC)

Template:OTRS

Hello! When cleaning up the script keeps this template as it was in de:WP, e.g. {{OTRS|2011121410016628|14. Dezember 2011|--[[:de:Benutzer:Krd|Krd]] 20:26, 14. Dez. 2011 (CET)}} [4]. That gives a wrong link to the ticket: Link zum Ticket: https://ticket.wikimedia.org/otrs/index.pl?Action=AgentTicketZoom&TicketNumber=14. I think it would be better the cleanup would delete the date and the signature inside the template. Or am I the only one with this problem? NNW (talk) 11:35, 2 February 2012 (UTC)

I do not think the template {{OTRS}} should be used like that. The template should be {{PermissionOTRS}} if the username also need to be added in the template. --Sreejith K (talk) 12:11, 2 February 2012 (UTC)
The only problem is the incorrect order: In the case of this newly transferred file, the link works fine. --Leyo 13:00, 2 February 2012 (UTC)
Did the template appear correctly while at de.wp? It's possible the OTRS volunteer typed out the information wrong. Magog the Ogre (talk) 19:05, 2 February 2012 (UTC)
Yes, it appeared correctly. For the template in de-WP it does not matter if you switch parameter 1 and 2, the result is the same. --Leyo 22:55, 2 February 2012 (UTC)
Pardon my laziness, but reading the wikicode on {{OTRS}} is giving me headaches. How should the OTRS example used above be fixed? Magog the Ogre (talk) 18:42, 3 February 2012 (UTC)
The version in de-WP is even worse. ;-) --Leyo 19:31, 3 February 2012 (UTC)
I figured that much, if it explicitly checks for values on de.wp. Anyway, I still need to know how to fix it. Magog the Ogre (talk) 00:53, 4 February 2012 (UTC)
If it's too complicated, just forget it. It's no severe problem and can be fixed manually in no second. NNW (talk) 18:52, 4 February 2012 (UTC)
✓ Done. Magog the Ogre (talk) 20:31, 4 February 2012 (UTC)

See COM:BWR#Problem with Template:OTRS. --Leyo 16:51, 21 February 2012 (UTC)

After improving Template:OTRS, it is no longer needed to fix the OTRS cases discussed above. --Leyo 08:34, 7 March 2012 (UTC)

Review templates

Would it be possible to have the script automatically move the templates {{Flickrreview}} and {{LicenseReview}} into the "permission" field? Kelly (talk) 21:34, 22 February 2012 (UTC)

They should better be in the license section IMO. --Leyo 23:58, 22 February 2012 (UTC)
Hmmm - don't have a strong opinion, but I think other templates like the OTRS ones are placed in the "permission" field. Kelly (talk) 00:01, 23 February 2012 (UTC)
I agree with Leyo --Sreejith K (talk) 02:49, 23 February 2012 (UTC)


GFDL-user-en-with-disclaimers

Would it be possible for the cleanup script to convert {{GFDL-user-en-with-disclaimers}} into {{self|author=(author)|GFDL-with-disclaimers}}? Couple minor housekeeping issues is why I ask - the migrated CC license in this template does not attribute the author, and sometimes the attribution is different from the author name, which is why I would like to use the "attribution" field available in the "self" template. Also, I think it's just good practice from a standardization standpoint as well.

No need to make this a big priority. Kelly (talk) 23:07, 24 February 2012 (UTC)

I don't understand your request at all. Why is this needed? This is actually automatically by the template: just look at the source: [5]. Magog the Ogre (talk) 00:19, 25 February 2012 (UTC)
As for the attribution being different: this is only copying what it originally read on English Wikipedia, where the self tag was not used. Magog the Ogre (talk) 00:25, 25 February 2012 (UTC)
No prob - only occasionally the template doesn't fit the en license, I can work it manually. Thanks! Kelly (talk) 00:56, 25 February 2012 (UTC)
Like where? Magog the Ogre (talk) 01:17, 25 February 2012 (UTC)
It crops up in instances where the uploader says things like "Photo by John Smith" but their en Wikipedia name is "Wikiuser". The GFDL-user-en-with-disclaimers template doesn't have any options for giving attribution text like "self" does. Like I said, it's rare enough that I can do it manually. Kelly (talk) 01:43, 25 February 2012 (UTC)
I think someone brought up this problem above, and I rejected it. The idea is that at English Wikipedia, the page read something like this: |author=John Smith (...) I, the copyright holder of this work.... You'll notice it doesn't say "Jon Smith, the copyright holder of this work." As such, when we put in the username, we're just changing the word "I" to the words that we have to change, and when we do so, we're doing it in our own way, not presuming that the uploader would want it to read exactly this way on Commons. Does that make sense? Magog the Ogre (talk) 02:05, 25 February 2012 (UTC)
I see what you're saying. I dunno - I think all these custom templates like PD-self and GFDL-self and GFDL-self-with-disclaimers (which is basically the source template for GFDL-en-with-disclaimers) make lives for programmers difficult. It would be good to see all licenses for self-published work simplified. Kelly (talk) 02:40, 25 February 2012 (UTC)


parse_comments_nowikis / rebuild

Hi, I just wanted to let you know that I've build an object factory for this. You can see it in action in MediaWiki:VisualFileChange.js/exec.js (search for A powerful and easily extensible way to preserve certain areas during regex-replaces). The object then handles all operations. Cheers -- RE rillke questions? 20:39, 6 March 2012 (UTC)

That is nice. I just saw a bot yesterday go and goof up a bunch of upload logs (grr). Magog the Ogre (talk) 20:57, 6 March 2012 (UTC)

Author field emptied

Why is the author field emptied completely in this case? --Leyo 09:19, 21 March 2012 (UTC)

Probably regex that is too greedy. I have absolutely no time or will to fix it and likely won't for a while; be my guest? Magog the Ogre (talk) 03:27, 22 March 2012 (UTC)

My skills in regex and JS are clearly too limited to be able to do it myself, unfortunately. --Leyo 10:09, 29 March 2012 (UTC)

Maybe I can get it done now that I'm a bit less busy. I just needed (and need) some extra time. Face-smile.svg Magog the Ogre (talk) 15:30, 29 March 2012 (UTC)
✓ Done - better late than never. Magog the Ogre (talk) 07:43, 14 April 2012 (UTC)
Thank you. --Leyo 10:37, 14 April 2012 (UTC)

Removing template loop

See this diff. Is this something the cleanup script can do? --Sreejith K (talk) 09:17, 29 March 2012 (UTC)

That seems like a pretty unusual construct; have you seen it happen in other cases too? The reason I ask is because it is not worth coding if it will not occur again. But if it does occur with some frequency, I can fix it. Magog the Ogre (talk) 15:31, 29 March 2012 (UTC)

I see this quite a lot when derivativeFX uploads a file here. It does not occur in alarming frequencies, but I do bounce upon them in an average of more than one per day. Category:Pages with template loops lists such files and I have bookmarked it. Now I do this manually, but it will be nice if your tool can do it. --Sreejith K (talk) 16:57, 29 March 2012 (UTC)

✓ Done - this should fix it ~99% of the time; when and if it doesn't, let me know. Magog the Ogre (talk) 18:13, 29 March 2012 (UTC)

Several transfer problems created by upload bot to be fixed by a bot I run

I'm planning to run a bot to fix a lot of the problems addressed by this script. I currently have a draft of the RFB at User:Magog the Ogre/OgreBot 3. Anyone is encouraged at this point to add any frequent problem that can be easily fixed by a bot and that is 100% certain (or nearly 100% certain) not to cause any other problems. Magog the Ogre (talk) 10:29, 26 April 2012 (UTC)

Pictogram voting question.svg Question What is the criteria for picking the pages for cleanup? Are you planning to scan Category:Files moved from en.wikipedia to Commons requiring review? --Sreejith K (talk) 19:29, 6 May 2012 (UTC)
No, I plan to try to find all of the files that have been transferred to Commons by bot. I'm thinking of doing it based on transclusions of {{original upload log}} (~300K transclusions); if this turns out to be too extensive, I am open to other ideas. Magog the Ogre (talk) 21:43, 6 May 2012 (UTC)
Note that bot transfer errors may differ quite a lot depending on which project an image was moved from. For example, if you move a file from Japanese Wikipedia, Commons Helper just puts everything on the Japanese file information page in the Description field in the {{Information}} template, which can look quite strange (see example at Special:PermanentLink/63732840). After moving something with Commons Helper from Japanese Wikipedia, you obviously need to fix other things than what you would normally fix after moving something from English Wikipedia. Moves from other projects may be subject to other bugs. Would the bot be confused if it finds non-English errors?
In fact, these double "{{Information |Description={{ja|1={{Information" tags is one of the reasons to why I switched from Commons Helper to w:WP:FTCG when moving files to Commons. (Another reason: Commons Helper refuses to move files with Japanese file names, making it impossible to move many files.) --Stefan4 (talk) 22:15, 6 May 2012 (UTC)
Please add this as a request for fix on the page. I can't fix it if I don't know about it. Magog the Ogre (talk) 22:23, 6 May 2012 (UTC)

crash (bug?)

With this File:Rhein-Sieg-Kreis-Wappen.png (testing Chrome 18 on Win7). Readjustable? -- πϵρήλιο 11:41, 5 May 2012 (UTC)

I encountered this bug as well, and found it has to do with the fact that Chrome poorly handles a certain regular expression in the code (the code doesn't crash; but the amount of time it takes to process is on the order of n2 where n is the number of new line characters; this means it could take hours or days to complete). Given that Firefox doesn't exhibit the same problem, I'm going to mark this as Upstream. If you continue to see the problem exhibited, please let me know and I'll file a bug with Google or with Chromium. Magog the Ogre (talk) 21:41, 6 May 2012 (UTC)

mismatched namespace for author-attributions

Hi, I guess I found a little bug in our script. If an Image tranfered from de: has GFDL, cc-by-sa-3.0 and cc-by-sa-3.0-de licenses you tranlate that to a {{self}} template, which is fine. But the author=... part within this the self-template links to the article-namespace but not to the user-namespace, which is obviously wrong. One example you'll find in the history of File:Arnspitzgruppe02.jpg. here your script is merging the 3 license-templates into one self-template with the incorrect author-information, and here I'm correcting the author-field. Don't bother that I removed the "at [http://de.wikipedia.org de.wikipedia]" as well. I would anyhow appreciate if you could remove that as well within your script because this text is IMHO not a part of the required attribution. But thats a bit a question of "taste" an I know that there ar people with different opinion. You can happily keep that part as it is, but the mismatched namespace should be corrected. Thanks in advance and regards. --JuTa 16:54, 5 May 2012 (UTC)

You're absolutely right. Because I almost exclusively work with en.wp files, I will often miss bugs associated with other wikis. I'll get on this one ASAP. Magog the Ogre (talk) 21:51, 6 May 2012 (UTC)
✓ Done Magog the Ogre (talk) 02:40, 22 May 2012 (UTC)

useful date?

Is it possible to remove the date after the signature like here? Or is there any use/advantage for this? Regards, --Brackenheim (talk) 14:05, 6 May 2012 (UTC)

That's probably a good idea. I'll implement it if I don't have any objections. Magog the Ogre (talk) 21:49, 6 May 2012 (UTC)
✓ Done Magog the Ogre (talk) 02:40, 22 May 2012 (UTC)
I think there's a bug, like here: Only a part of the date is removed. --Brackenheim (talk) 13:21, 23 May 2012 (UTC)
✓ Done FYI this should work for de.wp and en.wp transfers, but it will probably not work for several other languages. Please report as you see it and I'll fix as needed. Magog the Ogre (talk) 18:26, 23 May 2012 (UTC)
Ok, thank you. --Brackenheim (talk) 19:40, 23 May 2012 (UTC)

Interwiki urls

Could you also made interwiki urls as wiki link? Like de.wikipedia - de.Wikipedia -- πϵρήλιο 21:41, 6 May 2012 (UTC)

Interesting idea. Maybe I can amend {{User at project}} for handling "at Language/project" so that it localizes (e.g., at English Wikipedia -> sur Wikipédia Anglais [fr]). Magog the Ogre (talk) 22:00, 6 May 2012 (UTC)
Jear that would be great! -- πϵρήλιο 22:09, 6 May 2012 (UTC)
✓ Done Magog the Ogre (talk) 01:39, 10 May 2012 (UTC)

self self self

I do not know why mediawiki adds templates like these, but I think your script can clean these up. See examples. [6], [7], [8], [9], [10], [11] --Sreejith K (talk) 09:36, 8 May 2012 (UTC)

I really think not. That is a single problem of user Edward Tur, not a problem to check every image. A optimized code must be kept simple for everyone. Anyway I dont think it is to be, to fix all bugs from other faulty scripts. -- πϵρήλιο 11:38, 8 May 2012 (UTC)
Not really. I have seen this before with different uploaders too. I am unable to hunt down them in my contributions list for now, but I assure that this is not a singer user problem. --Sreejith K (talk) 11:43, 8 May 2012 (UTC)
✓ Done Magog the Ogre (talk) 00:08, 10 May 2012 (UTC)

Template:Transferred from

How about modifying the script to use {{Transferred from}} template as well? --Sreejith K (talk) 09:16, 10 May 2012 (UTC)

✓ Done Magog the Ogre (talk) 05:16, 21 May 2012 (UTC)

user at project

The script changed the text inside the license template to use {{User at project}}. See [12]. This is wrong. --Sreejith K (talk) 10:46, 10 May 2012 (UTC)

I personally do not like this template too much: If a user decided to enter his/her “pure” user name in the author field in the Wikipedia file description page, we may assume that this is how they like to be credited. This especially holds true if the user name is the real name. --Leyo 12:34, 10 May 2012 (UTC)
Alright I'll remove it for now until I have it completely working and full-featured. Magog the Ogre (talk) 13:43, 10 May 2012 (UTC)
The thing is: the script is extremely conservative in what it will take for the template. It must be in the form of [[:(langlink):User:(Username)|(Same username)]] at [http://(langlink).(project) (project name text)]. In fact, the username must be shown exactly the same as the link (character for character). So Leyo: your problem will not be a problem with this part of the code. Granted, there are other parts of the code that are improperly clobbering the "real name" and I need to fix those, but they would clobber it whether or not the template is used. Magog the Ogre (talk) 15:10, 10 May 2012 (UTC)
✓ Done (formally marking this for archival purposes). Magog the Ogre (talk) 18:30, 23 May 2012 (UTC)

User:OgreBot 2

Could you add clean ups like this to your script? --Brackenheim (talk) 08:16, 20 June 2012 (UTC)

✓ Done Magog the Ogre (talk) 07:33, 26 June 2012 (UTC)

And now adapt the bot and the script according to your change to the template? --Leyo 21:27, 7 August 2012 (UTC)

✓ Done Magog the Ogre (talk) (contribs) 03:05, 8 August 2012 (UTC)
Thank you. BTW: Is there a specific reason, why there is a space instead of a line break between transferred from and original description? --Leyo 09:23, 8 August 2012 (UTC)
Well a line break is interpreted the same as a space. Or do you mean there should be a double line break or a <br/>? Magog the Ogre (talk) (contribs) 20:06, 10 August 2012 (UTC)
I know that there would be no difference for the appearance of the file description page. I was referring to the source code only. IMO using a new line for every template would make it more clearly arranged. --Leyo 10:35, 11 August 2012 (UTC)

{{original description}}

The "cleanup" link doesn't change the original upload text to {{original description}} here. The script doesn't seem to recognise the %E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB or %E7%94%BB%E5%83%8F namespaces. --Stefan4 (talk) 20:23, 26 June 2012 (UTC)

That's correct; it only recognizes File: and Image: prefixes, because these are the two used by the bots. Did you type that address in manually? Magog the Ogre (talk) 21:50, 26 June 2012 (UTC)
No. I used the "output upload history to file page" checkbox at tools:~magog/oldver.php, since I also uploaded an old version from Japanese Wikipedia at the same time. See here. --Stefan4 (talk) 00:32, 27 June 2012 (UTC)
Ahh. Alright, I'll fix the tool at some point; it's on the list. Face-smile.svg Magog the Ogre (talk) 01:47, 27 June 2012 (UTC)
✓ Done - just fixed this tool instead. Magog the Ogre (talk) (contribs) 18:49, 7 August 2012 (UTC)

Edit summary

Right now the script only adds cleanup as the edit summary, but it might be a good idea to add cleanup using User:Magog the Ogre/cleanup.js as a backlink to this amazing script. That way, we can advertise the script and get more users using this script. --Sreejith K (talk) 18:12, 27 July 2012 (UTC)

✓ Done Magog the Ogre (talk) (contribs) 01:20, 28 July 2012 (UTC)

Additions and a question

Can you please add a conversion for bad author info:

  • |Author=- or |Author=--

becomes

Also, what about making it a gadget? I know it doesn't work in IE8, but if it works in IE9, I think that's OK. Rd232 (talk) 16:51, 7 August 2012 (UTC)

For the first one, I'm not sure I'm comfortable with that. Someone adding a dash might mean they were too lazy to add the author, not that the author is unknown.. I would feel comfortable removing the dash however so that the {{author missing}} template is automatically transcluded.
For the second one, I don't know enough about how to make a gadget. You can work on it if you do. Magog the Ogre (talk) (contribs) 18:45, 7 August 2012 (UTC)
OK. I wanted to clarify the IE issue first - can you respond at MediaWiki_talk:Gadgets-definition#Browser_requirement? Rd232 (talk) 11:33, 8 August 2012 (UTC)

Bug with user category

A part (“Uploaded by”) of a user category was deleted by the script. --Leyo 14:18, 20 December 2011 (UTC)

That one is going to be hard to fix; I'll go for it eventually, but for now just keep your eyes open. Magog the Ogre (talk) 00:44, 21 December 2011 (UTC)