User:Lupin/foo

Bugs

 * 1) non-images with Image: links (eg ogg, pdf) are not dealt with gracefully
 * 2) [[Image:!"£$%^&*--= @,.;-?-\\~---',.-test.png|right|100px|thumb| [[:Image:!"£$%^&*--= @,.;-?-\\~---',.-test.png|A test]] with lots of crazy characters]]
 * 3) titles on main links are wrong for edit, history, (un)watch and probably more
 * 4) http://en.wikipedia.org/wiki/MediaWiki:Categoriespagetext?action=history is not treated correctly at all
 * 5) if navlinks and summarydata are turned off, then images and preview aren't displayed!
 * 6) redirs to dab pages don't play nicely. eg Victoria - if fixdabs is on, the the first popup is fine but subsequent ones aren't. some stupid global issue, no doubt
 * 7) popupFixDabs shouldn't depend on popupSummaryData
 * 8) menus expose a rendering bug in opera, and user menu doesn't work
 * 9) menus make popups stay forever in konqueror
 * 10) menus probably don't work at all in IE (check)
 * 11) ironically, trying to fix redirects on a page which has been redirected to fails (or worse, may do something bad)
 * 12) Technicare - can't fix redirects with & in the name, it seems

Miscellany

 * User talk:Korath/autovfd.js - adding links to the top bar


 * User:Lupin/standard.css
 * User:Lupin/standard.js - classic skin javascript, featuring:
 * annoying blue popup links provided by overlib for wikipedia goodness
 * regexp find/replace in edit pages
 * one-click fixage of mangled external links
 * edit lead sections
 * livepreview
 * eliminate superfluous entries in the quickbar



For testing: Image:groovalicious-blue-wikipedia-popups.png containing templates like urea
 * User:Lupin/foo2
 * Wadham College
 * United states dollar (first image uses underscores instead of spaces)
 * Wadham College, Oxford
 * Advanced Dungeons & Dragons - ampersands need fixing
 * Pocket dimension
 * Kaballah, Kabbalah (first image uses %-escaped comma)
 * Image:.png - should ignore image names
 * OF, WJ, MM, QPR
 * Pheiku
 * User:Dbenbenn (still broken - image regex needs work)
 * United Kingdom, Kingdom of Ireland
 * Unix System V - commons-only image
 * Victoria - redir to dab page


 * User:Lupin/Pages with buggy previews


 * Special:Contributions/Lupin
 * http://en.wikipedia.org/wiki/Special:Contributions/Lupin
 * http://en.wikipedia.org/w/index.php?title=Special:Contributions&target=Lupin
 * http://en.wikipedia.org/w/index.php?title=Special:Contributions/Lupin

Also User:Lupin/monobook.js and User:Lupin/popups.js.

high priority, not too demanding
http://en.wikipedia.org/w/index.php?title=Special:Allpages&from=Neutrality&namespace=2
 * 1) if an image thumb gets taken from the commons (this is probably-good-enough for "image is on the commons") then shove extra navlinks in there
 * 2) "I can only think of one minor improvement (very low priority though): a message of some kind in the case neither ActiveX nor standard HttpRequests can be created." - good idea.
 * 3) as with the page info, so with user/page links. motivation: add links like
 * 1) on a double redirect page, (the source), autofixing the redirect hides the title. we should make an exception here.
 * 2) redirect fix link would look better appended to the top bit, not the redir target bit as per Zocky

tricky things to do

 * 1) See FIXME in code: waste less CPU time by using timeouts. Put html generation code into its own function (user-configurable). this would break everything. in spades.

other things to do

 * 1) detect red links and change the html accordingly
 * 2) if we are generating an image for an image link, add the image width to the start of the list of thumbnails to try
 * 3) for proper subpages of User:Foo, give links for the user (talk) page itself as well.
 * 4) indicate redirects, make separately configurable from image trick
 * 5) for image links, try to extract uploader information and # revisions?
 * 6) for disambiguation pages, try to extract the links (impossible?)
 * 7) get image pages and extract license information. Image copyright tags has the main ones - could this also be used to difference commons images?
 * 8) direct links to media (like [[Media:timpani.ogg]]) should be handled, I think
 * 9) make it possible to add a new section to pages in the Wikipedia namespace (not just talk pages)
 * 10) previews for links to sections should ideally preview the section (fuzzy logic needed? or just case-insensitivity?)
 * 11) use CSS (we can add CSS from javascript, right? or just tell the user to do it) to make the popup-enabled links stand out.
 * 12) make a link which toggles the simplePopups flag. set a cookie to remember it
 * 13) put the captions of images in the titles, if possible (not worth doing for visible images, except to be consistent)
 * 14) when image is enlarged, put extra links at the top (ie before the image) - contributor, full size, give thumbnail size
 * 15) http://www.w3schools.com/xml/xml_http.asp - use http status information
 * 16) 0 bytes, ~0 wikilinks is BAD - should these be added to the cache? dunno. check http error or something? Seems to happen mostly when a new page is loaded before data is gathered. So check return codes or summat.
 * 17) links to endnotes and maybe all anchors should get special treatment
 * 18) missing images link to Special:Upload. Maybe they should be treated like normal images (so that you can see deletion history etc)
 * 19) Is it possible to provide a setting so that you can click on un|watch and it'll remove/add the item to your watchlist without having to go to another page? If it were possible to have it open up another window that closes either after a short amount of time or when it is finished loading, that might work. — BRIAN0918 • 2005-10-23 18:40
 * 20) An idea... ... for when you get around to extracting bits of pages for the popups: it would be brilliant if there was a popup menu on the username in the top bar that listed all the pages in one's userspace, for one-click access to sandboxes etc. In the meantime, it would be good enough if the menu displayed a certain page from the user's userspace, say, User:XY/Popup links, so that any user could construct a customized shortcut menu. Zocky 20:19, 31 October 2005 (UTC)
 * 21) Any chance that popups on image links could say how many times the image is used? It would be very useful for finding orphaned images... Justinc 11:29, 3 November 2005 (UTC)

Done in User:Lupin/popupsdev.js

 * 1) BUG: titles for images are not transferred into the popup
 * 2) BUG:  can be lowercase too

Done

 * 1) Add a link for articles associated with talk pages
 * 2) Stop # messing things up (specifically watchlist, but probably other things too)
 * 3) Add newComment link (section=new)
 * 4) Section edit links don't work so well. Probably best to disable them.
 * 5) Image thumbnails for (non-visible) image links? http://pajhome.org.uk/crypt/md5/md5src.html has a javascript md5sum function; to get location, need to hash filename and take first two characters x/xy. default thumbnail size is 180px, default gallery thumb size is 120px. How to check for a missing image:   (image preloading bit, IE-only, combine with last one) this looks promising this seems pretty good now. awaiting bugs...
 * 6) make popup images into links that do something. options: (1) link to thumb; (bad idea, unpredictable) (2) link to full-size image directly; (useful!) (3) another link to image page (superfluous, but intuitive), (4) ?? -- opted for (2), with a title
 * 7) bug: mouseover an image and then quickly over a non-image link, before the image is displayed. the image is displayed in the non-image popup
 * 8) Special:Contributions links like Special:Contributions/Lupin should be treated as user links (like the index.php?title=Special:... links)
 * 9) more sensible use of bandwidth (stopDownloadingImages)
 * 10) Make titles of generated links more readable
 * 11) toggle image size on click - nice!
 * 12) (tricky) get the first image on each page and shove that in the popup. - nearly done, but fails for #ed addresses done
 * 13) BUG: usernames with underscores rather than spaces don't agree with Kate's tool
 * 14) BUG: redirect detection is too forgiving. For example, User:Daniel_Quinlan/redirects.
 * 15) BUG: Image:.png - ignore image names containing templates
 * 16) Advanced Dungeons & Dragons - ampersands need fixing
 * 17) Pocket dimension
 * 18) BUG: Image:.png - ignore image names containing templates like urea
 * 19) Kaballah, Kabbalah
 * 20) Indicate disambig and stub pages, number of images, wikilinks, categories, page size.
 * 21) when mouse moves off link, check somehow to see if it's over the popup, and if not, close it
 * 22) galleries should not be ignored!
 * 23) preview first sentence or two
 * 24) remeber which image loaded first (duh)
 * 25) BUG: (for my reference) don't set img.src to be an empty string to try to cancel downloads or for initial setup. firefox then tries to retrieve the current url as an image, making for muchas wasted bandwidth. instead, don't set img at all initially, and using delete seems more successful. or maybe it does nothing. but it's an improvement.
 * 26) vandal blanking/nonsense/profanity/signature tests?
 * 27) ignore TOC links
 * 28) kate's tool doesn't seem to work for ip addresses. disable the link for them ip address regex:
 * 29) kate's tool link is wrong for other wikis (eg wiktionary)
 * 30) konqueror doesn't seem to like the cdots. Make the separator configurable and default to something else in konq
 * 31) definition of popupimagesize is in the wrong place
 * 32) s/prehint/hint/ in penultimate line of wikiLink
 * 33) handle pages without lead sections such as Society
 * 34) if we get a redirect, add navlinks to that so we can edit redirect targets directly
 * 35) add a popupsWarnBadExtLinks, and implement a more general mechanism for adding information (array of functions)
 * 36) isInArticle, like isInToc - option for only activating links in article. this may break other skins... check
 * 37) konqueror breaks the images - probably the test for whether images are loaded or not doesn't work properly there. also undefinedpx... probably something broken anyway with default thumb size. Fix: disable images by default for konqueror
 * 38) konqueror seems to not include sentence-ending punctuation. probably has different regex behaviour, ie a bug in konqueror
 * 39) konqueror broken regex behaviour reports non-integers for various counts
 * 40) admin links - list all of these
 * action=(un)protect, delete
 * blocking?

http://en.wikipedia.org/w/index.php?title=Special:Blockip&ip=BishBashBosh
 * deletion


 * 1) admin links (?)
 * 2) when a page is empty, say so, don't give me that 0 bytes spiel. and don't display a HR when the preview comes out as just whitespace
 * 3) make the maximum number of sentences previewed configurable. and maximum character count too (unless first sentence exceeds it). and/or absolute maximum character count
 * 4) Figure out how to change the colours. CSS looks hopeful - http://www.bosrup.com/web/overlib/?Command_Reference
 * 5) Add a configurable border to make the darn thing visible in monobook - http://www.bosrup.com/web/overlib/?Command_Reference
 * 6) For history pages, check for oldid=... and change the main link and edit link accordingly. and the preview!! (optional)
 * 7) automate redirect fixage. maybe User :Korath/autovfd.js will be a good guide for this sort of thing
 * 8) automatic redirect fixage with User:Lupin/autoedit.js
 * 9) popups on the right of the screen are treated poorly, especially if popupInitialWidth isn't set (this is the default situation)
 * 10) Do something sensible with diff links and specific article revision links. what??
 * 11) similarly, navigational links ("next 50") on contribs pages are badly handled and would be better omitted.

Not done
to get right. or we could have a crippled version until the page completes loading). - i can't be doing with this
 * 1) Make popups-dev.js and source it from my standard.js. Make popups.js a crunched form of popups-dev.js. Automate this. somewhat pointless, methinks
 * 2) investigate automatically querying kate's tool - looks impossible from JS
 * 3) for slow-loading pages, load the script periodically (this is probably hard
 * 1) maybe context menus are possible after all - see http://www.dynamicdrive.com/dynamicindex1/contextmenu.htm - although it'd replace rather than augment the existing menu so perhaps isn't so great
 * 2) flags for each namespace - boring