MediaWiki API ヘルプ
このページは自動生成された MediaWiki API の説明文書ページです。
説明文書と例: https://www.mediawiki.org/wiki/API
prop=pageimages (pi)
- このモジュールは読み取りの権限を必要とします。
- Source: PageImages
- License: WTFPL
Returns information about images on the page, such as thumbnail and presence of photos.
パラメーター:
- 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.
- 値 (|もしくは別の文字列で区切る): thumbnail、name、original
- 既定値: thumbnail|name
- pithumbsize
サムネイルの最大解像度。
- Type: integer
- 既定値: 50
- pilimit
返すページの件数です。
- No more than 50 (100 for bots) allowed.
- Type: integer or max
- 既定値: 50
- pilicense
Limit page images to a certain license type
- 値 (次の値のいずれか1つ): free、any
- 既定値: free
- picontinue
When more results are available, use this to continue.
- Type: integer
例:
- ページ Albert Einstein 上の画像の名前と 100 ピクセルのサムネイルを取得する。
- api.php?action=query&prop=pageimages&titles=Albert%20Einstein&pithumbsize=100 [サンドボックスで開く]