SuperHamster on most wikis. Kevin Payravi on the Wikimedia Commons.
I currently serve on the Board of Wikimedia DC and the steering committee for WikiConference North America. I also co-organize Wiki Loves Monuments in the United States.
SuperHamster on most wikis. Kevin Payravi on the Wikimedia Commons.
I currently serve on the Board of Wikimedia DC and the steering committee for WikiConference North America. I also co-organize Wiki Loves Monuments in the United States.
Can confirm, global user scripts now load properly on Wikipedia.
The View it! API has been updated to support a ?caption=true query parameter. When provided, the API will return captions in all available languages for each image.
The title attribute has been added to images in both the carousel and full-gallery view. The on-hover UI is in-progress.
This has been fixed via adding width: 0px; min-width: 100%; to the View it! gallery element. This causes the element to have no width for the sake of its parent elements calculating their widths, but it will appear at 100% width of the page contents.
To get this to work, we would probably have to re-initialize MediaViewer after View it!'s carousel has loaded. I've done some investigating, and also got some guidance from @Tgr.
When viewing a Wikidata item without a P18 statement, View it! carousel images will have a "+" icon as shown:
This would probably only be done in source editor, since the alt text is hidden away in a popup menu in Visual Editor.
A "Close View it!" button has been added below the carousel, floated to the right side of the article title next to where article status icons usually go (featured articles, protection lock icons, etc.)
Carousel now works in source editor as well. To get the q-number, the DOM is queried to pull the q-number from the sidebar's "Wikidata item" link. This isn't ideal and more of a quick solution, pending using an API call (though querying the DOM has the added benefit of not having to wait for an API call to complete).
Copy-to-clipboard has been launched and works in both VE and source editor. The copy-to-clipboard button only appears when editing the page.
After discussion, we will be adding a "copy to clipboard" feature for images in the carousal. This is a solid and relatively quick solution that will work in both Visual Editor and source editor. More intricate functionality (like placing an image wherever your cursor is in VE) may be considered in the future.
Image carousel now works when editing via Visual Editor. This was done by setting pointer-event and opacity CSS on the View it! container, in order to overwrite the ve-init-mw-desktopArticleTarget-uneditableContent class that is applied to the container when VE is activated.
Added a blacklist to the script that currently just has Main_Page
Script is in-progress that outputs an expandable image carousal that can be expanded into a grid. The script pulls from the View it! API.
This has been implemented and successfully tested on both desktop and mobile.
The introductory logo+text now only appears on the homepage (i.e. user hasn't performed a search yet).
Oauth authentication is now working; can try it out via https://view-it.toolforge.org/login.
Progress is being made; requested an OAuth consumer key (20f7833888703a9e334d3de1b4501941)
Since clicking the View it! portlet link now opens in a new tab (T317214), it may be a good idea to remove the "return to article" button, as all the user needs to do to return to the article is switch or close tabs. Removing the button also helps reduce how crowded the top of the page is getting, especially with advanced search enabled.
Support for P373 has been added to the UI.
Published changelog here: https://meta.wikimedia.org/wiki/View_it!_Tool/Changelog
Published at https://gitlab.wikimedia.org/kevinpayravi/view-it
This has been implemented (see screenshot), in both the UI and API (API parameter is freetext).
This has been launched for Vector Legacy, Vector 2022, and Timeless.
I've got this working with Vector (the old version), though it's not pushed live yet. I may tune the gradient and text color.
incategory search has been added to the View it! API.
API endpoint has been expanded with offsets and filters.
User script now supports multiple languages.
From T317589: Logging is working again, and I'll be able to extract this data manually as needed. I can probably put a quick script together that trawls through the logs and outputs counts for each project.
Started a JSON page where translations for the user script will live:
https://meta.wikimedia.org/wiki/View_it!_Tool/translations.json
Logs have been created, with each request formatted as:
=========================== Request at Tue Sep 13 2022 01:07:51 GMT+0000 (GMT): User agent: Mozilla/5.0... Path name: / Query: q=Q2
I have created a Node/Express API with basic functionality, allowing you to pull 20 images for a Q-number. I'll soon expand this to allow filtering, pagination, and additional metadata if it's available. Once complete, the frontend UI can start using it as well.
We now have a separate test page where work on this has begun:
https://view-it.toolforge.org/test/
Tool now checks for valid Q-number format (user can provide either an integer, or a Q followed by an integer).