Extension:PageImages/fr

L'extension PageImages collecte les informations concernant les images utilisées sur une page.

Son but est de retourner une vignette unique, la plus appropriée associée à un article.

Since MediaWiki 1.29, PageImages provides OpenGraph protocol metadata for articles on the wiki for 3rd parties like Facebook to extract.

API
The PageImages extension provides image information by adding a  to the  API for.

Configuration
$wgPageImagesBlacklist is an array of sources for image blacklists. Blacklisted images will never be selected as page images. Examples:

Plus d'une source peut être utilisée au même moment.

The blacklist itself should contain a wikilinks to blacklisted files, the rest of content is irrelevant (and can contain links to other pages). Par exemple :

Remember that file links that result in images being added to the page will not work (these files are blacklisted for a reason, right?), so don't forget the  in front of the links.

$wgPageImagesBlacklistExpiry détermine le temps pendant lequel la liste noire restera dans le cache, en secondes. Par défaut : 15 * 60 (15 minutes).

$wgPageImagesExpandOpenSearchXml if set to true, PageImages will override the image detection in the API module with its own, more accurate results. Valeur par défaut :.

$wgPageImagesNamespaces is an array of namespaces PageImages will be activated on. Par défaut: NS_MAIN.

Fonctionnement
Quand une page est enregistrée avec une image locale, l'analyseur syntaxique exécute les accroches  et. The PageImages extension responds to these (and other hooks) and inserts a new property for the page into the table. Le nom de la propriété est  et sa valeur est le nom de l'image.

The extension only stores the chosen image name. Other features may display the image, such as Page information, Hovercards, and Mobile search while typing.

How can I check which image is associated with a page?
Les images de page seront listées sur la page.

Comment se fait la sélection des images ?
All images in the page are collected and a score for each image is calculated. The image with the highest score is selected as the page image. If the wiki is configured such that images contain metadata that specifies images are not freely licensed, the image with the best score that is also freely licensed is also stored. If no suitable image is found or all the images score badly (i.e. has a negative score), the page will not have any images.

If $wgPageImagesLeadSectionOnly is true, only images in the lead section will be considered. Currently it is true for only Wikipedia projects, all other projects can pull images from outside the lead.

Comment les images sont-elles évaluées ?
The best possible page image on Wikimedia wikis is one of the first four images in an article which has a width/height between 400-600px and a height/width which is twice the value of the other dimension.


 * The algorithm is configurable.
 * Scores are calculated by a combination of:
 * Image widths as defined in $wgPageImagesScores['width']
 * In Wikimedia wikis, images smaller than 119 pixels are weighted highly negatively. Images with widths between 400px-600px are favoured, with a preference for the lower bound.
 * Images inside galleries are scored separately using $wgPageImagesScores['galleryImageWidth']
 * In Wikimedia wikis gallery images which are smaller than 100 are disregarded.
 * Position in document is also considered as defined in $wgPageImagesScores['position']
 * On Wikimedia wikis, only the first 4 images that appear in the document are considered.
 * The ratio of the image's width to height is considered $wgPageImagesScores['ratio']
 * On Wikimedia wikis the best possible images are images where the height is half the width or the height is double the width. Any images for which the ratio is less than 0.5 will score negatively and be discarded.

Soyez plus technique s'il vous plait...
Pageimages populates images whenever the LinksUpdate hook runs.

Dans PageImages ceci est exécuté dans LinksUpdateHookHandler::doLinksUpdate

Comment exclure certaines images de page ?
Yes! There is a blacklist on every wiki that administrators can edit, at MediaWiki:Pageimages-blacklist (example). Any images that appear here will not be page images for any article.

Et qu'en est-il pour un seul article en particulier ?
Désolé mais pas en ce momment. Veuillez utiliser la liste noire ou déplacer l'image en dehors de la section principale.

Comment voir l'image d'une page ?
Using the  link in the sidebar (or adding  to the URL) you'll be able to see the current image choice.

Comment supprimer une mauvaise image ?
The pageimage only changes when a link in an article changes. For emergencies, please add/remove links from the page, reverting if necessary. Purging will not work. For larger emergencies please file a Phabricator ticket.

Pourquoi l'image de ma page est une boîte vide ?
This likely relates to video content in your article. If a video file begins with a blank screen, that will become the default thumbnail for the video and if used as the page image, it will become the page image. Nous travaillons actuellement à la correction de ce problème, ce qui vous permettra de changer la vignette par défaut d'une vidéo. Voir : phab:T92457 et phab:T22647 pour davantage d'informations.