Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Features  





2 Installation  



2.1  Vector  





2.2  Other skins  
















User:Zocky/Picture Popups

















User page
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
User contributions
User logs
View user groups
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

< User:Zocky

Zocky's javascript tools

  • Picture Popups - the Javascript tool that makes clicking on image thumbnails work As Nature Intended. users Now for Vector! users
  • Search Box - search and replace in the edit box. users
  • Auto Complete - auto complete titles of articles in the search input box on the left. users
  • Link Complete - auto complete titles of articles when typing links in the edit box. users
  • Picture popups is a Javascript tool which makes clicking on image thumbnails work As Nature Intended. Normally, clicking on a thumbnail takes you to the image page with the large version of the image and information about it. With Picture Popups, the image, its caption and licensing information are displayed in a popup window inside the article page. users

    Features

    [edit]

    [Screenshot needed]

    See images without leaving the article you are reading
    Licensing information
    HTML/CSS popups
    Enlarge images in place

    Installation

    [edit]

    Currently, the tool works in Firefox and Mozilla. In Opera, it works with some quirks: minimizing works incorrectly and copyright information is not displayed. I am looking into making it work in Internet Explorer.

    Vector

    [edit]

    Edit your vector.js and paste in this line:

    // [[User:Zocky/PicturePopupsVector.js]]
    importScript('User:Zocky/PicturePopupsVector.js');
    

    By default, popups display 800×600 pixel images. To change this to e.g. 640×480, add the following lines:

    window.picturePopupsWidth = 640;
    window.picturePopupsHeight = 480;
    

    Clear your browser's cache and when you click an image thumbnail, a picture popup should appear.

    To install the script on the commons or wiktionary, repeat this procedure on those wikis.

    To uninstall the script, delete those lines from your javascript file and clear your browser's cache.

    Other skins

    [edit]

    You have to create (or edit) a file in your userspace. For most people who don't use vector, this file is called User:USERNAME/monobook.js where you should replace USERNAME with your username. Note that the case is important here: it's monobook.js and not Monobook.js.

    (People using the classic skin should edit standard.js instead, and people using other skins probably know which file to edit :-)

    Edit that page and paste in this line:

    {{subst:User:Zocky/PicturePopups}}
    

    Clear your browser's cache and when you click an image thumbnail, a picture popup should appear.

    To install the script on the commons or wiktionary, repeat this procedure on those wikis.



    Retrieved from "https://en.wikipedia.org/w/index.php?title=User:Zocky/Picture_Popups&oldid=1071808227"

    Category: 
    Wikipedia scripts
     



    This page was last edited on 14 February 2022, at 12:52 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki