Wikipedia:Village pump (technical)/Archive 65#Search page help
{{Wikipedia:Village pump/Archive header}}
Isolating editors edits in an article
Okay, lets say I have the article: SuperFerry 9. Edit history here: SuperFerry 9 (history)
Is there anyway to isolate the edit history of one editor on that specific article?
For example, on SuperFerry 9, this page:
:http://toolserver.org/~daniel/WikiSense/Contributors.php?wikilang=en&wikifam=.wikipedia.org&grouped=on&page=SuperFerry+9
Shows that: User:Shinerunner has contributed 19 contributions to the page. Can I see those 19 contributions on one wikipedia page?
Thanks in advance. Ikip (talk) 02:00, 8 September 2009 (UTC)
:Bugzilla:10788. The API can already do this, for example see: [http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=SuperFerry%209&rvlimit=max&rvuser=Shinerunner titles=SuperFerry_9 + rvuser=Shinerunner]. You could also add [http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=SuperFerry%209&rvlimit=max&rvuser=Shinerunner&rvdiffto=prev rvdiffto=prev] which would give you the table-wrapped diff of each edit (escaped of course, and only where cached). These api features would make such a tool easy as a bot or userscript. --Splarka (rant) 07:22, 8 September 2009 (UTC)
::Splarka, I would give you another barnstar, but a second in three days would be presumptuous. :) THANK YOU! Ikip (talk) 07:29, 8 September 2009 (UTC)
:::Oh crap, it is XML. That works, but is there any more easy way to see these diffs? Ikip (talk) 07:30, 8 September 2009 (UTC)
::::There are several formats you can get the html table wrapped in (but note it is escaped in most of them), see the end of [http://en.wikipedia.org/w/api.php the api help]. But no, you can't get the diffs in anything but the html tables that mediawiki uses. --Splarka (rant) 11:05, 8 September 2009 (UTC)
In case you're interested, this sounded pretty handy, so I put together a small script that allows you to filter the standard page history view by user. It adds a little box to the history page where you can enter a username, and it will display up to the last 500 edits that user made to the page. For monobook and Firefox/Chrome - dunno about the others, definitely not IE:
:That is handy. Already used it to pick out and revert some repeated vandalism mangled by partial reverts. ---— Gadget850 (Ed) talk 19:25, 8 September 2009 (UTC)
::It turns out it works fine in vector also. Yay. Ale Jrbtalk 20:02, 8 September 2009 (UTC)
:::thanks for your time once again splarka. would I put this gadget in monobook Ale jrb? Ikip (talk) 15:44, 12 September 2009 (UTC)
::::Yeah - you copy the bolded text exactly onto a new line in User:Ikip/monobook.js (assuming you're using the monobook skin; use User:Ikip/vector.js if you're using vector) then bypass your browser cache - there are instructions on the JavaScript page for doing that. Ale Jrbtalk 21:04, 12 September 2009 (UTC)
There's also "Per-page contributions – finds all the edits by a user to a single page", which I came across today at Wikipedia:Tools. Presumably it uses the API mentioned above. –Whitehorse1 19:34, 13 September 2009 (UTC)
Better diff engine needed
Wikipedia's diff engine [http://en.wikipedia.org/w/index.php?title=Wikipedia%3ACriteria_for_speedy_deletion&diff=311075194&oldid=305262248 sucks]; for instance, trivial changes cause the diff engine to give up and reproduce the older and newer versions verbatim. WikEd's diff engine fails in the other direction; for instance, look at [http://en.wikipedia.org/w/index.php?title=Wikipedia%3AManual_of_Style_%28dates_and_numbers%29&diff=311110831&oldid=304926164 this], and see how it reports a completely new section [Delimiting (grouping of digits)] as if it were a mish-mash of random words from two sections. Surely, somewhere in the world, someone has written a better diff engine. Can anyone point me in the right direction? - Dank (push to talk) 17:32, 12 September 2009 (UTC)
:Diffs are tricky. Every diff engine I have seen has some fault or another. If you can find a better one that is open source I am sure it will be given consideration. Chillum 17:43, 12 September 2009 (UTC)
::The better diff algorithms have upper bounds of O(n4) which allow denial of service attacks since usable constants are harder to place. Also you may want to have a look at mw:Visual Diff. — Dispenser 04:56, 13 September 2009 (UTC)
:::Thanks kindly! - Dank (push to talk) 12:28, 14 September 2009 (UTC)
Speedy deletion vandalism
I just came across a vandal adding a speedy deletion template[http://en.wikipedia.org/w/index.php?title=Cui_Yingjie&diff=313486845&oldid=294789432], and I'm wondering if there is any technical way to prevent that. It probably doesn't occur often enough to justify any nontrivial programming effort, but I thought it can't hurt to ask. — Sebastian 03:08, 13 September 2009 (UTC)
:How exactly do think should the software guess that it's a vandal? Any anonymous editor adding a speedy deletion template? Svick (talk) 09:11, 13 September 2009 (UTC)
Pop-ups
Is there anyway currently in wikipedia to create popups, similar to Wikipedia:Tools/Navigation popups. Thank you. Ikip (talk) 05:55, 13 September 2009 (UTC)
:What do you need that for? I don't think it would be a good idea to use popups in articles, if that's what you want to do. Svick (talk) 09:24, 13 September 2009 (UTC)
::LOL you are the first person to ever ask why I want to do something on tech. Usually editors simply happily help me oblivious to the fact that they are complicit in my evil plans to take over the world. ;-)
::Articles: absolutely not. this would apply only to subpages of a wikiproject.
::I assume it is not enabled, because I have never seen it outside of Wikipedia:Tools/Navigation popups Ikip (talk) 10:43, 13 September 2009 (UTC)
:::What exactly are you intending to pop-up? :S It's not a question of it being 'enabled' - popups are a user JavaScript that makes a pop-up appear when you hover over any wiki link. If you want them, add it to your monobook or enable the gadget. Ale Jrbtalk 10:57, 13 September 2009 (UTC)
::::Scraped Google news result for current AFDs, but these pop ups would be on a subpages of a wikiproject, as mentioned above.
::::How would i go about making my own pop ups? is there documentation? I am familar with what monobook.css. thanks for your time gentlemen. Ikip (talk) 11:30, 13 September 2009 (UTC)
:::::Yikes :P. Firstly, you can't really use the existing pop-ups as a basis here, as what you're trying to do is completely different. Secondly, you'll have to create (or get created on your behalf) a whole new script to do what you want. Finally, you will have to get anyone who wants to use it to install it on their monobook.js pages. Alternatively, you could get a bot created that does the scrapes and just posts the results - this would then need maintaining, but you wouldn't have to install anything; not sure what would be better/easier. Ale Jrbtalk 11:37, 13 September 2009 (UTC)
::::::Yikes
::::::Your telling me :) I could never do this myself! Way to complex.
::::::Oh, the scraping part is no problem. I have a friend who is an expert on autohotkey thankfully working on this now. I would simply paste the generated info to the page.
::::::The monobook.js part (having editors add pop script) is okay. I just need to find someone willing to do write the script. Where could I request help for this? Ikip (talk) 16:37, 13 September 2009 (UTC)
:::::::Not Help:User style, it redirects from Help:Monobook.css, but there is nothing on the talk page... Ikip (talk) 16:41, 13 September 2009 (UTC)
(reset indent) So you're going to copy and paste the scrapes of various Google pages onto a subpage somewhere, and you need a script that will display the information in a pop-up when a user does something. Hmm. It would be more efficient if the script itself did the scraping, but more effort for the script coder. The place to go for a script request is Wikipedia:WikiProject User scripts/Requests but the average response time is about never, so you'd be better approaching a coder directly - preferably one who would find the thing useful. Ale Jrbtalk 16:55, 13 September 2009 (UTC)
:Your advice is fabulous. thanks.
:You enthusiasm for the the possibility that I would be getting help with this is heart warming. :) j/k. Ikip (talk) 17:19, 13 September 2009 (UTC)
Ideas?
Tonight,
- wikED stopped working. I get the basic editor only.
- User contributions link vanished from the toolbox.
I have tried:
- If I log out, the contributions link returns, so it isn't browser related.
- Contributions behaviour is the in all 3 browsers I have (just to be sure).
- Contributions acts the same on 2 different computers.
- I reset my preferences (ouch), but that didn't help either problem.
- I checked my monobook.js file and it remains empty.
I am mystified. Any ideas? I have put too many computers through the recycling crushers and the @#$% things hate me.Sinneed (talk) 06:28, 13 September 2009 (UTC)
I also killed the watch/unwatch tab at the page top in the debugging, it seems.Sinneed (talk) 06:33, 13 September 2009 (UTC)
:* OK I found the wikED problem...I had turned off the toggle at the top right corner of the page.
:* I remain clueless about the user contributions and watch/unwatch links. I can still reach them by submenus...but did something change or did I "brokeded" it? :}
Any wisdom would be welcome.05:02, 14 September 2009 (UTC)
Linking categories outside Wikipedia Commons to file in Wikipedia Commons
I can't seem to use a category from Wikipedia English on a file that is in Wikipedia Common. Wikipedia Common says it is a non-existent category. But the category does exist in Wikipedia English (e.g. Category:Military operations involving the United States). I am hoping there is a way to do this.Mfstelmach (talk) 07:48, 13 September 2009 (UTC)
:
should work. PC78 (talk) 11:39, 13 September 2009 (UTC)
::Note however that Commons has a separate categorization system from en.Wikipedia (and all other projects as well). Categorizing Commons content based on another project's category pages is a bad idea, just as it would be a bad idea to categorize things here based on Commons categories. That being said, I'm fairly certain that Commons has a similar (if not the same) matching category of their own already. Attempting to use the :en:Category link will only create a link, and not actually categorize the file, anyway.
— V = I * R (talk to Ω) 12:40, 13 September 2009 (UTC)
:::Perhaps I misunderstood what was being asked. The method I described above will only create a link to the en.Wikipedia category. If you're trying to categorise a file on Commons then you can only use the categories there. commons:Category:Military operations seems to be the closest fit, but you could always create commons:Category:Military operations involving the United States if you feel it is necessary. PC78 (talk) 12:49, 13 September 2009 (UTC)
::::Interesting ... Thanks for great technical information. However, wikipedia seems to need a significant expansion of capability in this area. Being able to only create a link between en.Wikipedia and Commons does not seem to be very useful. Why not allow categorising a file on Commons. Why is it a bad idea to increase category cross-references between Commons and other area. Maybe I am missing something. But it seems like we are trying to keep files in Commons hidden so they will never be found or used. Also, if it is so difficult to categorize and cross-reference files in Commons to content in en.Wikipedia then maybe it is better to put images and media outside of commons in en.Wikipedia. It seems like a quite a bit of work to replicate the en.Wikipedia categories in commons. But, it is impossible to replicate en.Wikipedia content in Commons. All of the fertile synergistic category cross-referencing between en.Wikpedia and Commons is lost. Seems like an incredible waste to me. I hope this is fixed soon. Best regards, Mfstelmach (talk) 21:11, 13 September 2009 (UTC)
:::::Don't forget that English Wikipedia isn't the only one. And as its name suggests, Commons is common for all language versions of Wikipedia. Do you think it would be useful to have the same image categorized in dozens of similar categories, only in different languages? But I think that English Wikipedia category page could contain a link to corresponding Commons category. Svick (talk) 21:24, 13 September 2009 (UTC)
::::::You are right. Thanks for your comment. This issue is not limited to en.Wikipedia. I believe it would be extremely useful to have the same image categorized in dozens of similar Wikipedia categories, only in different languages. Maybe some day this will be possible to do on Wikipedia.Mfstelmach (talk) 19:32, 20 September 2009 (UTC)
Some Wikipedia pages don't open but start a download
Sometimes (but not always!) when I click on a link to a wikipedia article the browser will not open the page but a window will open asking whether I want to open or download the page. If I click on open it will anyway start a download and not open the page. When I have Getright active, the download will be handled by getright, otherwise MS IE does the same thing.
It also happens when I search the term from the Wikipedia main page. It does not happen with all search terms, only with some, so I am not able to read these articles.
I am using IE8 and Windows XP. Can anybody tell me how to resolve the issue? I did not find it discussed in the Q&A yet.
Windows message:
Windows has the following information about this MIME type. This page will help you find software needed to open your file.
MIME Type: application/x-gzip-compressed
Description: UnKnown
Windows does not recognize this MIME type. --Toscanaman (talk) 13:10, 13 September 2009 (UTC)
:Please see [http://blogs.msdn.com/chaun/archive/2009/06/06/ie-8-seems-unable-to-display-some-wikipedia-pages-application-x-gzip-compressed-mime-type.aspx this MS blog post]. It might be of some help. —TheDJ (talk • contribs) 13:57, 13 September 2009 (UTC)
::According to the [http://forums.keynote.com/forum/messageview.cfm?catid=93&threadid=410 KITE product manager] 4/13/2009, reverting to IE7 is the work-around. --Ancheta Wis (talk) 14:10, 13 September 2009 (UTC)
:::Better still, install Firefox instead. Lugnuts (talk) 16:33, 13 September 2009 (UTC)
::::I get this with FireFox occasionally. I think it occurs when my connection gets slow and the page is only partially rendered, thus FF does not recognize it as a web page and prompts to save it.---— Gadget850 (Ed) talk 23:32, 13 September 2009 (UTC)
Technical Issue
I’m really unsure where to discuss this, so I’m leaving it here to be forwarded to the appropriate parties:
Look past the fact that this link is to a fictional person:
:Template talk:Star Wars character#Ditto .22height.22
The discussion link above mentions that personal attributes such as those seen on any standard Personal Information Document (drivers licenses, wanted posters, etc) do not, in fact, appear on ANY page on individual persons (for example, [Ghandi|Mahatma GANDHI] in any orderly fashion; I submit that revamping the personal tables (where the picture usually is located) with exactly this information (height, weight, eye color, hair color, race, ethnicity, religious preference, etc) should be included, with “Unknown” or “Not Applicable” when appropriate (with Unknown as the default/placeholder entry). There will be those that say such information is irrelevant; I submit to you that it is precisely relevant. In GHANDI’S case, for example, his passive (non-violent) policies were sculpted by his experiences in early life (that violence only brought more violence in turn) and his religious upbringing. Those that feel it’s “not worth the effort” should leave their laziness elsewhere, and not waste other people’s time if they don’t wish to assist in the process. (Yes, I’ve seen that excuse before as well.)71.34.70.201 (talk) 19:29, 8 August 2009 (UTC)[http://www.geocities.com/andering_reddson|Andering_J_REDDSON]
:Note: this thread has been moved from Wikipedia talk:Village pump. ▫ JohnnyMrNinja 18:48, 13 September 2009 (UTC)
::What have height, weight, eye colour, etc. have to do with career influences in childhood. How would you put "his passive (non-violent) policies were sculpted by his experiences in early life (that violence only brought more violence in turn)" into an infobox? Such things, if indeed relevant, belong in the text of the article, not trivially enumerated in the infobox. OrangeDog (talk • edits) 22:56, 13 September 2009 (UTC)
Mistakes made with AWB
Help? I made a really bad mistake using AWB. Because of a mistake in the creation of a regular expression I changed and unknown number of level three headers to become level two headers. There might be over a thousand pages involved. Is there a way to roll back that may edits. Waiting is only going to make things worse. I'll watch his page. --droll [chat] 00:37, 11 May 2009 (UTC)
Thanks to all who responded I think I can handle it. I've fixed about 700 already. Only about 1 in 12 of the articles have a problem. I want to get it done ASAP. I should have it done by late tonight. --droll [chat] 02:05, 11 May 2009 (UTC)
:Note: this thread has been moved from Wikipedia talk:Village pump. ▫ JohnnyMrNinja 18:48, 13 September 2009 (UTC)
Hiding stubs
I'm working on an article and the subject of the article falls under 5 stub types. As I don't really want 5 stubs to show up on the article (the sub list would be longer than the article info), is there a way to hide the stub comment but still have the stub be active (not using a hidden comment)? I haven't been able to find any info in a short search. Thanks. OlYellerTalktome 14:12, 19 May 2009 (UTC)
:Maybe just adding the category added by the stub would be the best way as the rest of the stub template it just for show anyway. OlYellerTalktome 14:16, 19 May 2009 (UTC)
::I have been in such situations also. Why don´t you put scroll-bar boxes or collapsible wiki-templates (like this one) for such cases? - Damërung ...ÏìíÏ... ΞΞΞ . -- 19:54, 21 May 2009 (UTC)
:::The
::::Note: this thread has been moved from Wikipedia talk:Village pump. ▫ JohnnyMrNinja 18:48, 13 September 2009 (UTC)
Help with statistics
I'm trying to determine how many hits the page 16"/45 caliber Mark 6 gun got while up as a DYK, but I got a problem: every time I use [http://stats.grok.se/ this tool] I get the results for the page 16. Can some one tell me how to fix this, or work around it, so I can see the stats? TomStar81 (Talk) 06:49, 23 August 2009 (UTC)
:You want to post this question at Wikipedia:Village pump (technical). Normally I would suggest contacting the tool's author, User:Henrik, but it does not look like he is very active. I tried using the html names from viewing the article's page source in my browser but it didn't work. Good luck :-) --Commander Keane (talk) 08:44, 23 August 2009 (UTC)
::I think [http://stats.grok.se/en/200908/16%22/45_caliber_Mark_6_gun these] stats are accurate. The tool works for the display of stats, but formats the link incorrectly if you then try to change the date displayed or click through to the article. At any rate, the stats for the article 16 are very different.-gadfium 09:39, 23 August 2009 (UTC)
:::Note: this thread has been moved from Wikipedia talk:Village pump. ▫ JohnnyMrNinja 18:48, 13 September 2009 (UTC)
coloring 'legend' with css on 'my preferences' page
In my css I have the following:
fieldset {
background: #000000 !important;
color: #FFFFFF !important;
border: 1px solid #FFFFFF !important;
}
legend {
background: #000000 !important;
color: #FFFFFF !important;
border: 1px solid #FFFFFF !important;
}
This works for everything on the 'my preferences' page except the row of buttons. the source code looks like this: