Wikipedia talk:Twinkle/Archive 29
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. |
Archive 25 | ← | Archive 27 | Archive 28 | Archive 29 | Archive 30 | Archive 31 | → | Archive 35 |
Overly detailed template
Twinkle currently uses {{over detailed}}, a redirect to {{overly detailed}}. This works fine for a standalone template, but it doesn't work with {{multiple issues}} (Twinkle inserts an "over detailed" field into the Multiple issues template, which generates no output). Chris the Paleontologist (talk • contribs) 22:19, 27 February 2012 (UTC)
- Change made in repo, pending gadget update... — This, that, and the other (talk) 09:20, 28 February 2012 (UTC)
Odd behaviour on tagging for FfD
Lost file name and put File:Contribs instead. Edit summary and user talk page OK See - http://en.wikipedia.org/w/index.php?title=Wikipedia:Files_for_deletion/2012_February_28&oldid=479224655 Ronhjones (Talk) 01:34, 28 February 2012 (UTC)
- That's really strange. I cannot explain that at a glance. If it happens again, please report it and I'll take a closer look. — This, that, and the other (talk) 09:20, 28 February 2012 (UTC)
"{{subst:ffd2|1=" + mw.config.get('wgTitle') + "|Uploader=" + params.uploader + "|Reason=" + params.reason + "}} ~~~~"
- params.reason was something like "
Orphaned file. Derivative of deleted file - original was deleted as " (del/undel) 18:55, 16 December 2007 Adambro (talk | contribs | block) deleted "File:Helios 522.gif" (Unused image with questionable copyright status)
"
It contained a pipe, which messed with the {{ffd2}} template by overriding the first parameter with " contribs ".
I have now work-arounded that a simple pipe in the user-supplied parameter in xfd can mess with critical parameters (in return you can now break it worse with a stray "}}" in your reason). In essence though this is the same issue we talked about a while ago. Maybe a parser to recognize and escape problematic parameters is preferable after all. That will limit the tricks you can do with wikicode in the parameters and probably also disable some legit code, but all in all that's probably an improvement. Amalthea 10:51, 28 February 2012 (UTC)
Removal of {{NOT}}
Since {{NOT}} has been deleted, can someone please remove it from Twinkle if it hasn't been already? Ten Pound Hammer • (What did I screw up now?) 04:26, 28 February 2012 (UTC)
Done, thanks for the note. Amalthea 09:14, 28 February 2012 (UTC)
Block thingy not working since update to MW 1.19
The block tag/thingy on Twinkle is no longer working since the update, when overing over it, it shows "last blocked: 24 hours ago" or never blocked instead of the full set of options, making it totally useless right now :) Snowolf How can I help? 04:53, 1 March 2012 (UTC)
- I don't think this is part of Twinkle. Twinkle does not fetch "last blocked" data via any module, as far as I know... — This, that, and the other (talk) 06:34, 1 March 2012 (UTC)
- You are quite right, I was mistaken, it's Animum's easyblock. Snowolf How can I help? 10:04, 1 March 2012 (UTC)
- Oh, I fixed that earlier today anyway. :) Amalthea 10:58, 1 March 2012 (UTC)
- You are quite right, I was mistaken, it's Animum's easyblock. Snowolf How can I help? 10:04, 1 March 2012 (UTC)
CSD tag already on page
Does it check for tags wrapped in invisible comments? A suspiciously clever vandal could do so and trick a patroller into believing that someone had beat him to the tag. →Στc. 03:25, 3 March 2012 (UTC)
- Let's test this us at Bynari. ^^ mabdul 03:30, 3 March 2012 (UTC)
- Yes, it does. I just tested it on my own user page by putting {{db-u1}} in comment tags on it, then tried to tag it "for real" with Twinkle's CSD module. It detected the commented out tag and refused to put a "real" tag on it. This behavior is probably not good for the reason given by Σ. jcgoble3 (talk) 05:16, 3 March 2012 (UTC)
- Twinkle could test whether the page really is in Category:CSD, but I don't see that it's worth the bother. Clever vandals can do lots of things. Amalthea 16:43, 3 March 2012 (UTC)
TfD wording
As TfD is Templates for Discussion, we should update the dialogs and edit summary from 'deletion' to 'discussion'. ---— Gadget850 (Ed) talk 13:44, 3 March 2012 (UTC)
- Twinkle does not currently include the functionality to nominate pages for "TfM" (templates for merging), the other possible type of discussion at TfD. The correct page name ("Templates for discussion") is used in the dialogs already, and the edit summary stating "Nominated for deletion" seems appropriate. — This, that, and the other (talk) 23:44, 3 March 2012 (UTC)
Ability for twinkle to make an xfd log
Is it possible for twinkle to log xfd submissions made by twinkle? I searched and couldn't find an answer. I have not coded with JS for a while. I know its possible if I hard code it, but can someone steer me in the correct direction please. Jab843 (talk) 15:17, 3 March 2012 (UTC)
- Can I direct you towards four sections up first? Amalthea 16:48, 3 March 2012 (UTC)
Opening user talks "In a new tab" problems
Using Google Chrome (standard client, latest rev.), using the "In a new tab" option does not work. It opens in a new window, but with messy Wikipedia layout and taking half the screen. Using "In a window, replacing other user talks" works exactly as intended without a hitch. Is this problem replicatable by other users? Salvidrim! 21:18, 4 March 2012 (UTC)
- I don't use Chrome, so I can't comment on the specifics. However, as I understand it, Chrome tends to be a bit idiosyncratic about how it opens new windows and tabs. I don't think we ever found a solution to this problem... — This, that, and the other (talk) 05:51, 5 March 2012 (UTC)
- Is this a known bug, then? Salvidrim! 05:58, 5 March 2012 (UTC)
- Known, but of little importance. It might be possible to fix it one day. — This, that, and the other (talk) 09:14, 6 March 2012 (UTC)
- Is this a known bug, then? Salvidrim! 05:58, 5 March 2012 (UTC)
Preview welcome templates before adding them
ω Awaiting till Welcome module overhaul
It would really be nice if you could preview welcome templates before adding them to user talk pages, just like there is when you place a user-warning message on a user's talk page. This would be very helpful, especially for new Twinkle users like me who aren't always sure which welcome template to use when. (Even the descriptions aren't all that helpful) This would be a great new feature to add to Twinkle. Thanks, Compdude123 05:08, 6 March 2012 (UTC)
- Strongly agreed. Salvidrim! 05:14, 6 March 2012 (UTC)
- If I ever have a spare few days, I plan to rewrite the welcome module, removing duplicate options (of which there are several) and adding a preview feature. So... hey, it's on the to-do list! — This, that, and the other (talk) 09:12, 6 March 2012 (UTC)
- Thank you. Now I see that it's on the to-do list. —Compdude123 16:10, 6 March 2012 (UTC)
Preference panel
In the pref panel i can find a way to add prod's and csd's to my deletion log automatically but not AFD's. Is there a reason for this.Edinburgh Wanderer 23:21, 2 March 2012 (UTC)
- There is a reason for this. Since non-admins cannot track their deleted contributions, it is impossible to keep an accurate record of all CSD and PROD nominations without separate logging. However, since AFDs are preserved at the nomination pages, there is no need to keep a separate log. Tools exist for tracking your AFDs, such as this script which you can add as a bookmarklet:
javascript:(function(){if(typeof%20mw==="undefined"){alert("You%20must%20be%20on%20a%20Wikipedia%20page%20for%20this%20to%20work.");return;}mw.loader.using(["ext.gadget.Twinkle"],function(){window.afdlog={};window.afdlog.fetchContribs=function(ucstart){var%20api=new%20Wikipedia.api("action",{'action':'query','list':'usercontribs','uclimit':500,'ucuser':wgUserName,'ucnamespace':4,'ucprop':'title|flags|timestamp','ucstart':ucstart},window.afdlog.contribsCallback);api.post();};window.afdlog.contribResults=[];window.afdlog.contribResultsIndex=0;window.afdlog.contribsCallback=function(apiResult){var%20$doc=$(apiResult.responseXML);$doc.find('item[new=""][title^="Wikipedia:Articles%20for%20deletion/"]').each(function(){var%20$this=$(this);var%20ts=new%20Date($this.attr("timestamp")).toUTCString();var%20title=$this.attr("title").substring(32).replace(/\([0-9]+[nrst][dht]nomination\)$/,"");if(title.indexOf("Log/2")!==0){window.afdlog.contribResults.push({ts:ts,title:title,afd:$this.attr("title")});}});var%20$ctn=$doc.find("query-continue%20usercontribs");if($ctn.length){window.afdlog.fetchContribs($ctn.attr("ucstart"));}else{window.afdlog.fetchPage();}};window.afdlog.fetchPage=function(){var%20sect=window.afdlog.contribResults.slice(window.afdlog.contribResultsIndex,window.afdlog.contribResultsIndex+19);var%20titles=[];$.each(sect,function(k,v){titles.push(v.title);});var%20api=new%20Wikipedia.api("action",{'action':'query','prop':'info','titles':titles.join("|")},window.afdlog.pageCallback);api.post();};window.afdlog.pageCallback=function(apiResult){$(apiResult.responseXML).find("page").each(function(){var%20$this=$(this);var%20newarr=window.afdlog.contribResults.filter(function(v){return%20v.title===$this.attr("title");});newarr[0].exists=$this.attr("missing")!=="";});window.afdlog.contribResultsIndex+=20;if(window.afdlog.contribResultsIndex>=window.afdlog.contribResults.length){window.afdlog.$ol.empty();$.each(window.afdlog.contribResults,function(k,v){window.afdlog.$ol.append($('<li>'+v.ts+':%20<a%20href="'+wgArticlePath.replace("$1",v.title)+'"%20style="color:'+(v.exists?'#0645AD':'#BA0000')+'">'+v.title+'</a>%20was%20<a%20href="'+wgArticlePath.replace("$1",v.afd)+'"%20style="color:#0645AD">nominated%20for%20AfD</a></li>'));});window.afdlog.$ol.css({'margin-left':'10px','padding-left':'34px'});}else{window.afdlog.fetchPage();}};window.afdlog.$ol=$('<ol>Please%20wait...%20(may%20take%20several%20minutes)</ol>');window.afdlog.$ol.dialog({width:900,height:480,title:'Your%20AfD%20nominations'});window.afdlog.fetchContribs();});})();
- Ok so we have established that because you can find the info by searching through the logs you can find AFD's its not included. But as below I'm not the only one who would like to be able to log them all in one place. Why cant this be added to twinkle. Its a great tool and it should be as complete as possible.Edinburgh Wanderer 23:26, 3 March 2012 (UTC)
- Just wondering if you can say if its technically possible to add this to twinkle.Edinburgh Wanderer 20:10, 7 March 2012 (UTC)
- It's totally possible. I personally don't want to add this feature, though. — This, that, and the other (talk) 23:10, 7 March 2012 (UTC)
- Just wondering if you can say if its technically possible to add this to twinkle.Edinburgh Wanderer 20:10, 7 March 2012 (UTC)
- Add me to the list of people who would like this feature. jcgoble3 (talk) 23:58, 7 March 2012 (UTC)
Additional welcome templates
Hi,
Lately we've had an increased number of new editors who appear to have arrived as part of an educational project. Would it be possible to add a couple more templates to the existing list of welcome templates in twinkle?
- {{subst:Welcome student|article}};
- {{subst:Welcome teacher|article}}.
Thanks; bobrayner (talk) 23:29, 6 March 2012 (UTC)
Pending Hopefully the ugly colours of this template will catch someone's eye... — This, that, and the other (talk) 09:37, 7 March 2012 (UTC)
- Of course, one of my personal favourites (has nothing to do with students) is User:Bwilkins/welcomecivil ... for obvious reasons surrounding civility (not being that I designed it) (talk→ BWilkins ←track) 11:54, 7 March 2012 (UTC)
Redirect
Twinkle gives us options to move pages is it possible for an option to be added to redirect a page.Edinburgh Wanderer 22:04, 7 March 2012 (UTC)
- To redirect a page you can simply replace all text with "#REDIRECT [[Example]]". I do not believe such a simple thing needs to be semi-automated through Twinkle... Salvidrim! 22:30, 7 March 2012 (UTC)
- I can manually add prods to pages same with AFDS. But its easier to use twinkle. Same situation here for ease of use and completeness for users.Edinburgh Wanderer 22:32, 7 March 2012 (UTC)
- One benefit Twinkle could provide with a redirect module would be to provide a list of common redirect categorization templates to choose from so the redirect can be categorized at the same time it's created. These templates can already be applied through the tagging module, but it would be nice to be able to both redirect a page and apply the cat template(s) in one operation. jcgoble3 (talk) 01:49, 8 March 2012 (UTC)
- I can manually add prods to pages same with AFDS. But its easier to use twinkle. Same situation here for ease of use and completeness for users.Edinburgh Wanderer 22:32, 7 March 2012 (UTC)
No TW options in Diff view
Since at least a few hours. Last use I've made was on 29-Feb. Still appears properly everywhere else I've checked. I'm talking the "AGF/Normal/Vandalism" rollback options, the "Restore this version" link, the "Welcome" link in diff view. I've tried unchecking it from my options, clearing my cache, rechecking it, clearing cache again -- no use. Using Google Chrome, Vector skin, if it matters. Salvidrim! 04:06, 2 March 2012 (UTC)
- However a weird "empty" dropdown box appears; I've not noticed it before at all. Here's a screenshot with the dropdown box "opened" for convenience. Salvidrim! 04:13, 2 March 2012 (UTC)
- Still works for me. Do you have other scripts or gadgets activated that might create the dropdown? Are you getting any errors in your javascript console? Amalthea 08:25, 2 March 2012 (UTC)
- Be aware I don't know much about code. What do you mean by "errors in your Javascript console"? And yes I'm using other gadgets, but no change in the past few days, and no clue what the dropdown is. Salvidrim! 18:33, 2 March 2012 (UTC)
- I assume one of the gadgets you are using is the "Revisionjumper" gadget. If you really never noticed the dropdown box there before then you can probably just as well disable it. ;)
Said gadget used some discouraged methods that apparently caused it to crash now and, in the process, take all later scripts and gadgets with it. Best I can tell the issue there was fixed yesterday. Bypass your browser cache to get the latest version of all scripts and you should be good.
Amalthea 19:26, 2 March 2012 (UTC) - Bypassing cache did nothing, but I disabled revisionjumper and now TW works. Thanks! :) Salvidrim! 19:32, 2 March 2012 (UTC)
- I assume one of the gadgets you are using is the "Revisionjumper" gadget. If you really never noticed the dropdown box there before then you can probably just as well disable it. ;)
- Be aware I don't know much about code. What do you mean by "errors in your Javascript console"? And yes I'm using other gadgets, but no change in the past few days, and no clue what the dropdown is. Salvidrim! 18:33, 2 March 2012 (UTC)
- Still works for me. Do you have other scripts or gadgets activated that might create the dropdown? Are you getting any errors in your javascript console? Amalthea 08:25, 2 March 2012 (UTC)
- Revisionjumper is now fixed. Amalthea 18:10, 8 March 2012 (UTC)
General Question
The following is what I understand to be the rough outline of a TW module:
- Function1: prepares the tab and links its click to a callback function
- Function2: the callback function (usually named someething like
initdialog
) prepares thesimplewindow
andquickform
and then displays/renders it. It contains a statement which looks likevar form = new QuickForm(Twinkle.module.evaluateblah)
orvar form = new QuickForm(Twinkle.module.evaluateblah, 'change')
- Function3: the "evaluateblah" function has an input param "e" and uses
e.target.blah's
to set the properties of a "params" object. One of two things then happens:
- Either it calls
Twinkle.module.callback(params)
or - It creates a
wikipedia.page
, sets params as its callbackparameters (using thesetCallbackParameters
method), and then callsTwinkle.module.callback(the wikipedia.page object)
- Either it calls
- Function4: the "callback" function actually creates the text to be added/appended/prepended to the page, does the actual adding of the text to the page
Now, I have three questions:
- Where did I go wrong in this outline? (I couldn't have been entirely right!)
- Function3 (evaluateblah) has an input param 'e'. But where does this 'e' come from and what is it? What's 'e.target' and so on? (All I can think of is its something the quickform gives as output, but I can't understand what it does)
- I tried to make this script along the lines of a TW mod, and I think I got it right upto function2. But I wasn't able to link it to function3 correctly. Using a
'change'
made the third function take effect just after the form was edited once, instead of taking all inputs. As of now, the third function doesn't fire (at all). I need the third function to fire only when I press the "submit query" button.There's lots of other stuff wrong with that script too, but right now I'm concerned only with getting the third function to fire properly
If you've read so far, thanks for the patience of doing that, and Please Help --Siddhartha Ghai (talk) 03:25, 7 March 2012 (UTC)
- Your outline is spot on! For some unknown reason, most Twinkle modules have Function4 before Function3, even though Function4 logically should be after Function3.
- Function3 is attached to the QuickForm's "submit" event handler, unless you specify a different handler in the constructor to QuickForm. Normally you should omit this second parameter to QuickForm's constructor.
- The parameter to this function is an
Event
object, wheree.target
is the form in question. You can access the value of text boxes bye.target.<text box name>.value
, and the value of check boxes (boolean) bye.target.<check box name>.checked
. I think this is where your script is having trouble. Try using alert()s to narrow down the location of the problem, if you need to. - Usually at the top of Function3, a statement like
var form = e.target;
is used, for clarity. Then properties of theform
variable can be accessed as needed. - The "shared IP" module is probably the simplest module to work from: see https://github.com/azatoth/twinkle/blob/master/modules/friendlyshared.js.
- Hope this helps! Have fun. — This, that, and the other (talk) 09:28, 7 March 2012 (UTC)
- Thanks, that was it! Now it works :) --Siddhartha Ghai (talk) 20:04, 7 March 2012 (UTC)
Personal Twinkle
- And since I got it to work even when I have twinkle disabled as a gadget, that raises a question. Wouldn't adding the following to one's personal script file enable one to use Twinkle without enabling it as a gadget?
mw.loader.using( ['mediawiki.util','jquery.ui.dialog','jquery.tipsy'], function(){ mw.loader.load('//en.wikipedia.org/w/index.php?title=Mediawiki:Gadget-morebits.js&action=raw&ctype=text/javascript'); mw.loader.load('//en.wikipedia.org/w/index.php?title=Mediawiki:Gadget-morebits.css&action=raw&ctype=text/css', 'text/css'); mw.loader.load('//en.wikipedia.org/w/index.php?title=Mediawiki:Gadget-Twinkle.js&action=raw&ctype=text/javascript'); });
Here couldn't we replace the url in the last line to a personal userscript and then be able to test changes via that script before deploying them to the gadget? --Siddhartha Ghai (talk) 20:04, 7 March 2012 (UTC)
- It sounds reasonable. However, the main problem we have had with loading Twinkle from a personal script subpage is (if it works at all!) that the items on the TW menu don't do anything - even though you can still invoke the modules from a JavaScript console. If this works, though, I'll give you a barnstar! — This, that, and the other (talk) 00:39, 8 March 2012 (UTC)
- Works for me. Copied the above code to my vector.js and got a working twinkle.--Siddhartha Ghai (talk) 11:00, 8 March 2012 (UTC)
Global Twinkle
I think I've bashed my head with javascript enough to ask this now. HotCat is located on Commons and imports its UI from a local file, thus making it usable across all projects.
For twinkle, since we already have a prefs panel which can save js objects to a personal file; couldn't we have something like a "Global prefs panel" which would access all UI from a fixed page like Wikipedia:Twinkle/Global preferences
? This page would be editable only by admins, and editing it would be through a pref panel-like UI only. Admins could add/remove templates, tooltips etc.
I agree that it would be difficult to set up templates with parameters to work like this, but for templates with no parameters, like some of the CSD, tag, shared, TB, Welcome module templates it should be easy. Anywhere twinkle uses a list, it would be something like Twinkle.getGlobalprefs('blah') and that would be replaced by the object from the global prefs page.
Just two questions:
- Is it feasible?
- Would there be any resourceloader troubles?
I really hope and wish this is possible, since I know atleast three people who'd be happy if this were done. Regards--Siddhartha Ghai (talk) 20:04, 7 March 2012 (UTC)
- What you essentially want to do is split code and data. Like you indicated, that would technically be easy for some modules like welcome, doable for others like warn or tag, and nigh impossible for some like xfd or arv. It would probably need hooks to allow simple specialization for all those pragmatic hacks that are currently part of the modules.
Resourceloader ... well, not troubles, but it may make it harder, and depending on where everything is put it wouldn't be able to minify and combine the request with the other scripts.
So. Cleaner and better re-usability vs. harder, less efficient, and effort to restructure.
Amalthea 18:06, 8 March 2012 (UTC)
WikiProject tagging
Could we have the ability for WikiProject tagging and assessment via twinkle? The idea was last raised about 4 yrs ago (see Wikipedia_talk:WikiProject_User_scripts/Scripts/Friendly/Archive_1#Large.2C_yet_very_useful_expansion) but nothing seems to have come of it. Just being able to add a project tag with importance and assessment parameters would be fine for a start.--Siddhartha Ghai (talk) 11:13, 8 March 2012 (UTC)
"Defamation not specifically directed"
Why does Twinkle use this wording, as opposed to something like "addition of defamatory content"? The corresponding warnings aren't for "not specifically directed" defamation, but for any defamation. I've run into this situation twice in the last two days: here and here. I issued the appropriate warnings no problem, but it's kind of weird that both the menu option and edit summary says "not specifically directed" when the warnings were for defamation that was specifically directed. Swarm X 02:40, 3 March 2012 (UTC)
- I imagine this was to distinguish it from "personal attack directed at a specific editor". The wording was changed from "defamation" to "defamation not specifically directed" by AzaToth in this edit (beware, the diff is not friendly), so you could ask him if you would like to know why this particular wording was chosen.
- However, as you say, the wording is unclear, and probably could be improved. — This, that, and the other (talk) 06:42, 3 March 2012 (UTC)
- Thanks, I'll point him to this post. Swarm X 21:08, 9 March 2012 (UTC)
- Actually, I just realized that the diff is nearly four years old and AzaToth is somewhat inactive. I'll just change it to my suggestion above; I think the editors who issue these warnings will be know when to select "defamation" and when to select "personal attacks". Swarm X 21:23, 9 March 2012 (UTC)
- Eh, I tried but it's not showing up. Would you be so kind as to help me? Swarm X 21:38, 9 March 2012 (UTC)
- The script you changed is actually not the current Twinkle v2 source. I've duplicated your change in the repository and updated the Gadget. Amalthea 21:41, 9 March 2012 (UTC)
- Thanks! :) Swarm X 18:56, 10 March 2012 (UTC)
- The script you changed is actually not the current Twinkle v2 source. I've duplicated your change in the repository and updated the Gadget. Amalthea 21:41, 9 March 2012 (UTC)
TW down?
Over the last couple of weeks, when I've needed to revert vandalism, the majority of the time I haven't seen seen the Twinkle menu items show up. I can't say its not there 100% of the time but certainly the majority of the time I need to use it--after some IP has vandalized an article. Is there an issue going on? Why isn't it showing up currently? Trackinfo (talk) 21:50, 7 March 2012 (UTC)
- I often refresh or clear my cache and it shows up again. It also often fails to show up on "edit" pages (such as warning a user who doesn't have a talk page yet). —danhash (talk) 21:51, 7 March 2012 (UTC)
- Same here. The "down time" is nowhere near as great as experienced by the OP, but it's hard to get it back—"refresh" doesn't fix it. Just as a test I looked for it on some page histories and it was missing from there as well. --Old Moonraker (talk) 22:02, 7 March 2012 (UTC)
- Twinkle itself is likely not at fault. Usually, if Twinkle stopped working for only a few editors it's because some other script causes an error which in turn halts all JavaScript execution -- missing Twinkle functionality is simply the first thing that is noticed. You can track down the problematic script either by disabling your gadgets and scripts one by one, or by having a look into your JavaScript console to find out which module is causing it (see WP:Reporting JavaScript errors). Amalthea 10:28, 8 March 2012 (UTC)
- OK, I'll give that a try next time. Thanks. --Old Moonraker (talk) 12:58, 9 March 2012 (UTC)
- Twinkle itself is likely not at fault. Usually, if Twinkle stopped working for only a few editors it's because some other script causes an error which in turn halts all JavaScript execution -- missing Twinkle functionality is simply the first thing that is noticed. You can track down the problematic script either by disabling your gadgets and scripts one by one, or by having a look into your JavaScript console to find out which module is causing it (see WP:Reporting JavaScript errors). Amalthea 10:28, 8 March 2012 (UTC)
- Same here. The "down time" is nowhere near as great as experienced by the OP, but it's hard to get it back—"refresh" doesn't fix it. Just as a test I looked for it on some page histories and it was missing from there as well. --Old Moonraker (talk) 22:02, 7 March 2012 (UTC)
Tagging of #REDIRECT pages breaks them?
I used Twinkle to protect (and tag accordingly) The Sun (newspaper), which is a #REDIRECT. Later another editor changed the tagging because with edit-summary "Move protection template that was breaking the redirect." I checked and sure enough, when the tag is before the #REDIRECT line, the redirect mechanism itself doesn't work. It would be useful if TW would check whether the article being TW-tagged was a redirect, and if so put the tag after it instead of first-line-of-article. DMacks (talk) 16:19, 10 March 2012 (UTC)
Rollback
How do you rollback, while leaving a comment that tells why you are rolling back an edit? I tried installing Twinkle, but it didn't work. Is there any other way? Allen (talk) 01:56, 9 March 2012 (UTC)
- Unless you click the "Rollback (VANDAL)" button (for reverting obvious vandalism), you should be able to provide a reason why you rolled the edit back. —Compdude123 05:07, 9 March 2012 (UTC)
- Maybe the option "Prompt for reason when using Rollback" is disabled; verify your settings. Salvidrim! 05:10, 9 March 2012 (UTC)
- When I click the "rollback" link, the link is automatically undone, without any input from me. Allen (talk) 05:14, 9 March 2012 (UTC)
- Are you using Twinkle's "Rollback" option (situated between the yellowish "Rollback (AGF)" and the red "Rollback (VANDAL)" or the standard Rollback option provided by your Rollbacker rights? Salvidrim! 05:17, 9 March 2012 (UTC)
- What in the world are you talking about? I just have a normal-looking link. Allen (talk) 05:18, 9 March 2012 (UTC)
- Are you using Twinkle's "Rollback" option (situated between the yellowish "Rollback (AGF)" and the red "Rollback (VANDAL)" or the standard Rollback option provided by your Rollbacker rights? Salvidrim! 05:17, 9 March 2012 (UTC)
- When I click the "rollback" link, the link is automatically undone, without any input from me. Allen (talk) 05:14, 9 March 2012 (UTC)
- Maybe the option "Prompt for reason when using Rollback" is disabled; verify your settings. Salvidrim! 05:10, 9 March 2012 (UTC)
- (edit conflict) Click here to go to the Twinkle preferences page. Scroll down to the revert and rollback section and look for an option that says "Prompt for reason for normal rollbacks." Click the check mark next to it. Hope this helps, Compdude123 05:20, 9 March 2012 (UTC)
- This is how your diff view page should look like. The TW Rollback can be set to prompt for reason in your Twinkle preferences. The Rollbacker right is not part of Twinkle and does not prompt for reason. If you intend to use Twinkle, it effectively makes the Rollbacker right redundant. Salvidrim! 05:23, 9 March 2012 (UTC)
- If you just installed twinkle, you might have to clear your browser's cache in order to see the rollback links in the diff view. —Compdude123 05:31, 9 March 2012 (UTC)
- Also, some other gadgets may interfere with TW tools in diff view; see the above section. Salvidrim! 05:32, 9 March 2012 (UTC)
- I think Allen means the WP:Rollback feature, not the TW rollback function. Δρ.Κ. λόγοςπράξις 05:37, 9 March 2012 (UTC)
- If that is the case, I wonder how he landed here. In any case, Rollbacker rights should only ever be used in cases of unarguable vandalism, where an edit summary is superfluous as anyone reading would clearly see it was a vandalism revert. For any other revert, you will have to use undo and explain the changes in an edit summary. Salvidrim! 05:39, 9 March 2012 (UTC)
- Yes of course, but there is a tool enabling use of an edit summary with WP:Rollback, although I don't remember how to obtain it. Δρ.Κ. λόγοςπράξις 05:44, 9 March 2012 (UTC)
- There are actually several rollback scripts that prompt for a summary when the MediaWiki rollback link is clicked. (See Wikipedia:Cleaning up vandalism/Tools#Rollback tools) Alpha_Quadrant (talk) 04:33, 12 March 2012 (UTC)
- Yes of course, but there is a tool enabling use of an edit summary with WP:Rollback, although I don't remember how to obtain it. Δρ.Κ. λόγοςπράξις 05:44, 9 March 2012 (UTC)
- If that is the case, I wonder how he landed here. In any case, Rollbacker rights should only ever be used in cases of unarguable vandalism, where an edit summary is superfluous as anyone reading would clearly see it was a vandalism revert. For any other revert, you will have to use undo and explain the changes in an edit summary. Salvidrim! 05:39, 9 March 2012 (UTC)
- I think Allen means the WP:Rollback feature, not the TW rollback function. Δρ.Κ. λόγοςπράξις 05:37, 9 March 2012 (UTC)
- Also, some other gadgets may interfere with TW tools in diff view; see the above section. Salvidrim! 05:32, 9 March 2012 (UTC)
- If you just installed twinkle, you might have to clear your browser's cache in order to see the rollback links in the diff view. —Compdude123 05:31, 9 March 2012 (UTC)
Diff links
Is it possible to disable the "Since mine", "Since", "Current", and "Last" diff links in Twinkle. I checked the Twinkle preferences panel, but there doesn't appear to be an option listed. Alpha_Quadrant (talk) 05:05, 12 March 2012 (UTC)
- You can't disable them, but you can use CSS to hide them:
#tw-lastdiff { display: none; } #tw-since { display: none; } #tw-sincemine { display: none; } #tw-curdiff { display: none; }
- I don't think anyone ever uses the "since" options, and I'm highly tempted to remove them (or at least repurpose them to make them useful) one day. — This, that, and the other (talk) 06:20, 12 March 2012 (UTC)
- Where are these links located? —danhash (talk) 14:56, 12 March 2012 (UTC)
- The links are located on p-cactions area. In the monobook skin, these buttons take up quite a bit of space. While I do use them occasionally, the lack of space is a bit of an issue. If the buttons were in a monobook dropdown menu (i.e. something like this), it would take up significantly less space. Thanks for the CSS suggestion. Alpha_Quadrant (talk) 16:48, 12 March 2012 (UTC)
- Where are they on the vector skin? —danhash (talk) 18:52, 12 March 2012 (UTC)
- In the Twinkle drop down menu? Only if you're actually looking at a diff, obviously. Amalthea 20:22, 12 March 2012 (UTC)
- Where are they on the vector skin? —danhash (talk) 18:52, 12 March 2012 (UTC)
- The links are located on p-cactions area. In the monobook skin, these buttons take up quite a bit of space. While I do use them occasionally, the lack of space is a bit of an issue. If the buttons were in a monobook dropdown menu (i.e. something like this), it would take up significantly less space. Thanks for the CSS suggestion. Alpha_Quadrant (talk) 16:48, 12 March 2012 (UTC)
- Where are these links located? —danhash (talk) 14:56, 12 March 2012 (UTC)
TB to article talk points to user
I tried leaving a TB here pointing to Talk:Superfrog. The edit summary correctly points to the Article Talk, but the link posted points to User talk:Superfrog. I used the fourth option in the TB pop-up, and simply wrote "Superfrog" as the article name. Salvidrim! 14:09, 12 March 2012 (UTC)
- You should have entered "Talk:Superfrog" -- Twinkle does ask you to enter the "Full page name" where the talkback should point at after all? That it ended up pointing at a user talk page is a historical oddity of the talkback template.
You're right though that Twinkle doesn't behave correctly here, as is evident by the edit summary. I'm not sure how a namespace-less talkback target should be interpreted though; probably emitting an error message is best?
If there are no objections I'll do that, I wanted make further changes to that module anyway as a follow up to the above section #talkback preparation.
Amalthea 14:49, 12 March 2012 (UTC)- I see; indeed users should enter "Talk:Example", and not just "Example"; but if and when they do the latter, the behaviour is clearly not flawless. :) Salvidrim! 14:52, 12 March 2012 (UTC)
Changing CSD nominations
If a page is already nominated for speedy deletion, is it possible to use Twinkle to change from an inappropriate category to an appropriate one? Or to change from one appropriate category to multiple categories? —teb728 t c 05:33, 16 March 2012 (UTC)
- I seem to recall that this question has come up before. I think I declined the request, because admins are usually smart enough to realise why an article should be deleted, even if it is tagged with the wrong criterion. I would certainly oppose the ability to change from one category to multiple, as that is unnecessary pedantry. — This, that, and the other (talk) 06:57, 16 March 2012 (UTC)
- For some reason I got the idea this talk page was for questions about how to use Twinkle, but I gather from your reply that it is more for requests and suggestions. Is there some other forum more on how to use Twinkle?
- In response to your reply, people other than admins look at the nominations. For a concrete example suppose an article tagged G11 is 100% neutral but is a textbook case of A7. When the article creator sees that they would contest deletion saying that article is neutral and might in attempt to make it more so remove any hint of significance rather than adding a major prize the subject has won. So an admin will delete the article under A7. Conversely a non-admin may see the article, realize that it is not unambiguously promotional, and remove the tag.
- Is it multiple criteria that you oppose as unnecessary pedantry or just support for changing them? If the former, why does Twinkle even support multiple criteria? —teb728 t c 08:52, 16 March 2012 (UTC)
- This is the general Twinkle talk page; I simply assumed your question was a suggestion. To give a straight-out answer, no, Twinkle does not have the feature you enquire about.
- As the author of Twinkle's multiple criteria function, I find it quite useful. It's just that driving by and adding an "extra" G11 criterion to an A7 CSD tag is not the most productive use of time.
- However, I see your point about mistaggings being confusing for article authors. What do others think? — This, that, and the other (talk) 05:45, 17 March 2012 (UTC)
- I agree with teb728. Mistaggings definitely can be harmful, and the ability to change it to a correct tag would be ideal. Perhaps after selecting the tag/multiple-tag you want, have TW check if a tag is already present and if so, tell the user what it is and ask if they want to stop or replace it. The option to combine it with the selected criteri(on/a) isn't needed; if you really want to add G11 to an existing A7, just select both through the multiple function and hit "replace" at the prompt. I'm no JS expert and haven't looked through TW's code, but I'm guessing this could be done fairly easily by stealing some code from the PROD module, which checks if a PROD tag is already present and prompts the user to add a prod-2 instead. jcgoble3 (talk) 21:28, 17 March 2012 (UTC)
- Recognizing tags is actually not as easy as you'd think if you consider all the redirects; Prod is easy in comparison since it always substs to {{Proposed deletion/dated}}.
Personally I don't expect that existing incorrect tags come up often enough to warrant complex changes here. You can already revert the incorrect tag before adding the correct one.
Amalthea 22:05, 17 March 2012 (UTC)
- Recognizing tags is actually not as easy as you'd think if you consider all the redirects; Prod is easy in comparison since it always substs to {{Proposed deletion/dated}}.
- I agree with teb728. Mistaggings definitely can be harmful, and the ability to change it to a correct tag would be ideal. Perhaps after selecting the tag/multiple-tag you want, have TW check if a tag is already present and if so, tell the user what it is and ask if they want to stop or replace it. The option to combine it with the selected criteri(on/a) isn't needed; if you really want to add G11 to an existing A7, just select both through the multiple function and hit "replace" at the prompt. I'm no JS expert and haven't looked through TW's code, but I'm guessing this could be done fairly easily by stealing some code from the PROD module, which checks if a PROD tag is already present and prompts the user to add a prod-2 instead. jcgoble3 (talk) 21:28, 17 March 2012 (UTC)
Still getting the "Wikipedia:Twinkle/Update to v2.0" message
I deleted extra .js and .css pages, turned off TW in gadgets, and made sure my common.css and common.js did not reference TW, and I'm still getting the annoying "You are using an old version of Twinkle. See information at Wikipedia:Twinkle/Update to v2.0 for how to get the latest version." message. How can this be cleared? -- Avi (talk) 18:10, 18 March 2012 (UTC)
- I'm assuming you've tried bypassing your cache also? Salvidrim! 18:20, 18 March 2012 (UTC)
- Someone needs to delete User:Voice_of_All/Revert.js, as it is redundant to the Twinkle gadget. — This, that, and the other (talk) 22:08, 18 March 2012 (UTC)
- Huh. OK, blanked that script for now. I'm not quite getting the script hierarchy there and a whole lot of people import scripts from VoA. If anyone now misses those Twinkle links I hope they turn up here or figure out to turn on the Gadget.
Sorry Avi. :)
Amalthea 23:32, 18 March 2012 (UTC)- Works now, thanks!! -- Avi (talk) 01:28, 19 March 2012 (UTC)
- Huh. OK, blanked that script for now. I'm not quite getting the script hierarchy there and a whole lot of people import scripts from VoA. If anyone now misses those Twinkle links I hope they turn up here or figure out to turn on the Gadget.
- Someone needs to delete User:Voice_of_All/Revert.js, as it is redundant to the Twinkle gadget. — This, that, and the other (talk) 22:08, 18 March 2012 (UTC)
Puffery template
{{Puffery}} is a redirect to {{peacock}}, so there's no need to have both in Twinkle. Chris the Paleontologist (talk • contribs) 22:02, 4 March 2012 (UTC)
- It appears that it was boldly redirected by Alpha Quadrant (talk · contribs) about four months ago without discussion, despite the fact that it was previously kept overwhelmingly at TfD two years ago. I wonder if the proper course of action would be to revert and send it to TfD again, since the redirect violates the most recent consensus. If consensus has indeed changed, that's fine, but at this moment, there is no evidence that it has. jcgoble3 (talk) 02:23, 5 March 2012 (UTC)
Doing...--Ankit MaityTalkContribs 09:43, 19 March 2012 (UTC)
- The reason why I (for one) hadn't acted on this was because of the BOLD redirect situation. But since jcgoble hasn't launched a TFD, I think it is now safe to remove {{puffery}} from Twinkle. Thanks for helping out. — This, that, and the other (talk) 11:03, 19 March 2012 (UTC)
Done So, its done.--Ankit MaityTalkContribs 14:55, 19 March 2012 (UTC)
- I was waiting to see if anyone agreed with me. As no one did, I have no objection to its removal. jcgoble3 (talk) 15:59, 19 March 2012 (UTC)
- The reason why I (for one) hadn't acted on this was because of the BOLD redirect situation. But since jcgoble hasn't launched a TFD, I think it is now safe to remove {{puffery}} from Twinkle. Thanks for helping out. — This, that, and the other (talk) 11:03, 19 March 2012 (UTC)
Another Welcome option
It would be nice to have a welcome message that we can leave for well meaning editors that are not native English speakers and have a limited gras of the language, and who therefore will often make edits to articles that should not stand, but which have by no means a vandalistic intent. I have left such a message on a page this morning, but maybe we should develop a standard twinkle message for such cases. I fully expect that some will disagree with my suggestion that those withut the language skills leave their edit suggestions at a talk page: I will only say that that is how I have tried to contribute on Spanish or French wikipedias, rather than impose my failings in grammar and vocabulary in those tongues on their articles. Kevin McE (talk) 10:16, 18 March 2012 (UTC)
- Twinkle only facilitates placement of welcome, notice and warning templates, we don't really create them. I would suggest you bring it up at WT:UW instead (it sounds more like a single-issue notice than a welcome template). If there's support for it and someone creates it then ping us again. If it's considered useful enough it'll be included. Amalthea 10:49, 18 March 2012 (UTC)
- Consider contacting the Welcoming Committee.--Ankit MaityTalkContribs 05:34, 20 March 2012 (UTC)
talkback preparation
Hi, since the AFC project created our new help desk (located at Wikipedia:WikiProject Articles for creation/Help desk - feel free to help), it would be really useful to add similar to the welcome templates a new option to the TB tab. Regards, mabdul 11:48, 15 February 2012 (UTC)
- To add a new option doing what? Amalthea 12:08, 15 February 2012 (UTC)
- Heh, good question ;) Adding own radio buttons with prefilled pages. (in this case the AFC Help Desk) - similar to AN/I or own userpage: only adding relevant section. mabdul 18:49, 16 February 2012 (UTC)
- Can you point me to the templates you'd like to use there, or maybe to an edit posting such a notice, so that I get a clearer idea of what you actually want to achieve? Amalthea 18:58, 16 February 2012 (UTC)
- Is that clearer to understand what I want to have? I want to add my own talkback pre-filled-places. mabdul 10:56, 1 March 2012 (UTC)
- Can you point me to the templates you'd like to use there, or maybe to an edit posting such a notice, so that I get a clearer idea of what you actually want to achieve? Amalthea 18:58, 16 February 2012 (UTC)
- Heh, good question ;) Adding own radio buttons with prefilled pages. (in this case the AFC Help Desk) - similar to AN/I or own userpage: only adding relevant section. mabdul 18:49, 16 February 2012 (UTC)
Amalthea, so what's the status? Will you, or still clarification problems? mabdul 11:25, 8 March 2012 (UTC)
- timestamp... mabdul 14:03, 20 March 2012 (UTC)
{{uw-username}}
Twinkle allows you to enter an optional message after {{uw-username}}, but won't let you incorporate that message into the template itself, still resulting in the big warning banner saying that "the notifier has not provided a reason why this username may not meet Wikipedia's username policy…" Chris the Paleontologist (talk • contribs) 21:30, 6 March 2012 (UTC)
- It's not optional to add the reason and could you give the diff(please...........)--Ankit MaityTalkContribs 03:37, 21 March 2012 (UTC)
UI translation
Siddhartha was proposed about Global preference,If it is possible ,it will be very usefull for us. I am not a javascript expert; I have implemented TW in Bengali Wikipedia(bn.wikipedia.org ), My small proposal for UI translation our language. In our wikipedia friendly Tag module very frequently use by the user.
at friendly Tag module, the script describe below.... at alphabetical list to shown to users....
Twinkle.tag.article.tags = { "advert": "article is written like an advertisement" "allplot": "article is almost entirely a plot summary", etc ect }
Here "advert" template, next its description.... We don't want to translate "advert" template name into Bengali name, but we want to see in "advert" template name into Bengali name as UI "বিজ্ঞাপন" at UI "tagging dialog box" in Bengali, Is it possible by script?
As like template "globalize" and its sub template works likelabel: "{{globalize}}: article may not represent a worldwide view of the subject", value: "globalize",
where value: "globalize" submitted to editform, it is very easy we are just translate "{{globalize}}: article may not represent a worldwide view of the subject"
to our Bengali so user can see "{{বিশ্বব্যাপি}}: নিবন্ধটি বিষয়বস্তু ও উদাহরণ বিশ্বব্যাপি ধারণকে উপস্থাপিত করেনি"
- Yah, I know it is. But I am unsure whether to change the thing inside the params or just the value name. But I know it will be either of the two.--Ankit MaityTalkContribs 13:54, 20 March 2012 (UTC)
- You can change line 143 of friendlytag.js from
var checkbox = { value: tag, label: "{{" + tag + "}}: " + description };
- to
var checkbox = { value: tag, label: description };
- That should make you happier. — This, that, and the other (talk) 01:30, 21 March 2012 (UTC)
Splitting categories
Is there some reason why Twinkle can't be used to propose the splitting of categories at CfD. Armbrust, B.Ed. Let's talkabout my edits? 01:11, 11 March 2012 (UTC)
- Bump. Armbrust, B.Ed. Let's talkabout my edits? 16:38, 13 March 2012 (UTC)
- The simple answer is that {{cfs}} was only created in December 2011, and no-one ever told us, until now. It shouldn't be too hard to add this functionality. — This, that, and the other (talk) 23:55, 17 March 2012 (UTC)
- This feature has been duly added, as you may have observed. — This, that, and the other (talk) 22:25, 26 March 2012 (UTC)
- The simple answer is that {{cfs}} was only created in December 2011, and no-one ever told us, until now. It shouldn't be too hard to add this functionality. — This, that, and the other (talk) 23:55, 17 March 2012 (UTC)
Minor FR for merge templates
In the mergefrom or mergeto templates, could we add discuss=Talk:{destination page}#Merger proposal to the template, so that it automatically redirects to a special section on Merger Proposal on the relevant talk page? We could even create the section in the talk page, and open up the talk page afterwards so the person proposing the merge can enter their arguments right away. --Karl.brown (talk) 13:55, 26 March 2012 (UTC)
Need Help
Again...
I've been trying to get User:Siddhartha Ghai/MTC.js to work, both as an end in itself and more as a proof of concept of some things that I'll need to understand to make an i18n-able twinkle.
One of these things is to be able to access all subgroup elements of a form element without the need to know the number or id of such subgroups. I can't even get the subgroups to work for some reason in this script. Could someone tell me what I'm doing wrong?
Also note though, that the id of the subgroups seems to get extended everytime the SimpleWindow is closed and opened(without going through a refresh). If the first time its X.sdate
, the next time its X.X.sdate
and so on. Is this intended, or a bug noone got round to fixing?
Note: I have made some unfinished code locally for the i18n-able twinkle and I'd be more than happy to put up the unfinished work on-wiki (or on github) if someone with knowledge of javascript is willing to have a look.
Thanks in advance.--Siddhartha Ghai (talk) 01:02, 31 March 2012 (UTC)
- For me, the subgroups are appearing and disappearing as intended.
- You could use advanced jQuery selectors to fetch a list of all text boxes with an ID terminating in "sdate":
$(e.target).find('input[name$=".sdate"]').each(function(index, obj) { // do something; obj is a HTMLInputElement object in this case, not a jQuery object });
- where e.target is your form object.
- As for the subgroup naming issue, it is indeed a bug – one which no-one had ever noticed, I suspect. It will be fixed soon. — This, that, and the other (talk) 06:44, 31 March 2012 (UTC)
- Thanks. Till now I had been under the (wrong) impression that having an ID
AU.sdate
meant it could also be accessed as a property of the objectAU
. Thanks for clarifying. I was able to get MTC to work with subgroups. :) - TWG:Non-functional work-in-progress on the i18n-able twinkle.--Siddhartha Ghai (talk) 18:15, 1 April 2012 (UTC)
- Thanks. Till now I had been under the (wrong) impression that having an ID
Twinkle not using my prefences
Twinkle does not seem to load my preferences. My twinkleoptions.js seems to contain my chosen preferences; but for example when I do a CSD nomination, it does not log it in my CSD log; and when I visit the Twinkle preferences panel, it show the default preferences. I use IE9 on Win7. I have bypassed the cache (ctrl-refresh) and even tried logging out and back in. —teb728 t c 08:36, 31 March 2012 (UTC)
- I can see that User:TEB728/twinkleoptions.js is filled with the correct settings. What happens if you navigate to http://en.wikipedia.org/w/index.php?title=User:TEB728/twinkleoptions.js&action=raw&ctype=text/javascript&happy=yes? Do you see the same content? If not, try the magic Ctrl+F5 again while viewing that page. — This, that, and the other (talk) 11:25, 31 March 2012 (UTC)
- Thank you, that did it (judging by the preferences panel). Do I need to run that whenever I change preferences? —teb728 t c 19:33, 31 March 2012 (UTC)
- Yes; IE's cache is a bit aggressive (read: unintelligent). The other option, of course, would be to clear your Temporary Internet Files each time you change your preferences (which can be done using IE9's "Delete Browsing History" dialog box). — This, that, and the other (talk) 00:07, 1 April 2012 (UTC)
- Thank you, that did it (judging by the preferences panel). Do I need to run that whenever I change preferences? —teb728 t c 19:33, 31 March 2012 (UTC)
Twinkle practice / sandbox
hi - I've just installed twinkle but I'm having trouble practicing to use it. When I try it on my talk page, it gives me a smart-ass pop-up instead of letting me give myself warning/etc. When I try it in various wikipedia sandboxes, the 'tag' function is not available. Can someone tell me how I can practice and see the effects of twinkle, especially the tagging function? Is there a special 'twinkle' sandbox? --Karl.brown (talk) 01:18, 25 March 2012 (UTC)
- You can test warnings at User talk:Sandbox for user warnings. As for tagging, I don't know if there is a way to test it or not. jcgoble3 (talk) 01:47, 25 March 2012 (UTC)
- The best way to test tagging is to get out there and do some. Special:NewPages is full of articles that need work, and you could test out the tag module by applying appropriate tags to the new articles listed there. — This, that, and the other (talk) 04:20, 25 March 2012 (UTC)
- Thanks; however the warning template does not show up on the menu in this sandbox User talk:Sandbox for user warnings - Twinkle is trying to be too clever I think by only showing me context-specific menu items. It would be great if the wizards of twinkle could come up with a way to test tagging, since Twinkle doesn't even allow you to preview - it just makes the edits and saves. I can't believe, with the thousands of sandboxes and admin pages scattered around wikipedia, that there isn't *some* way for Twinkle to add a tag to a page that isn't an official article. Perhaps twinkle itself could be modified to show the 'tags' and 'user warning/user greeting' menu items when inside a sandbox? --Karl.brown (talk) 05:29, 25 March 2012 (UTC)
- The "warn" menu item should appear at User talk:Sandbox for user warnings. If it doesn't, something else is wrong.
- Regarding article taggings, you will find that the "tag" option is available at Wikipedia talk:Articles for creation/Sandbox. — This, that, and the other (talk) 06:47, 25 March 2012 (UTC)
- ok thanks both work now. Might I suggest that those two pages be added to the documentation, as places to practice tagging? I can also make the add myself if you like. --Karl.brown (talk) 12:49, 25 March 2012 (UTC)
- Seconded: I wanted to explore how the user warnings etc worked but found, like Karl did, that I couldn't experiment on my own talk page. I can't remember how I eventually found User talk:Sandbox for user warnings, but it wasn't obvious. Perhaps the popup which objects when you try to leave warnings your own talk page ought to inform us about the right place for experimentation? I felt that with messages on users' talk pages, even more than with messages on articles and their talk pages, I wanted to see what the effect would be before trying it out on a real person's page. PamD 16:04, 25 March 2012 (UTC)
- A simple FR would be, please get rid of the smart-*ss pop-ups. Just let users leave messages for themselves. --Karl.brown (talk) 16:34, 25 March 2012 (UTC)
- Those pop-ups are Ioeth (talk · contribs)'s brainchild, so you can plead with him if you would like them removed. — This, that, and the other (talk) 02:05, 26 March 2012 (UTC)
- ok thanks both work now. Might I suggest that those two pages be added to the documentation, as places to practice tagging? I can also make the add myself if you like. --Karl.brown (talk) 12:49, 25 March 2012 (UTC)
- Thanks; however the warning template does not show up on the menu in this sandbox User talk:Sandbox for user warnings - Twinkle is trying to be too clever I think by only showing me context-specific menu items. It would be great if the wizards of twinkle could come up with a way to test tagging, since Twinkle doesn't even allow you to preview - it just makes the edits and saves. I can't believe, with the thousands of sandboxes and admin pages scattered around wikipedia, that there isn't *some* way for Twinkle to add a tag to a page that isn't an official article. Perhaps twinkle itself could be modified to show the 'tags' and 'user warning/user greeting' menu items when inside a sandbox? --Karl.brown (talk) 05:29, 25 March 2012 (UTC)
The new welcome module now allows testing on one's own talk page. I suggest you test it out - the humour is lost, but the notification that this may not be what the user intended is still there. What do you think? — This, that, and the other (talk) 10:31, 5 April 2012 (UTC)
- It would be much more helpful if it mentioned the existence of User talk:Sandbox for user warnings, preferably with a link. Perhaps: "User talk:Sandbox for user warnings is a good place to experiment." PamD 11:38, 5 April 2012 (UTC)
- Or, more neatly, how about a third button "Go to User talk:Sandbox for user warnings". PamD 11:39, 5 April 2012 (UTC)
- I updated the docs here: Wikipedia:Twinkle/doc#Twinkle_practice_.2F_sandbox. please take a look and edit... --Karl.brown (talk) 14:14, 5 April 2012 (UTC)
- Or, more neatly, how about a third button "Go to User talk:Sandbox for user warnings". PamD 11:39, 5 April 2012 (UTC)
Welcome summary
Can the edit summary for welcomes be changed? It's currently "Adding welcome template", which sounds technical and impersonal. Many new users who are being welcomed are probably unfamiliar with templates. According to the welcoming committee, the edit summary should simply say "Welcome!" MANdARAX • XAЯAbИAM 09:23, 7 April 2012 (UTC)
- I rather prefer "Welcome to Wikipedia!" — This, that, and the other (talk) 12:11, 7 April 2012 (UTC)
- That's actually what I use when I issue a manual welcome. Thanks! MANdARAX • XAЯAbИAM 19:11, 7 April 2012 (UTC)
Twinkle not loading
For the past week to week-and-a-half, I have not been able to use Twinkle. Sometimes, as a page is loading, I see an error message at the top saying "Could not load twinkle.js". It could be that this error message appears on every page, but that I do not always see it. Is anyone else having this problem? I am using Firefox 11.0 on Ubuntu. Thanks! ---RepublicanJacobiteTheFortyFive 16:08, 4 April 2012 (UTC)
- What do you see when you browse to [1]? You ought to see a blank page. If not, try pressing Ctrl+F5 while viewing that page. — This, that, and the other (talk) 07:07, 5 April 2012 (UTC)
- I see a blank page. What is the significance of that? ---RepublicanJacobiteTheFortyFive 13:42, 5 April 2012 (UTC)
- Since I assume the error you're seeing is "Could not load twinkleoptions.js", it is correct to see a blank page, since User:RepublicanJacobite/twinkleoptions.js is empty. The loading code is rather complex, and only Amalthea (talk · contribs) really understands it (since he wrote it), so you might like to ask him if the error doesn't go away. Before doing so, though, try clearing your cache entirely (Firefox Options > Advanced section > Network tab > Clear Now). — This, that, and the other (talk) 00:26, 6 April 2012 (UTC)
- I will try that, thanks! ---RepublicanJacobiteTheFortyFive 01:52, 6 April 2012 (UTC)
- Is it possible you disabled java? I get that exact message using dolphin on my droid when I have java disabled. SÆdontalk 09:16, 8 April 2012 (UTC)
- Twinkle does not use Java; rather, it uses JavaScript. If JavaScript is disabled, Twinkle will be unable to do anything at all, not even showing error messages. — This, that, and the other (talk) 05:57, 9 April 2012 (UTC)
- Is it possible you disabled java? I get that exact message using dolphin on my droid when I have java disabled. SÆdontalk 09:16, 8 April 2012 (UTC)
- I will try that, thanks! ---RepublicanJacobiteTheFortyFive 01:52, 6 April 2012 (UTC)
- Since I assume the error you're seeing is "Could not load twinkleoptions.js", it is correct to see a blank page, since User:RepublicanJacobite/twinkleoptions.js is empty. The loading code is rather complex, and only Amalthea (talk · contribs) really understands it (since he wrote it), so you might like to ask him if the error doesn't go away. Before doing so, though, try clearing your cache entirely (Firefox Options > Advanced section > Network tab > Clear Now). — This, that, and the other (talk) 00:26, 6 April 2012 (UTC)
- I see a blank page. What is the significance of that? ---RepublicanJacobiteTheFortyFive 13:42, 5 April 2012 (UTC)
I've proposed adding instructions about when to add and remove Template:Disputed to or from articles, in a similar spirit to what was done at Template:Pov. I invite editors to weigh in at Template talk:Disputed#"Usage" expansion.—Biosketch (talk) 07:15, 9 April 2012 (UTC)
{{More footnotes}}
There is an RfC at {{More footnotes}} and owing to the twinkle notice on the documentation, I thought it would be nice if I dropped a note here :) CJ Drop me a line! • Contribs 22:10, 9 April 2012 (UTC)
Template:Expert-subject
Template:Expert-subject is being deleted. See Wikipedia:Templates for discussion/Log/2012 February 24#Template:Expert-subject. – Allen4names 05:04, 4 March 2012 (UTC)
- Hmm, I think that discussion should have been relisted, considering it is such a widely-used template. But since the decision has been made, we are left with little choice but to remove the template from Twinkle, I suppose.
- Change made in repository... — This, that, and the other (talk) 06:40, 4 March 2012 (UTC)
- Put this on hold until the discussion is resolved at Wikipedia:Templates for discussion/Log/2012 March 18#Expert-subject and Expert-subject-multiple as I see no reason to turn it back on if the templates are deleted anyway. Thank you. – Allen4names 06:41, 19 March 2012 (UTC)
- The most recent discussions has now closed as keep. The templates should either be readded or the twinkle notice on the documentation page removed. – Allen4names 03:14, 27 March 2012 (UTC)
- It should be re-added. — This, that, and the other (talk) 08:03, 27 March 2012 (UTC)
- This was done a while ago. — This, that, and the other (talk) 10:04, 10 April 2012 (UTC)
- It should be re-added. — This, that, and the other (talk) 08:03, 27 March 2012 (UTC)
- The most recent discussions has now closed as keep. The templates should either be readded or the twinkle notice on the documentation page removed. – Allen4names 03:14, 27 March 2012 (UTC)
- Put this on hold until the discussion is resolved at Wikipedia:Templates for discussion/Log/2012 March 18#Expert-subject and Expert-subject-multiple as I see no reason to turn it back on if the templates are deleted anyway. Thank you. – Allen4names 06:41, 19 March 2012 (UTC)
Welcoming templates
Should we integrate all the topic-specified and Non-English welcome messages in Twinkle? But it's gonna be big. See below:
Topic-specific messages
- {{subst:Welcome-au}} ~~~~ → Australia
- {{subst:Welcome-bio}} ~~~~ → Biography
- {{subst:Cal Welcome}} ~~~~ → California
- {{subst:RightWelcome}} ~~~~ → Conservatism
- {{subst:CyclingWelcome}} ~~~~ → Cycling
- {{subst:W-dbz}} ~~~~ → Dragon Ball
- {{subst:Et-welcome}} ~~~~ → Estonia
- {{subst:Welcome-India}} ~~~~ → India
- {{subst:Gerwelcome}} ~~~~ → Germany
- {{subst:MathWelcome}} ~~~~ → Mathematics
- {{subst:MedWelcome}} ~~~~ → Medicine
- {{subst:Norwaylcome}} ~~~~ → Norway
- {{subst:PhyWelcome}} ~~~~ → Physics
- {{subst:WikiProject Poland welcome}} ~~~~ → Poland
- {{subst:RugbyWelcome}} ~~~~ → Rugby union
- {{subst:Ruswelcome}} ~~~~ → Russia
- {{subst:StarWarsWelc}} ~~~~ → Star Wars
- {{subst:Switzerland Welcome}} ~~~~ → Switzerland
- {{subst:Ukrwelcome}} ~~~~ → Ukraine
- {{subst:welcomeroad}} ~~~~ → U.S. Roads
- {{subst:Vg welcome}} → Video games (Xbox, PlayStation, Nintendo)
Non-English welcome messages
- {{subst:welcomeen-sq}} → welcome users whose first language appears to be Albanian.
- {{subst:welcomeen-zh}} → welcome users whose first language appears to be Chinese.
- {{subst:welcomeen-nl}} → welcome users whose first language appears to be Dutch.
- {{subst:welcomeen-fi}} → welcome users whose first language appears to be Finnish.
- {{subst:welcomeen-fr}} → welcome users whose first language appears to be French.
- {{subst:welcomeen-de}} → welcome users whose first language appears to be German.
- {{subst:welcomeen-he}} → welcome users whose first language appears to be Hebrew.
- {{subst:welcomeen-ja}} → welcome users whose first language appears to be Japanese.
- {{subst:welcomeen-ko}} → welcome users whose first language appears to be Korean.
- {{subst:welcomeen-mr}} → welcome users whose first language appears to be Marathi.
- {{subst:welcomeen-ml}} → welcome users whose first language appears to be Malayalam.
- {{subst:welcomeen-pt}} → welcome users whose first language appears to be Portuguese.
- {{subst:welcomeen-ru}} → welcome users whose first language appears to be Russian.
- {{subst:welcomeen-es}} → welcome users whose first language appears to be Spanish.
- {{subst:welcomeen-sv}} → welcome users whose first language appears to be Swedish.
- {{subst:welcomeen-uk}} → welcome users whose first language appears to be Ukrainian.
--Ankit MaityTalkContribs 15:06, 19 March 2012 (UTC)
- I got half of the code ready. But no reply(sob...sob...sob...sob)--Ankit MaityTalkContribs 03:41, 21 March 2012 (UTC)
- I don't want to include these at the moment; they will take up too much space. When the welcome module is overhauled, there might be a drop-down chooser at the top allowing the user to choose between "normal" welcomes, language-specific welcomes, and WikiProject-specific welcomes. — This, that, and the other (talk) 08:01, 21 March 2012 (UTC)
- When is said welcome module going to be overhauled? On a rainy day when you have nothing better to do? :) Looking forward to seeing a new welcome module... —Compdude123 04:52, 25 March 2012 (UTC)
- Pretty much... I have already drawn up a wireframe diagram, and I might have time to do it in the next couple of weeks. — This, that, and the other (talk) 06:56, 26 March 2012 (UTC)
Done — This, that, and the other (talk) 10:04, 10 April 2012 (UTC)
- Pretty much... I have already drawn up a wireframe diagram, and I might have time to do it in the next couple of weeks. — This, that, and the other (talk) 06:56, 26 March 2012 (UTC)
- When is said welcome module going to be overhauled? On a rainy day when you have nothing better to do? :) Looking forward to seeing a new welcome module... —Compdude123 04:52, 25 March 2012 (UTC)
- I don't want to include these at the moment; they will take up too much space. When the welcome module is overhauled, there might be a drop-down chooser at the top allowing the user to choose between "normal" welcomes, language-specific welcomes, and WikiProject-specific welcomes. — This, that, and the other (talk) 08:01, 21 March 2012 (UTC)
Preparing TW for IPv6
A TW update to accommodate IPv6 has been included in the scope of the new Wikipedia:WikiProject IPv6. Developer input is welcome.Jasper Deng (talk) 22:55, 25 March 2012 (UTC)
- You seem to be our local IPv6 expert; what should we do? We'll try to do what is needed, if feasible. — This, that, and the other (talk) 10:04, 10 April 2012 (UTC)
Arbitration Sanctions Warning Template
First, thanks so much for such a fantastic tool that helps me with my mopping. It is much appreciated.
Could we get Template:uw-sanctions incorporated into the single issue warnings? They are there for blocks but not for this often used warning template. Thanks! --WGFinley (talk) 13:32, 4 April 2012 (UTC)
- It's a bit too complicated, unfortunately. It has a compulsory parameter with a specific set of non-obvious values, and twinklewarn is not equipped to handle such cases. (The module's design can only handle free-text parameters.) So, for the moment, I feel that I will have to decline this request. — This, that, and the other (talk) 07:05, 5 April 2012 (UTC)
- Oh, I see, the "topic" parameter is the problematic one I'm assuming? --WGFinley (talk) 14:45, 5 April 2012 (UTC)
- Yes, that's the one, unfortunately. — This, that, and the other (talk) 10:04, 10 April 2012 (UTC)
- Oh, I see, the "topic" parameter is the problematic one I'm assuming? --WGFinley (talk) 14:45, 5 April 2012 (UTC)
Warning before tagging?
Why is it that when I mark a page for speedy deletion, it notifies the author before it tags the page? It's creating interesting dilemmas, such as with Mr. Jenks!. I tagged the page as a7, then User:Gourami Watcher tagged it very slightly after I did. By the time my Twinkle had notified the user (before it tagged the page), GW's Twinkle had tagged the page. As I thought Twinkle was supposed to, it then went on to warn the user, resulting in two warnings for one speedy deletion tag. I know it's not a big problem, but I find it weird. Thanks, "Pepper" @ 18:23, 5 April 2012 (UTC)
- This is because Twinkle initiates both actions at about the same time. For a reasonably long article and a non-existent user talk page, it is likely that the user notification would complete first. — This, that, and the other (talk) 12:13, 7 April 2012 (UTC)
I see. Is there a reason why the exact same task worked differently for different users? "Pepper" @ 13:18, 8 April 2012 (UTC)
- Just random luck, I expect. — This, that, and the other (talk) 10:04, 10 April 2012 (UTC)
Thank you!
To whomever updated the Welcome template descriptions. The old ones were so generic and I could never remember which was which. The addition of the "student" template was a good idea too! SÆdontalk 09:19, 8 April 2012 (UTC)
- I'm glad you like it! The new "preview" feature should also help you to choose a suitable template. — This, that, and the other (talk) 00:41, 9 April 2012 (UTC)
- Just noticed that today, also very cool. I'm tempted to reimport a bunch of custom welcome messages now that they'll be easier to choose. SÆdontalk 03:10, 11 April 2012 (UTC)
Cleanup - reason parameter is now mandatory
see Template_talk:Cleanup#Should_the_reason_parameter_be_made_mandatory
Please, change the reason parameter for tagging with cleanup from optional to mandatory Bulwersator (talk) 18:33, 8 April 2012 (UTC)
- I've changed the repository; awaiting a sync... — This, that, and the other (talk) 00:58, 9 April 2012 (UTC)
Done Thanks for notifying. — This, that, and the other (talk) 10:04, 10 April 2012 (UTC)
Capitalization
Template:Capitalization has been deleted per Wikipedia:Templates_for_discussion/Log/2012_March_30#Template:Capitalization and has been replaced by {{Copy edit|for=Capitalization}}
. Twinkle still lists this template. It should be removed. If needed, a param option for copy edit could be set up.--Siddhartha Ghai (talk) 13:59, 10 April 2012 (UTC)
- I have made the code changes at User:Oxguy3/scripts/Gadget-Twinkle.js. Now, when you select "copyedit", it gives you a text prompt to enter an explanation, just like "cleanup", "copypaste", and others do. Could an admin please copy the page in my userspace and paste it to MediaWiki:Gadget-Twinkle.js? Thanks! -Oxguy3 tc 00:51, 11 April 2012 (UTC)
- Changes need to be made in Twinkle's github repository; manual changes to the gadget file will be overwritten by the synchronisation script. I will make this change to the repository soon. — Preceding unsigned comment added by This, that and the other (talk • contribs) 01:15, 11 April 2012 (UTC)
Allow option for deleting talk pages in batch deletion
When performing batch deletions, deletiong of any talk pages (under CSD G8) is usually desired. You should have such an option there. עוד מישהו Od Mishehu 09:35, 11 April 2012 (UTC)
Custom tags
Can't add custom tags? I click the button, add the tag, etc, but it doesn't save. --(ƒî)» 17:57, 12 April 2012 (UTC)
- Looks like there's one showing up at the bottom of your Twinkle settings. Have you bypassed your cache? jcgoble3 (talk) 18:39, 12 April 2012 (UTC)
- When you save your Twinkle preferences it informs you that you must clear your cache entirely, which is necessary in some browsers. — This, that, and the other (talk) 01:16, 13 April 2012 (UTC)
{{uw-username}}
The template {{uw-username}} asks for a parameter specifying the type of username problem, but the Twinkle template does not have a field to include the reason, which causes a failure message when the template transcludes. (Sorry, I don't have a github account) --Elen of the Roads (talk) 14:59, 15 April 2012 (UTC)
- Note that this was previously reported (Wikipedia_talk:Twinkle/Archive_29#.7B.7Buw-username.7D.7D) but apparently never fixed. jcgoble3 (talk) 17:51, 15 April 2012 (UTC)
- The logic dealing with {{uw-username}} is a bit broken; I'll have to take a look at it when I have more time. However, it worked for me in this diff. — This, that, and the other (talk) 01:21, 16 April 2012 (UTC)
Works for me. [2] The reason should be entered in the "optional message" field, and although it won't work in the preview, it will be inserted into the proper place in the template when you submit. jcgoble3 (talk) 01:49, 16 April 2012 (UTC)
- Fairy snuff. I assumed that the 'optional message' field was for something that was - you know - optional. Could you modify the template to at least say 'reason' rather than 'optional message'? --Elen of the Roads (talk) 02:44, 22 April 2012 (UTC)
Stub-sort
Would it be possible to add a feature allowing stub-tagging with Twinkle? Or does anybody know of a program that does that? Ryan Vesey Review me! 03:25, 22 April 2012 (UTC)
- See Wikipedia_talk:Twinkle/Archive_26#Stubs_.28again.29. Essentially, there's so many stub types that it's just not feasible. jcgoble3 (talk) 04:25, 22 April 2012 (UTC)
Welcome module overhaul
Here is a proposed list of welcome templates to be included in the overhauled module:
Mode | Standard welcomes | IP user welcomes | WikiProject-specific | Non-English welcomes |
---|---|---|---|---|
Templates |
{{Welcome}} {{Welcomeshort}} {{Welcome-personal}} {{WelcomeMenu}} {{Welcomeh}} {{Welcome-belated}} {{W-graphical}} {{W-screen}}
{{Welcomelaws}} {{First article}} {{Welcomevandal}} {{Welcomenpov}} {{Welcomespam}} {{Welcomeunsourced}} {{Welcomeauto}} {{Welcome-COI}} |
{{Welcome-anon}} {{Welcome-anon-test}} {{Welcome-anon-vandal}} {{Welcome-anon-vandalism-fighter}} {{Welcome-anon-constructive}} |
Jayanta suggests a few above. Perhaps it is a good idea to stick with a small selection, as he has done. The category is bursting at the seams. |
{{welcomeen-sq}} {{welcomeen-zh}} {{welcomeen-nl}} {{welcomeen-fi}} {{welcomeen-fr}} {{welcomeen-de}} {{welcomeen-he}} {{welcomeen-ja}} {{welcomeen-ko}} {{welcomeen-mr}} {{welcomeen-ml}} {{welcomeen-pt}} {{welcomeen-ru}} {{welcomeen-es}} {{welcomeen-sv}} {{welcomeen-uk}} |
What do people think? — This, that, and the other (talk) 09:10, 30 March 2012 (UTC)
- If you do add any project specific ones then they probably all need renaming to be more consistent, which would then make your coding easier to do. e.g. {{Welcome-ProjectName}} for a ProjectName specific template -- WOSlinker (talk) 09:25, 30 March 2012 (UTC)
- Some more existing ones like {{W-graphic}} and {{Wel-constructive-anon}} are missing. They are in the existing Twinkle Welcome module. I hope adding them here doesn't make you angry.--Ankit MaityTalkContribs 05:09, 1 April 2012 (UTC)
- No, not at all... in fact, it makes me happy to see that people are having their say.
- However, I really think that {{W-graphic}} is too similar to {{W-graphical}} - the only differences are the colour scheme and some minor changes to links. I would really want to include only one of them. This is one of the great problems that lies in choosing a good basic list of welcome templates - there is so much minor variation between templates, and people will always be disappointed that their favourite template is not in the list. (Of course, you can always use the custom welcome templates feature at WP:TWPREFS to add the welcome templates that you like.) — This, that, and the other (talk) 07:12, 1 April 2012 (UTC)
- Some more existing ones like {{W-graphic}} and {{Wel-constructive-anon}} are missing. They are in the existing Twinkle Welcome module. I hope adding them here doesn't make you angry.--Ankit MaityTalkContribs 05:09, 1 April 2012 (UTC)
Is there any particular reason why {{W-screen}} isn't included? It's my preferred option for welcoming new editors. PamD 09:14, 1 April 2012 (UTC)
- Eugh! I hate that bouncy WP logo. Still, I don't think we have anything really similar on the list, so I'll add it to the main list. — This, that, and the other (talk) 00:51, 2 April 2012 (UTC)
As you may have noticed, the new welcome module is now available on all user talk pages. Further suggestions (as well as bug reports) are welcome. — This, that, and the other (talk) 07:08, 5 April 2012 (UTC)
- Hello, Can you please add {{Welcomeen-or}}, Odia (or) Non-English welcome template in to MadiaWiki twinkle.js page. Thanks in advance :-) -- ɑηsuмaη ʈ ᶏ ɭ Ϟ 15:14, 10 April 2012 (UTC)
- Noted. Should be up soon. — This, that, and the other (talk) 07:30, 13 April 2012 (UTC)
- Thank You! very much. -- ɑηsuмaη ʈ ᶏ ɭ Ϟ 09:19, 22 April 2012 (UTC)
- Noted. Should be up soon. — This, that, and the other (talk) 07:30, 13 April 2012 (UTC)
Invalid token
CSD A7, getting the error message: Notifying initial contributor (Evan Jones1818): Failed to save edit: Invalid token Faced twice! You can alert me in my talk page when you'll post a reply!--Tito Dutta (Message) 14:56, 17 April 2012 (UTC)
- I'm getting it too when I post a welcome message and sending WikiLove. -- Luke (Talk) 14:03, 22 April 2012 (UTC)