User talk:Patstuart/Flickrreview.js
Date format
[edit]{{subst:CURRENTDAY}}-{{subst:CURRENTMONTHNAME}}-{{subst:CURRENTYEAR}} → {{subst:Today}} for ISO date formatting.--Kwj2772 (msg) 13:05, 25 April 2009 (UTC)
Line break on copyvio
[edit]{{Editprotected}} When clicking on the copy vio button and it puts in the speedy template, a new line needs to be inserted after the signature, as it breaks the first level 2 header. Or remove the sig all togeather, because I am not even sure why its there, since your name will show in the history and when you add the note to the user's talk page. --Admrboltz (talk) 17:21, 14 September 2009 (UTC)
- Code in question:
document.editform.wpTextbox1.value = "{{Copyvio|Flickr review NOT passed: Author is using NC, ND, or all rights reserved.}} ~~~~" + document.editform.wpTextbox1.value.replace(/({{User:FlickreviewR.*}})|({{(F|f)lickrr?eview}})/g, "");
OK Fixed. Please refresh your browser cache. Thanks. Kwj2772 (msg) 15:17, 15 September 2009 (UTC)
- Works great now, thanks. --Admrboltz (talk) 15:43, 16 September 2009 (UTC)
Script inadvertly removing license in some cases
[edit]Over on Commons_talk:Flickr_files/reviewers it has been brought up that the script can remove the license if placed immediately after the flickrreview tag as per this example. I think the error is in line 6 where the code is
document.editform.wpTextbox1.value = document.editform.wpTextbox1.value.replace(/({{User:FlickreviewR.*}})|({{(F|f)lickrr?eview}})/g, '{{flickrreview|' + wgUserName + '|{{subst:#time:Y-m-d}}}}');
Although I might be wrong on this. Plus I'm not exactly sure how to fix it. -- malo (talk) 21:02, 21 October 2009 (UTC)
This script is outdated and does not work in lots of cases
[edit]So let's discuss how a now one should look like at User talk:ZooFari/licensereviewer.js#Rewrite coming soon. ZooFari's script is able to do the same like this plus some extras. I wrote a script based on ZooFari's one and this can even more help you, like automatically notify the uploader if the review fails. Maintaining 4 different scripts that essentially do the same is not a bright idea. -- RE rillke questions? 20:15, 13 November 2011 (UTC)
Legacy JavaScript
[edit]Template:JS migration
Hello! This script has been detected as using deprecated parameters that need to be replaced with the updated version. Examples include addOnloadHook()
needs to be replaced with $()
; all wgGlobalVariables need to be properly gotten with mw.config.get( 'wgGlobalVariable' )
; and addPortletLink
needs to be called with mw.util.addPortletLink
. Please see MW:ResourceLoader/Legacy JavaScript for details. Thank you. — {{U|Technical 13}} (e • t • c) 00:20, 19 January 2015 (UTC)
New script
[edit]This script has been superseded by:
importScript('User:ZooFari/licensereviewer.js');
I found out the long way. – czar 00:54, 26 July 2015 (UTC)