View it! is a tool in Development that will show users (editors, and hopefully readers) relevant Wikimedia Commons media depicting—or otherwise related to—the article they are reading. As the tool develops, this page will serve as a setup and help guide.

Image to accompany the View it! tool currently in development.

Rationale

edit

The View it! tool will enrich Wikipedia content by offering an illustration of a given subject. This tool will increase the discovery of Wikimedia Commons uploads and encourage contributors to utilize Commons and structured data. While the number of images displayed in a Wikipedia article is finite and highly curated by editors, this tool will allow readers to access the full catalog of images available on Wikimedia Commons, and help editors easily add relevant items to a given article.

This page will serve as a space to document, receive feedback and ideas from the community, and list upcoming related meetings and training. As the tool is developed, changes will be noted and sections will be updated.

Possible features

edit

Through View it! users will be able to see a gallery of related images derived from queries of structured data. While depicts (P180) is relevant to all subjects, other points may be used as well, such as collection (P195), creator (P170), location of creation (P1071) among others. The gallery may be displayed in different environments, such as:

  • A hosted Toolforge tool which users could link in their user interface (UI) when viewing an article; or
  • A button that loads the gallery within the Wikipedia article when clicked.

The tool will be useful to both editors and readers. For logged-in editors, there will be additional features that enable:

  • Removal of bad statements from Commons media, when unwanted results appear in the gallery (envision a one-click operation without leaving Wikipedia, with the tool utilizing a wbremoveclaims call on the backend).
  • Ability to add an image to an article being edited from the auto-generated gallery with a click. This may be a generated code for the user to copy into the source editor, or possibly insert an actual image into the editor.

Updates

edit

If you wish to be apart of beta testing or sign up for project updates, please visit the Meta page.

 
View it! tool presentation at Wikimania 2022/Pittsburgh Meetup
Presentation recording from the August 31st meeting

Actions

edit

Translation

edit

View it! has multilingual support! Add missing languages by the localization instructions. You can also make edits to existing languages there.

Install the beta script

edit

Across projects

edit

There are two options for installing View it!, a full version integrate with the editing/reading experience and a lite version-- installation directions for each are the same, with slight code changes. To enable on all platforms:

  1. Visit your global.js page on Meta: User:<YourUserName>/global.js
  2. Copy in the code
    • For full View it!: {{subst:view it}}
    • For View it! lite: {{subst:view it/lite}}
  3. Click "Publish changes"

Please note you may see an error message reading: The document contains errors. Are you sure you want to publish? when you click publish - this is a bug, and it will still work.

 
Go to your User global.js page on Meta
 
View it! script copied in global.js,
 
Meta global.js after saving View it! script

For specific projects

edit

If you wish to only enable View it! on your local project:

  1. Visit your common.js page: "Special:MyPage/common.js" on your wiki of choice.
  2. Copy in the code
    • For full View it!:
      mw.loader.load( '//meta.wikimedia.org/w/index.php?title=User:SuperHamster/view-it-full.js&action=raw&ctype=text/javascript' ); // Backlink: [[meta:User:SuperHamster/view-it-full.js]]
    • For View it! lite:
      mw.loader.load( '//meta.wikimedia.org/w/index.php?title=User:SuperHamster/view-it.js&action=raw&ctype=text/javascript' ); // Backlink: [[meta:User:SuperHamster/view-it.js]]
  3. Click "Publish changes"
 
Screenshot of Common.js page - User:JamieF already has other scripts in use
 
View it! script copied to common.js
 
Screenshot of Common.js after saving View it! script

After installation Once installed you will see a "View" button between "Read" and "Edit" on the right that is connected to Wikidata/Structured data.

 
"View" button after installation of View it! on Mary Cassatt's entry.
 
Upon Clicking the "View" button users will be taken to the results via View it! on ToolForge. Example:Mary Cassatt View it! results

View it! will also work on other Wikipedia projects:

 
"View" button for View it! tool on Wikispecies - Mungo Park page
 
View it! results for Mungo Park
 
"View" button for View it! tool on Wikivoyage - Deventer, Netherlands page
 
View it! results for Deventer, Netherlands (Wikivoyage)

The development team is currently working to make View it! tool multilingual. Please help us with localization!

Usage

edit
  • As of September 25th, 75 users have installed View it! across global, Commons, and various language specific projects.
  • View it! has also been modified and added to other projects:

Funding

edit

The project was funded for development by the Wikimedia Foundation's Structured Data Across Wikimedia project, and has a 6 month timeline. View it! will be completed by January 2023.

Team

edit

To share opinions, wishes, or ask questions please leave a message on the talk page. If you wish to reach a team member directly, please feel free to leave a message on our respective talk pages:

edit