Date: Sun, 19 Nov 2006 22:44:45 +1100 From: "Brianna Laugher" brianna.laugher@gmail.com Subject: Re: [Commons-l] Javascript magic To: "Wikimedia Commons Discussion List" commons-l@wikimedia.org Message-ID: d20d84ea0611190344l45fd8c7bme632240dfc55417f@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed
But anyway, nice. I put it here: http://commons.wikimedia.org/wiki/MediaWiki:Nocategoryimages.js
I also created a category:User scripts. If anyone else has some nifty Javscript for Commons feel free to add it to this category.
I must say I really like the method of creating extra MediaWiki pages and then getting users to 'include' them in their own Javascript files. It is possibly not the best-scaling solution ever, but it is so much neater than copying a trillion different versions of code around.
Brianna
- - - Question on the above
Should we maybe move the popups and edit counter stuff to there???
Larry Pieniazek Hobby mail: lar at miltontrainworks.com
On 20/11/06, Larry Pieniazek lar@miltontrainworks.com wrote:
Question on the above
Should we maybe move the popups and edit counter stuff to there???
For sure. Anything which is likely to be useful to a bunch of users.
Brianna
Brianna Laugher wrote:
On 20/11/06, Larry Pieniazek lar@miltontrainworks.com wrote:
Question on the above
Should we maybe move the popups and edit counter stuff to there???
For sure. Anything which is likely to be useful to a bunch of users.
Actually I'm a bit wary of the "commonised" version of Popups; I'm not sure that it's been kept in synch with the enwiki "master copy".
We have Interiots edit counter. Its futile to code any kind of java edit counter. We need java script solution to various problems on commons such as license tags. See [[User:Cool Cat/Sandbox]] for a sample. A few popus will be nice to help people doing the cleanup work. I would really like to be able to delete images by clicking a link at the [[COM:DEL]] sub page citing that [[COM:DEL]] sub page for the reason. Or another tool that will add {{delh}} ---- {{delf}} properly for me. - Cool Cat
On 11/19/06, Larry Pieniazek lar@miltontrainworks.com wrote:
Date: Sun, 19 Nov 2006 22:44:45 +1100 From: "Brianna Laugher" brianna.laugher@gmail.com Subject: Re: [Commons-l] Javascript magic To: "Wikimedia Commons Discussion List" commons-l@wikimedia.org Message-ID: d20d84ea0611190344l45fd8c7bme632240dfc55417f@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed
But anyway, nice. I put it here: http://commons.wikimedia.org/wiki/MediaWiki:Nocategoryimages.js
I also created a category:User scripts. If anyone else has some nifty Javscript for Commons feel free to add it to this category.
I must say I really like the method of creating extra MediaWiki pages and then getting users to 'include' them in their own Javascript files. It is possibly not the best-scaling solution ever, but it is so much neater than copying a trillion different versions of code around.
Brianna
Question on the above
Should we maybe move the popups and edit counter stuff to there???
Larry Pieniazek Hobby mail: lar at miltontrainworks.com
Commons-l mailing list Commons-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/commons-l
Cool Cat wrote:
We have Interiots edit counter. Its futile to code any kind of java edit counter. We need java script solution to various problems on commons such as license tags. See [[User:Cool Cat/Sandbox]] for a sample. A few popus will be nice to help people doing the cleanup work. I would really like to be able to delete images by clicking a link at the [[COM:DEL]] sub page citing that [[COM:DEL]] sub page for the reason. Or another tool that will add {{delh}} ---- {{delf}} properly for me.
Ask and ye shall receive:
function closedel(result) { var txt = document.editform.wpTextbox1; txt.value = "{{subst:delh}}\n" + txt.value + "\n----\n" + result + " – ~~~~\n{{subst:delf}}\n"; txt = document.editform.wpSummary; txt.value = "close discussion"; }
I'm somewhat thinking of throwing it into extra-tabs.js, except that it becomes somehat cross-purposed (image tools vs. other stuff)...
As for a "nuke image from COM:DEL page", I'd like to finish quick-delete first.
I am a Script-1, where am I supposed to put that? Monobook? That script should also create a default summary for the delete window assuming I decide to delete. It should remove delete template if I decide to keep. (delete/keep combo box perhaps with excuse field as a text box) - Cool Cat
On 11/23/06, Alphax (Wikipedia email) alphasigmax@gmail.com wrote:
Cool Cat wrote:
We have Interiots edit counter. Its futile to code any kind of java edit counter. We need java script solution to various problems on commons such as license tags. See [[User:Cool Cat/Sandbox]] for a sample. A few popus
will
be nice to help people doing the cleanup work. I would really like to be able to delete images by clicking a link at the [[COM:DEL]] sub page
citing
that [[COM:DEL]] sub page for the reason. Or another tool that will add {{delh}} ---- {{delf}} properly for me.
Ask and ye shall receive:
function closedel(result) { var txt = document.editform.wpTextbox1; txt.value = "{{subst:delh}}\n" + txt.value + "\n----\n" + result + " – ~~~~\n{{subst:delf}}\n"; txt = document.editform.wpSummary; txt.value = "close discussion"; }
I'm somewhat thinking of throwing it into extra-tabs.js, except that it becomes somehat cross-purposed (image tools vs. other stuff)...
As for a "nuke image from COM:DEL page", I'd like to finish quick-delete first.
-- Alphax - http://en.wikipedia.org/wiki/User:Alphax Contributor to Wikipedia, the Free Encyclopedia "We make the internet not suck" - Jimbo Wales Public key: http://en.wikipedia.org/wiki/User:Alphax/OpenPGP
Commons-l mailing list Commons-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/commons-l
Cool Cat wrote:
I am a Script-1, where am I supposed to put that? Monobook? That script should also create a default summary for the delete window assuming I decide to delete. It should remove delete template if I decide to keep. (delete/keep combo box perhaps with excuse field as a text box)
It doesn't handle deletions; it only works on a COM:DEL subpage. Check out my monbook.js to see how I'm calling it.
Ah, I see, would it be possible for this to also handle deletions/keeps? The idea is that the tools to significantly reduce our workload. - Cool Cat
On 11/23/06, Alphax (Wikipedia email) alphasigmax@gmail.com wrote:
Cool Cat wrote:
I am a Script-1, where am I supposed to put that? Monobook? That script should also create a default summary for the delete window assuming I decide to delete. It should remove delete template if I decide to keep. (delete/keep combo box perhaps with excuse field as a text box)
It doesn't handle deletions; it only works on a COM:DEL subpage. Check out my monbook.js to see how I'm calling it.
-- Alphax - http://en.wikipedia.org/wiki/User:Alphax Contributor to Wikipedia, the Free Encyclopedia "We make the internet not suck" - Jimbo Wales Public key: http://en.wikipedia.org/wiki/User:Alphax/OpenPGP
Commons-l mailing list Commons-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/commons-l
Alphax alphasigmax@gmail.com wrote:
Cool Cat wrote:
I would really like to be able to delete images by clicking a link at the [[COM:DEL]] sub page citing that [[COM:DEL]] sub page for the reason. Or another tool that will add {{delh}} ---- {{delf}} properly for me.
As for a "nuke image from COM:DEL page", I'd like to finish quick-delete first.
On de.wp we've got a javascript that helps to delete NowCommons-pictures. Maybe it might help you. It was written by Revvar and it's included in [[w:de:Benutzer:Flominator/monobook.js]].
This script takes the filename from the template and adds it to the deletion reason.
Maybe it helps ....
Best regards,
Flo
Florian Straub wrote:
Alphax alphasigmax@gmail.com wrote:
Cool Cat wrote:
I would really like to be able to delete images by clicking a link at the [[COM:DEL]] sub page citing that [[COM:DEL]] sub page for the reason. Or another tool that will add {{delh}} ---- {{delf}} properly for me.
As for a "nuke image from COM:DEL page", I'd like to finish quick-delete first.
On de.wp we've got a javascript that helps to delete NowCommons-pictures. Maybe it might help you. It was written by Revvar and it's included in [[w:de:Benutzer:Flominator/monobook.js]].
This script takes the filename from the template and adds it to the deletion reason.
Maybe it helps ....
I assure you, I am very good at automating forms; check the move log of the 15th of October :)
Alphax wrote:
Florian Straub wrote:
Alphax alphasigmax@gmail.com wrote:
As for a "nuke image from COM:DEL page", I'd like to finish quick-delete first.
On de.wp we've got a javascript that helps to delete NowCommons-pictures. Maybe it might help you. It was written by Revvar and it's included in [[w:de:Benutzer:Flominator/monobook.js]].
This script takes the filename from the template and adds it to the deletion reason.
Maybe it helps ....
I assure you, I am very good at automating forms; check the move log of the 15th of October :)
It was no offence, I just wanted to help :)
Regards,
Flo
Florian Straub wrote:
Alphax wrote:
Florian Straub wrote:
Alphax alphasigmax@gmail.com wrote:
As for a "nuke image from COM:DEL page", I'd like to finish quick-delete first.
On de.wp we've got a javascript that helps to delete NowCommons-pictures. Maybe it might help you. It was written by Revvar and it's included in [[w:de:Benutzer:Flominator/monobook.js]].
This script takes the filename from the template and adds it to the deletion reason.
Maybe it helps ....
I assure you, I am very good at automating forms; check the move log of the 15th of October :)
It was no offence, I just wanted to help :)
No worries.
... - Cool Cat
On 11/24/06, Alphax (Wikipedia email) alphasigmax@gmail.com wrote:
Florian Straub wrote:
Alphax wrote:
Florian Straub wrote:
Alphax alphasigmax@gmail.com wrote:
As for a "nuke image from COM:DEL page", I'd like to finish quick-delete first.
On de.wp we've got a javascript that helps to delete NowCommons-pictures. Maybe it might help you. It was written by Revvar and it's included in [[w:de:Benutzer:Flominator/monobook.js]].
This script takes the filename from the template and adds it to the deletion reason.
Maybe it helps ....
I assure you, I am very good at automating forms; check the move log of the 15th of October :)
It was no offence, I just wanted to help :)
No worries.
-- Alphax - http://en.wikipedia.org/wiki/User:Alphax Contributor to Wikipedia, the Free Encyclopedia "We make the internet not suck" - Jimbo Wales Public key: http://en.wikipedia.org/wiki/User:Alphax/OpenPGP
Commons-l mailing list Commons-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/commons-l
Pay attention - anything you write here, is sent to all the *[Commons-l] * subscribers. If you have something personal to write, please use the email.
Best regards, Yuval
On 11/24/06, Cool Cat wikipedia.kawaii.neko@gmail.com wrote:
...
- Cool Cat
On 11/24/06, Alphax (Wikipedia email) alphasigmax@gmail.com wrote:
Florian Straub wrote:
Alphax wrote:
Florian Straub wrote:
Alphax alphasigmax@gmail.com wrote:
As for a "nuke image from COM:DEL page", I'd like to finish quick-delete first.
On de.wp we've got a javascript that helps to delete NowCommons-pictures. Maybe it might help you. It was written by Revvar and it's included
in
[[w:de:Benutzer:Flominator/monobook.js]].
This script takes the filename from the template and adds it to the deletion reason.
Maybe it helps ....
I assure you, I am very good at automating forms; check the move log
of
the 15th of October :)
It was no offence, I just wanted to help :)
No worries.
-- Alphax - http://en.wikipedia.org/wiki/User:Alphax Contributor to Wikipedia, the Free Encyclopedia "We make the internet not suck" - Jimbo Wales Public key: http://en.wikipedia.org/wiki/User:Alphax/OpenPGP
Commons-l mailing list Commons-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/commons-l
Commons-l mailing list Commons-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/commons-l