WikiShootMe

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search
This page is a translated version of the page WikiShootMe and the translation is 29% complete.
Coolest Tool Award 2021 square logo.svg

WikiShootMe

2021 Coolest Tool
Award Winner

in the category
Experience

Raccourci :
WSM
Video demonstration of how to use WikiShootMe on a mobile device, 2022-06-20
Cette page traite de l’outil WikiShootMe V3. Les versions précédentes ne sont pas traitées ici.

WikiShootMe V3 (WSM) est un outil pour afficher les éléments Wikidata, les articles Wikipédia et les images Commons munies de coordonnées, le tout sur la même carte. Consultez également l'annonce dans l'article de blog

Merci d'ajouter les signalements de bug et les demandes de fonctionnalités dans l'outil de suivi des problèmes, et pas sur cette page ou la page de discussion !

Interface utilisateur

Boutons

  • ⌖ Centre la carte sur votre position, si elle est disponible
  • 🔍 Permet de chercher dans Wikidata un endroit à afficher

Ce que vous voyez sur la carte

Capture d'écran de WSM V3.

WikiShootMe affiche une carte avec des objets. Par défaut, l'outil essaie de centrer la carte avec vos coordonnées, si vous l'autorisez dans votre navigateur. Il y a quatre types d'objets, correspondant aux différentes sources, et représentées chacun par un calque différent :

  • les grands cercles verts représentent les éléments Wikidata avec une image
  • les grands cercles rouges représentent les éléments Wikidata sans une image
  • les petits cercles bleus représentent des images Commons
  • les petits cercles jaunes représentent les articles Wikipédia, dans la version linguistique sélectionnée (le sélecteur de langue se trouve dans le coin supérieur droit).

Chacun de ces calques peut être activés individuellement. On peut cliquer sur chaque objet pour faire apparaître un pop-up avec plus d'informations. Les pop-ups contiennent :

  • le nom de l'objet (libellé, titre, nom du fichier),
  • les coordonnées de l'objet (l'icône 🏠 mène à la "Street View" depuis cette position, qui vous permet de trouver la bonne image si aucune n'a été sélectionnée),
  • une image (pour les images Commons et les éléments Wikidata avec une image)

Pour les éléments Wikidata sans image (un cercle rouge), il y a plusieurs solutions pour ajouter une nouvelle image.

Image addition and upload

The "add/upload image" pop-up.

You can add an image to a Wikidata item that doesn't already have one (remember, each item should ideally only have one image). Wikidata items with no image have their own layer, and are shown as large red circles. The first time you click on one, it shows you a pop-up asking you to authorise uploads via the OAuth mechanism, Click on the button to follow the instructions, and you will land back on the WSM site.

After that, the pop-up for "red" items will have changed, showing one "Upload image" button, and one "Add to item" button. Click on upload to upload a new image to Commons. When on mobile, you can also select your devices' camera and take a new picture. A new, unique file name will be chosen automatically, based on the item label, and the item's coordinates will be used for the image. Also, you are automatically entered as the copyright holder, and the CC-BY-SA-3.0 license is chosen. Once uploaded, the image is added to the item automatically. All these edits happen under your user name.

In older browsers (e.g. IE<10), a new tab opens when you start uploading, and will eventually show the uploaded image, so you can make changes and additions to the image description page. In modern browsers, the image will be added to an upload queue, which will periodically retry the upload if it fails, e.g. due to connection loss on mobile. The uploaded/total count will appear in the toolbar; you can click on it to see details. Once all uploads have gone through, there will be a link to clear/hide the count. If you want to abort all uploads in the queue, just reload the page.

Add an image

The "Add to item" button in the red dot pop-up will add an image that already exists on Commons, with the file name you enter. It checks if the file actually exists on Commons, then add it as a statement to the Wikidata item.

  • Click the nearest blue dot- a pop-up opens, showing the title, a thumbnail of the image, the truncated file name on commons missing out prefix "File:". This is in incredible small type.
  • Copy the filename by copying the incredibly small type, or click on the image to see its page on common. Copy its full file name from there you must then omit the prefix.
  • Click on the red dot. A pop-up opens. Paste the file name in the box provided- check it for accuracy and 'Add to item'.

(You can use any truncated Commons file name if the required image hasn't been geotagged.)

Create new items

If you know about a location that should have an item but doesn't, you can right-click (mobile: long-press) on the map to create one (OAuth required, see above). You will be asked for a label (in your current language). A new item with that label and location will be created on Wikidata, and show up immediately on the map. If possible, the administrative unit will be inferred from nearby items.

Integration

Link to WikiShootMe

By default, WSM will try to open a view around your current location. You can use URL parameters to open WSM with a specific view:

Both variant can be combined with a "&zoom=X" parameter, to set the initial zoom (18=max zoom).

Filter items to show

You might want to filter the items to show, for instance only religious buildings, or everything except schools. Here is how to do so:

  1. Prepare a SPARQL request that shows the objects you want, with a column "q" for the Wikidata identifiers and a column "location" containing the points. Do not use "GROUP BY" nor "SAMPLE" clauses. Make sure it is returning correct results. There are several ways to prepare a SPARQL request, a popular tool for this is https://query.wikidata.org.
  2. Take the part between the "WHERE{" and the final "}".
  3. Encode it using an URLEncode implementation such as https://urldecode.org
  4. Concatenate that string at the end of https://wikishootme.toolforge.org/#lat=0&lng=0&zoom=1&layers=wikidata_no_image&worldwide=1&sparql_filter=
  5. Launch that URL in your browser

Examples

For some systematic examples, see artwork examples.

Development

Source code

Here.

Previous versions

This is the third version of WikiShootMe. Previous versions are still available: version 1, version 2.