Bureaucrats, Moderators (CommentStreams), Interface administrators, Push subscription managers, Suppressors, Administrators
4,066
edits
(Created page with "<sub>Subscript text</sub>The '''PageImages''' extension collects information about images used on a page. Its aim is to return the single most appropriate thumbnail associated with an article. {{Mw|article=Extension:PageImages}} - Technical information on MediaWiki ==Page information== Page information will returns information about images on the page, such as thumbnail and presence of photos. ==How it works== {...") |
No edit summary |
||
Line 1: | Line 1: | ||
The '''PageImages''' extension collects information about images used on a page. Its aim is to return the single most appropriate thumbnail associated with an article. | |||
{{Mw|article=Extension:PageImages}} | See {{Mw|article=Extension:PageImages}} for technical information on [[MediaWiki]]. | ||
==Page information== | ==Page information== | ||
[[Powerpedia upgrade (Mediawiki 1.22)#Page%20information|Page information]] will returns information about images on the page, such as thumbnail and presence of photos. | [[Powerpedia upgrade (Mediawiki 1.22)#Page%20information|Page information]] will returns information about images on the page, such as thumbnail and presence of photos. | ||
Line 14: | Line 14: | ||
==Image choice== | ==Image choice== | ||
===How can I check which image is associated with a page?=== | ===How can I check which image is associated with a page?=== | ||
Page images will be listed on the <code>?action=info</code> page. | |||
===How does it select images?=== | ===How does it select 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. | 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. | ||
Line 36: | Line 36: | ||
In PageImages this is executed in [https://github.com/wikimedia/mediawiki-extensions-PageImages/blob/master/includes/Hooks/LinksUpdateHookHandler.php#L88 LinksUpdateHookHandler::doLinksUpdate] | In PageImages this is executed in [https://github.com/wikimedia/mediawiki-extensions-PageImages/blob/master/includes/Hooks/LinksUpdateHookHandler.php#L88 LinksUpdateHookHandler::doLinksUpdate] | ||
===Can I exclude certain page images?=== | ===Can I exclude certain page images?=== | ||
Yes! There is a list on every wiki that administrators can edit, at [[MediaWiki:Pageimages-denylist]] ({{Mw|article=MediaWiki:Pageimages-denylist}} example). Any images that appear here will not be page images for any article. Please | Yes! There is a list on every wiki that administrators can edit, at [[MediaWiki:Pageimages-denylist]] ({{Mw|article=MediaWiki:Pageimages-denylist}} example). Any images that appear here will not be page images for any article. Please leave a comment at [[MediaWiki talk:Pageimages-denylist]] to have a file to the list. | ||
====What about just for one particular article?==== | ====What about just for one particular article?==== | ||
Sadly not at the current time. Please use the denylist or move the image outside the lead section. | Sadly not at the current time. Please use the denylist or move the image outside the lead section. | ||
Line 50: | Line 50: | ||
We are currently working on a fix for this, that will allow you to change the default thumbnail of a video. | We are currently working on a fix for this, that will allow you to change the default thumbnail of a video. | ||
== External links == | |||
{{Mw|Extension:Popups}} | * {{Mw|Extension:Popups}} |