MediaWiki API súgó

Ez egy automatikusan generált MediaWiki-API-dokumentációs lap.

Dokumentáció és példák: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

prop=pageimages (pi)

(main | query | pageimages)
  • Ez a modul olvasási jogot igényel.
  • Forrás: PageImages
  • Licenc: WTFPL

Returns information about images on the page, such as thumbnail and presence of photos.

Jellemző paraméterek:
Other general parameters are available.
piprop

Which information to return:

thumbnail
URL and dimensions of thumbnail image associated with page, if any.
name
Image title.
original
URL and original dimensions of image associated with page, if any.
Értékek (elválasztó: | vagy más): name, original, thumbnail
Alapértelmezett: thumbnail|name
pithumbsize

Maximum width in pixels of thumbnail images.

Típus: egész szám
Alapértelmezett: 50
pilimit

Properties of how many pages to return.

Típus: egész vagy max
Az értéknek 1 és 50 között kell lennie.
Alapértelmezett: 50
pilicense

Limit page images to a certain license type:

free
Only free images.
any
Best image, whether free or non-free.
A következő értékek egyike: any, free
Alapértelmezett: free
picontinue

Ha további eredmények érhetők el, használd ezt a folytatáshoz. További részletekért lásd: lekérdezések folytatása (mediawiki.org).

Típus: egész szám
pilangcode

A kép megjelenítendő nyelvi kódja, ha több nyelv van támogatva.

Példa:
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 [megnyitás a homokozóban]