Nápověda k MediaWiki API
Toto je automaticky generovaná dokumentační stránka k MediaWiki API.
Dokumentace a příklady: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
prop=pageimages (pi)
- Tento modul vyžaduje oprávnění ke čtení.
- Zdroj: PageImages
- Licence: WTFPL
Returns information about images on the page, such as thumbnail and presence of photos.
Parametry:
- piprop
Which information to return:
- thumbnail
- URL and dimensions of thumbnail image associated with page, if any.
- original
- URL and original dimensions of image associated with page, if any.
- name
- Image title.
- Hodnoty (oddělené | nebo alternativou.): name, original, thumbnail
- Default: thumbnail|name
- pithumbsize
Maximum width in pixels of thumbnail images.
- Type: integer
- Default: 50
- pilimit
Properties of how many pages to return.
- Type: integer or max
- The value must be between 1 and 50.
- Default: 50
- pilicense
Limit page images to a certain license type
- Jedna z následujících hodnot: any, free
- Default: free
- picontinue
When more results are available, use this to continue.
- Type: integer
- pilangcode
Code for the language the image is going to be rendered in if multiple languages are supported
Příklad:
- Get name and 100-pixel thumbnail of an image on the Albert Einstein page.
- api.php?action=query&prop=pageimages&titles=Albert%20Einstein&pithumbsize=100 [otevřít v pískovišti]