User:Lupin/foo
Appearance
Bugs
[edit]- non-images with Image: links (eg ogg, pdf) are not dealt with gracefully
- titles on main links are wrong for edit, history, (un)watch and probably more
- http://wiki.riteme.site/wiki/MediaWiki:Categoriespagetext?action=history is not treated correctly at all
- if navlinks and summarydata are turned off, then images and preview aren't displayed!
- 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
- popupFixDabs shouldn't depend on popupSummaryData
- menus expose a rendering bug in opera, and user menu doesn't work
- menus make popups stay forever in konqueror
- menus probably don't work at all in IE (check)
- ironically, trying to fix redirects on a page which has been redirected to fails (or worse, may do something bad)
- Technicare - can't fix redirects with & in the name, it seems
Miscellany
[edit]- User talk:Korath/autovfd.js#Classic - 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
- 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:{{PAGENAME}}.png]] - should ignore image names
containing templates like urea
- 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
- Special:Contributions/Lupin
- http://wiki.riteme.site/wiki/Special:Contributions/Lupin
- http://wiki.riteme.site/w/index.php?title=Special:Contributions&target=Lupin
- http://wiki.riteme.site/w/index.php?title=Special:Contributions/Lupin
Also User:Lupin/monobook.js and User:Lupin/popups.js.
To do
[edit]high priority, not too demanding
[edit]- 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
- "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.
- as with the page info, so with user/page links. motivation: add links like
http://wiki.riteme.site/w/index.php?title=Special:Allpages&from=Neutrality&namespace=2
- on a double redirect page, (the source), autofixing the redirect hides the title. we should make an exception here.
- redirect fix link would look better appended to the top bit, not the redir target bit as per Zocky
tricky things to do
[edit]- 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
[edit]- detect red links and change the html accordingly
- if we are generating an image for an image link, add the image width to the start of the list of thumbnails to try
- for proper subpages of User:Foo, give links for the user (talk) page itself as well.
indicate redirects,make separately configurable from image trick- for image links, try to extract uploader information and # revisions?
- for disambiguation pages, try to extract the links (impossible?)
- get image pages and extract license information. Wikipedia:Image copyright tags#Tagging status has the main ones - could this also be used to difference commons images?
- direct links to media (like Media:timpani.ogg) should be handled, I think
- make it possible to add a new section to pages in the Wikipedia namespace (not just talk pages)
- previews for links to sections should ideally preview the section (fuzzy logic needed? or just case-insensitivity?)
- 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.
- make a link which toggles the simplePopups flag. set a cookie to remember it
- put the captions of images in the titles, if possible (not worth doing for visible images, except to be consistent)
- when image is enlarged, put extra links at the top (ie before the image) - contributor, full size, give thumbnail size
- http://www.w3schools.com/xml/xml_http.asp - use http status information
- 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.
- links to endnotes and maybe all anchors should get special treatment
- missing images link to Special:Upload. Maybe they should be treated like normal images (so that you can see deletion history etc)
- 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
- 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)
- 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
[edit]- BUG: titles for images are not transferred into the popup
- BUG: __toc__ can be lowercase too
Done
[edit]- Add a link for articles associated with talk pages
- Stop # messing things up (specifically watchlist, but probably other things too)
- Add newComment link (section=new)
- Section edit links don't work so well. Probably best to disable them.
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: [1] [2] (image preloading bit, IE-only, combine with last one) this looks promisingthis seems pretty good now. awaiting bugs...- 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
- 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
- Special:Contributions links like Special:Contributions/Lupin should be treated as user links (like the index.php?title=Special:... links)
- more sensible use of bandwidth (stopDownloadingImages)
- Make titles of generated links more readable
- toggle image size on click - nice!
- (tricky) get the first image on each page and shove that in the popup. -
nearly done, but fails for #ed addressesdone - BUG: usernames with underscores rather than spaces don't agree with Kate's tool
- BUG: redirect detection is too forgiving. For example, User:Daniel_Quinlan/redirects.
- BUG: Image:Lupin/foo.png - ignore image names containing templates
- Advanced Dungeons & Dragons - ampersands need fixing
- Pocket dimension
- BUG: [[:Image:{{PAGENAME}}.png]] - ignore image names containing templates like urea
- Kaballah, Kabbalah
- Indicate disambig and stub pages, number of images, wikilinks, categories, page size.
- when mouse moves off link, check somehow to see if it's over the popup, and if not, close it
- galleries should not be ignored!
- preview first sentence or two
- remeber which image loaded first (duh)
- 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.
- vandal blanking/nonsense/profanity/signature tests?
- ignore TOC links
- kate's tool doesn't seem to work for ip addresses. disable the link for them ip address regex: [3]
- kate's tool link is wrong for other wikis (eg wiktionary)
- konqueror doesn't seem to like the cdots. Make the separator configurable and default to something else in konq
- definition of popupimagesize is in the wrong place
- s/prehint/hint/ in penultimate line of wikiLink
- handle pages without lead sections such as Society
- if we get a redirect, add navlinks to that so we can edit redirect targets directly
- add a popupsWarnBadExtLinks, and implement a more general mechanism for adding information (array of functions)
- isInArticle, like isInToc - option for only activating links in article. this may break other skins... check
- 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
- konqueror seems to not include sentence-ending punctuation. probably has different regex behaviour, ie a bug in konqueror
- konqueror broken regex behaviour reports non-integers for various counts
- admin links - list all of these
- action=(un)protect, delete
- blocking?
http://wiki.riteme.site/w/index.php?title=Special:Blockip&ip=BishBashBosh
- deletion
- admin links (?)
- 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
- make the maximum number of sentences previewed configurable. and maximum character count too (unless first sentence exceeds it). and/or absolute maximum character count
- Figure out how to change the colours. CSS looks hopeful - http://www.bosrup.com/web/overlib/?Command_Reference
- Add a configurable border to make the darn thing visible in monobook - http://www.bosrup.com/web/overlib/?Command_Reference
- For history pages, check for oldid=... and change the main link and edit link accordingly. and the preview!! (optional)
- automate redirect fixage. maybe User :Korath/autovfd.js will be a good guide for this sort of thing
- automatic redirect fixage with User:Lupin/autoedit.js
- popups on the right of the screen are treated poorly, especially if popupInitialWidth isn't set (this is the default situation)
- Do something sensible with diff links and specific article revision links. what??
- similarly, navigational links ("next 50") on contribs pages are badly handled and would be better omitted.
Not done
[edit]- 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
- investigate automatically querying kate's tool - looks impossible from JS
- for slow-loading pages, load the script periodically (this is probably hard
to get right. or we could have a crippled version until the page completes loading). - i can't be doing with this
- 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
- flags for each namespace - boring